6b202f4e3d
to contain headers shared by kernel and userland (mainly libroot). * Moved quite a few private kernel headers to the new location. Split several kernel headers into a shared part and one that is still kernel private. Adjusted all affected Jamfiles and source in the standard x86 build accordingly. The build for other architectures and for test code may be broken. * Quite a bit of userland code still includes private kernel headers. Mostly those are <util/*> headers. The ones that aren't strictly kernel-only should be moved to some other place (maybe headers/private/shared/util). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25486 a95241bf-73f2-0310-859d-f6bbb57e9c96
94 lines
3.5 KiB
C
94 lines
3.5 KiB
C
/*
|
|
* Copyright 2003-2008, Haiku Inc.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Ingo Weinhold, bonefish@users.sf.net
|
|
*/
|
|
#ifndef _DISK_DEVICE_MANAGER_USERLAND_INTERFACE_H
|
|
#define _DISK_DEVICE_MANAGER_USERLAND_INTERFACE_H
|
|
|
|
#include <OS.h>
|
|
|
|
#include <DiskDeviceDefs.h>
|
|
|
|
#include <ddm_userland_interface_defs.h>
|
|
#include <disk_device_manager.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*! Syscalls entries */
|
|
|
|
// iterating, retrieving device/partition data
|
|
partition_id _user_get_next_disk_device_id(int32 *cookie, size_t *neededSize);
|
|
partition_id _user_find_disk_device(const char *filename, size_t *neededSize);
|
|
partition_id _user_find_partition(const char *filename, size_t *neededSize);
|
|
status_t _user_get_disk_device_data(partition_id deviceID, bool deviceOnly,
|
|
user_disk_device_data *buffer, size_t bufferSize,
|
|
size_t *neededSize);
|
|
|
|
partition_id _user_register_file_device(const char *filename);
|
|
status_t _user_unregister_file_device(partition_id deviceID,
|
|
const char *filename);
|
|
// Only a valid deviceID or filename need to be passed. The other one
|
|
// is -1/NULL. If both is given only filename is ignored.
|
|
|
|
// disk systems
|
|
status_t _user_get_disk_system_info(disk_system_id id,
|
|
user_disk_system_info *info);
|
|
status_t _user_get_next_disk_system_info(int32 *cookie,
|
|
user_disk_system_info *info);
|
|
status_t _user_find_disk_system(const char *name, user_disk_system_info *info);
|
|
|
|
// disk device modification
|
|
status_t _user_defragment_partition(partition_id partitionID,
|
|
int32* changeCounter);
|
|
status_t _user_repair_partition(partition_id partitionID, int32* changeCounter,
|
|
bool checkOnly);
|
|
status_t _user_resize_partition(partition_id partitionID, int32* changeCounter,
|
|
partition_id childID, int32* childChangeCounter, off_t size,
|
|
off_t contentSize);
|
|
status_t _user_move_partition(partition_id partitionID, int32* changeCounter,
|
|
partition_id childID, int32* childChangeCounter,
|
|
off_t newOffset, partition_id* descendantIDs,
|
|
int32* descendantChangeCounters, int32 descendantCount);
|
|
status_t _user_set_partition_name(partition_id partitionID,
|
|
int32* changeCounter, partition_id childID,
|
|
int32* childChangeCounter, const char* name);
|
|
status_t _user_set_partition_content_name(partition_id partitionID,
|
|
int32* changeCounter, const char* name);
|
|
status_t _user_set_partition_type(partition_id partitionID,
|
|
int32* changeCounter, partition_id childID,
|
|
int32* childChangeCounter, const char* type);
|
|
status_t _user_set_partition_parameters(partition_id partitionID,
|
|
int32* changeCounter, partition_id childID,
|
|
int32* childChangeCounter, const char* parameters,
|
|
size_t parametersSize);
|
|
status_t _user_set_partition_content_parameters(partition_id partitionID,
|
|
int32* changeCounter, const char* parameters,
|
|
size_t parametersSize);
|
|
status_t _user_initialize_partition(partition_id partitionID,
|
|
int32* changeCounter, const char* diskSystemName,
|
|
const char* name, const char* parameters,
|
|
size_t parametersSize);
|
|
status_t _user_uninitialize_partition(partition_id partitionID,
|
|
int32* changeCounter);
|
|
|
|
status_t _user_create_child_partition(partition_id partitionID,
|
|
int32* changeCounter, off_t offset, off_t size,
|
|
const char* type, const char* name, const char* parameters,
|
|
size_t parametersSize, partition_id* childID,
|
|
int32* childChangeCounter);
|
|
status_t _user_delete_child_partition(partition_id partitionID,
|
|
int32* changeCounter, partition_id childID,
|
|
int32 childChangeCounter);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // _DISK_DEVICE_MANAGER_USERLAND_INTERFACE_H
|