1 /* 2 * Copyright 2004-2008, Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _SYSTEM_SYSCALLS_H 6 #define _SYSTEM_SYSCALLS_H 7 8 9 #include <arch_config.h> 10 #include <image.h> 11 #include <OS.h> 12 #include <DiskDeviceDefs.h> 13 14 #include <signal.h> 15 #include <sys/socket.h> 16 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 struct dirent; 23 struct fd_info; 24 struct fd_set; 25 struct fs_info; 26 struct iovec; 27 struct net_stat; 28 struct pollfd; 29 struct rlimit; 30 struct sigaction; 31 struct stat; 32 struct _sem_t; 33 34 struct disk_device_job_progress_info; 35 struct partitionable_space_data; 36 struct thread_creation_attributes; 37 struct user_disk_device_data; 38 struct user_disk_device_job_info; 39 struct user_disk_system_info; 40 41 // This marks the beginning of the syscalls prototypes for gensyscallinfos. 42 // NOTE: 43 // * Nothing but those prototypes may live here. 44 // * The arguments of the functions must be named to be processed properly. 45 46 #ifdef GEN_SYSCALL_INFOS_PROCESSING 47 #pragma syscalls begin 48 #endif 49 50 extern int _kern_is_computer_on(void); 51 extern status_t _kern_generic_syscall(const char *subsystem, uint32 function, 52 void *buffer, size_t bufferSize); 53 54 extern int _kern_getrlimit(int resource, struct rlimit * rlp); 55 extern int _kern_setrlimit(int resource, const struct rlimit * rlp); 56 57 extern status_t _kern_shutdown(bool reboot); 58 extern status_t _kern_get_safemode_option(const char *parameter, char *buffer, size_t *_bufferSize); 59 60 extern ssize_t _kern_wait_for_objects(object_wait_info* infos, int numInfos, 61 uint32 flags, bigtime_t timeout); 62 63 64 /* sem functions */ 65 extern sem_id _kern_create_sem(int count, const char *name); 66 extern status_t _kern_delete_sem(sem_id id); 67 extern status_t _kern_switch_sem(sem_id releaseSem, sem_id id); 68 extern status_t _kern_switch_sem_etc(sem_id releaseSem, sem_id id, uint32 count, 69 uint32 flags, bigtime_t timeout); 70 extern status_t _kern_acquire_sem(sem_id id); 71 extern status_t _kern_acquire_sem_etc(sem_id id, uint32 count, uint32 flags, bigtime_t timeout); 72 extern status_t _kern_release_sem(sem_id id); 73 extern status_t _kern_release_sem_etc(sem_id id, uint32 count, uint32 flags); 74 extern status_t _kern_get_sem_count(sem_id id, int32* thread_count); 75 extern status_t _kern_get_sem_info(sem_id semaphore, struct sem_info *info, size_t size); 76 extern status_t _kern_get_next_sem_info(team_id team, int32 *cookie, 77 struct sem_info *info, size_t size); 78 extern status_t _kern_set_sem_owner(sem_id id, team_id proc); 79 80 /* POSIX realtime sem syscalls */ 81 extern status_t _kern_realtime_sem_open(const char* name, 82 int openFlagsOrShared, mode_t mode, uint32 semCount, 83 struct _sem_t* userSem, struct _sem_t** _usedUserSem); 84 extern status_t _kern_realtime_sem_close(sem_id semID, 85 struct _sem_t** _deleteUserSem); 86 extern status_t _kern_realtime_sem_unlink(const char* name); 87 88 extern status_t _kern_realtime_sem_get_value(sem_id semID, int* value); 89 extern status_t _kern_realtime_sem_post(sem_id semID); 90 extern status_t _kern_realtime_sem_wait(sem_id semID, bigtime_t timeout); 91 92 /* team & thread syscalls */ 93 94 extern thread_id _kern_load_image(const char* const* flatArgs, 95 size_t flatArgsSize, int32 argCount, int32 envCount, 96 int32 priority, uint32 flags, port_id errorPort, 97 uint32 errorToken); 98 extern void _kern_exit_team(status_t returnValue); 99 extern status_t _kern_kill_team(team_id team); 100 extern team_id _kern_get_current_team(); 101 extern status_t _kern_wait_for_team(team_id team, status_t *_returnCode); 102 extern thread_id _kern_wait_for_child(thread_id child, uint32 flags, 103 int32 *_reason, status_t *_returnCode); 104 extern status_t _kern_exec(const char *path, const char* const* flatArgs, 105 size_t flatArgsSize, int32 argCount, int32 envCount); 106 extern thread_id _kern_fork(void); 107 extern pid_t _kern_process_info(pid_t process, int32 which); 108 extern pid_t _kern_setpgid(pid_t process, pid_t group); 109 extern pid_t _kern_setsid(void); 110 extern status_t _kern_change_root(const char *path); 111 112 extern thread_id _kern_spawn_thread( 113 struct thread_creation_attributes* attributes); 114 extern thread_id _kern_find_thread(const char *name); 115 extern status_t _kern_suspend_thread(thread_id thread); 116 extern status_t _kern_resume_thread(thread_id thread); 117 extern status_t _kern_rename_thread(thread_id thread, const char *newName); 118 extern status_t _kern_set_thread_priority(thread_id thread, int32 newPriority); 119 extern status_t _kern_kill_thread(thread_id thread); 120 extern void _kern_exit_thread(status_t returnValue); 121 extern void _kern_thread_yield(void); 122 extern status_t _kern_wait_for_thread(thread_id thread, status_t *_returnCode); 123 extern bool _kern_has_data(thread_id thread); 124 extern status_t _kern_send_data(thread_id thread, int32 code, const void *buffer, size_t bufferSize); 125 extern int32 _kern_receive_data(thread_id *_sender, void *buffer, size_t bufferSize); 126 extern int64 _kern_restore_signal_frame(); 127 128 extern status_t _kern_get_thread_info(thread_id id, thread_info *info); 129 extern status_t _kern_get_next_thread_info(team_id team, int32 *cookie, thread_info *info); 130 extern status_t _kern_get_team_info(team_id id, team_info *info); 131 extern status_t _kern_get_next_team_info(int32 *cookie, team_info *info); 132 extern status_t _kern_get_team_usage_info(team_id team, int32 who, team_usage_info *info, size_t size); 133 134 extern status_t _kern_block_thread(uint32 flags, bigtime_t timeout); 135 extern status_t _kern_unblock_thread(thread_id thread, status_t status); 136 extern status_t _kern_unblock_threads(thread_id* threads, uint32 count, 137 status_t status); 138 139 // user/group functions 140 extern gid_t _kern_getgid(bool effective); 141 extern uid_t _kern_getuid(bool effective); 142 extern status_t _kern_setregid(gid_t rgid, gid_t egid, 143 bool setAllIfPrivileged); 144 extern status_t _kern_setreuid(uid_t ruid, uid_t euid, 145 bool setAllIfPrivileged); 146 extern ssize_t _kern_getgroups(int groupCount, gid_t* groupList); 147 extern status_t _kern_setgroups(int groupCount, const gid_t* groupList); 148 149 // signal functions 150 extern status_t _kern_send_signal(pid_t tid, uint sig); 151 extern status_t _kern_sigprocmask(int how, const sigset_t *set, 152 sigset_t *oldSet); 153 extern status_t _kern_sigaction(int sig, const struct sigaction *action, 154 struct sigaction *oldAction); 155 extern bigtime_t _kern_set_alarm(bigtime_t time, uint32 mode); 156 extern status_t _kern_sigwait(const sigset_t *set, int *_signal); 157 extern status_t _kern_sigsuspend(const sigset_t *mask); 158 extern status_t _kern_sigpending(sigset_t *set); 159 extern status_t _kern_set_signal_stack(const stack_t *newStack, 160 stack_t *oldStack); 161 162 // image functions 163 extern image_id _kern_register_image(image_info *info, size_t size); 164 extern status_t _kern_unregister_image(image_id id); 165 extern void _kern_image_relocated(image_id id); 166 extern void _kern_loading_app_failed(status_t error); 167 extern status_t _kern_get_image_info(image_id id, image_info *info, size_t size); 168 extern status_t _kern_get_next_image_info(team_id team, int32 *cookie, image_info *info, size_t size); 169 170 // VFS functions 171 extern dev_t _kern_mount(const char *path, const char *device, 172 const char *fs_name, uint32 flags, const char *args, size_t argsLength); 173 extern status_t _kern_unmount(const char *path, uint32 flags); 174 extern status_t _kern_read_fs_info(dev_t device, struct fs_info *info); 175 extern status_t _kern_write_fs_info(dev_t device, const struct fs_info *info, int mask); 176 extern dev_t _kern_next_device(int32 *_cookie); 177 extern status_t _kern_sync(void); 178 extern status_t _kern_entry_ref_to_path(dev_t device, ino_t inode, 179 const char *leaf, char *userPath, size_t pathLength); 180 extern status_t _kern_normalize_path(const char* userPath, 181 bool traverseLink, char* buffer); 182 extern int _kern_open_entry_ref(dev_t device, ino_t inode, const char *name, int openMode, int perms); 183 extern int _kern_open(int fd, const char *path, int openMode, int perms); 184 extern int _kern_open_dir_entry_ref(dev_t device, ino_t inode, const char *name); 185 extern int _kern_open_dir(int fd, const char *path); 186 extern int _kern_open_parent_dir(int fd, char *name, 187 size_t nameLength); 188 extern status_t _kern_fcntl(int fd, int op, uint32 argument); 189 extern status_t _kern_fsync(int fd); 190 extern status_t _kern_flock(int fd, int op); 191 extern off_t _kern_seek(int fd, off_t pos, int seekType); 192 extern status_t _kern_create_dir_entry_ref(dev_t device, ino_t inode, const char *name, int perms); 193 extern status_t _kern_create_dir(int fd, const char *path, int perms); 194 extern status_t _kern_remove_dir(int fd, const char *path); 195 extern status_t _kern_read_link(int fd, const char *path, char *buffer, 196 size_t *_bufferSize); 197 extern status_t _kern_create_symlink(int fd, const char *path, 198 const char *toPath, int mode); 199 extern status_t _kern_create_link(const char *path, const char *toPath); 200 extern status_t _kern_unlink(int fd, const char *path); 201 extern status_t _kern_rename(int oldDir, const char *oldpath, int newDir, 202 const char *newpath); 203 extern status_t _kern_create_fifo(const char *path, mode_t perms); 204 extern status_t _kern_create_pipe(int *fds); 205 extern status_t _kern_access(const char *path, int mode); 206 extern ssize_t _kern_select(int numfds, struct fd_set *readSet, 207 struct fd_set *writeSet, struct fd_set *errorSet, 208 bigtime_t timeout, const sigset_t *sigMask); 209 extern ssize_t _kern_poll(struct pollfd *fds, int numfds, bigtime_t timeout); 210 extern int _kern_open_attr_dir(int fd, const char *path); 211 extern int _kern_create_attr(int fd, const char *name, uint32 type, int openMode); 212 extern int _kern_open_attr(int fd, const char *name, int openMode); 213 extern status_t _kern_remove_attr(int fd, const char *name); 214 extern status_t _kern_rename_attr(int fromFile, const char *fromName, int toFile, const char *toName); 215 extern int _kern_open_index_dir(dev_t device); 216 extern status_t _kern_create_index(dev_t device, const char *name, uint32 type, uint32 flags); 217 extern status_t _kern_read_index_stat(dev_t device, const char *name, struct stat *stat); 218 extern status_t _kern_remove_index(dev_t device, const char *name); 219 extern status_t _kern_getcwd(char *buffer, size_t size); 220 extern status_t _kern_setcwd(int fd, const char *path); 221 extern int _kern_open_query(dev_t device, const char *query, size_t queryLength, 222 uint32 flags, port_id port, int32 token); 223 224 // file descriptor functions 225 extern ssize_t _kern_read(int fd, off_t pos, void *buffer, size_t bufferSize); 226 extern ssize_t _kern_readv(int fd, off_t pos, const struct iovec *vecs, size_t count); 227 extern ssize_t _kern_write(int fd, off_t pos, const void *buffer, size_t bufferSize); 228 extern ssize_t _kern_writev(int fd, off_t pos, const struct iovec *vecs, 229 size_t count); 230 extern status_t _kern_ioctl(int fd, ulong cmd, void *data, size_t length); 231 extern ssize_t _kern_read_dir(int fd, struct dirent *buffer, size_t bufferSize, 232 uint32 maxCount); 233 extern status_t _kern_rewind_dir(int fd); 234 extern status_t _kern_read_stat(int fd, const char *path, bool traverseLink, 235 struct stat *stat, size_t statSize); 236 extern status_t _kern_write_stat(int fd, const char *path, 237 bool traverseLink, const struct stat *stat, 238 size_t statSize, int statMask); 239 extern status_t _kern_close(int fd); 240 extern int _kern_dup(int fd); 241 extern int _kern_dup2(int ofd, int nfd); 242 extern status_t _kern_lock_node(int fd); 243 extern status_t _kern_unlock_node(int fd); 244 extern status_t _kern_get_next_fd_info(team_id team, uint32 *_cookie, 245 struct fd_info *info, size_t infoSize); 246 247 // socket functions 248 extern int _kern_socket(int family, int type, int protocol); 249 extern status_t _kern_bind(int socket, const struct sockaddr *address, 250 socklen_t addressLength); 251 extern status_t _kern_shutdown_socket(int socket, int how); 252 extern status_t _kern_connect(int socket, const struct sockaddr *address, 253 socklen_t addressLength); 254 extern status_t _kern_listen(int socket, int backlog); 255 extern int _kern_accept(int socket, struct sockaddr *address, 256 socklen_t *_addressLength); 257 extern ssize_t _kern_recv(int socket, void *data, size_t length, 258 int flags); 259 extern ssize_t _kern_recvfrom(int socket, void *data, size_t length, 260 int flags, struct sockaddr *address, 261 socklen_t *_addressLength); 262 extern ssize_t _kern_recvmsg(int socket, struct msghdr *message, 263 int flags); 264 extern ssize_t _kern_send(int socket, const void *data, size_t length, 265 int flags); 266 extern ssize_t _kern_sendto(int socket, const void *data, size_t length, 267 int flags, const struct sockaddr *address, 268 socklen_t addressLength); 269 extern ssize_t _kern_sendmsg(int socket, const struct msghdr *message, 270 int flags); 271 extern status_t _kern_getsockopt(int socket, int level, int option, 272 void *value, socklen_t *_length); 273 extern status_t _kern_setsockopt(int socket, int level, int option, 274 const void *value, socklen_t length); 275 extern status_t _kern_getpeername(int socket, struct sockaddr *address, 276 socklen_t *_addressLength); 277 extern status_t _kern_getsockname(int socket, struct sockaddr *address, 278 socklen_t *_addressLength); 279 extern int _kern_sockatmark(int socket); 280 extern status_t _kern_socketpair(int family, int type, int protocol, 281 int *socketVector); 282 extern status_t _kern_get_next_socket_stat(int family, uint32 *cookie, 283 struct net_stat *stat); 284 285 // node monitor functions 286 extern status_t _kern_stop_notifying(port_id port, uint32 token); 287 extern status_t _kern_start_watching(dev_t device, ino_t node, uint32 flags, 288 port_id port, uint32 token); 289 extern status_t _kern_stop_watching(dev_t device, ino_t node, port_id port, 290 uint32 token); 291 292 // time functions 293 extern status_t _kern_set_real_time_clock(uint32 time); 294 extern status_t _kern_set_timezone(int32 timezoneOffset, bool daylightSavingTime); 295 extern status_t _kern_get_timezone(int32 *_timezoneOffset, bool *_daylightSavingTime); 296 extern status_t _kern_set_tzfilename(const char *filename, size_t length, bool isGMT); 297 extern status_t _kern_get_tzfilename(char *filename, size_t length, bool *_isGMT); 298 299 extern bigtime_t _kern_system_time(); 300 extern status_t _kern_snooze_etc(bigtime_t time, int timebase, int32 flags); 301 302 // area functions 303 extern area_id _kern_create_area(const char *name, void **address, uint32 addressSpec, 304 size_t size, uint32 lock, uint32 protection); 305 extern status_t _kern_delete_area(area_id area); 306 extern area_id _kern_area_for(void *address); 307 extern area_id _kern_find_area(const char *name); 308 extern status_t _kern_get_area_info(area_id area, area_info *info); 309 extern status_t _kern_get_next_area_info(team_id team, int32 *cookie, area_info *info); 310 extern status_t _kern_resize_area(area_id area, size_t newSize); 311 extern area_id _kern_transfer_area(area_id area, void **_address, uint32 addressSpec, 312 team_id target); 313 extern status_t _kern_set_area_protection(area_id area, uint32 newProtection); 314 extern area_id _kern_clone_area(const char *name, void **_address, uint32 addressSpec, 315 uint32 protection, area_id sourceArea); 316 extern status_t _kern_reserve_heap_address_range(addr_t* _address, uint32 addressSpec, 317 addr_t size); 318 319 extern area_id _kern_map_file(const char *name, void **address, 320 int addressSpec, addr_t size, int protection, 321 int mapping, int fd, off_t offset); 322 extern status_t _kern_unmap_memory(void *address, addr_t size); 323 extern status_t _kern_sync_memory(void *address, addr_t size, int flags); 324 325 /* kernel port functions */ 326 extern port_id _kern_create_port(int32 queue_length, const char *name); 327 extern status_t _kern_close_port(port_id id); 328 extern status_t _kern_delete_port(port_id id); 329 extern port_id _kern_find_port(const char *port_name); 330 extern status_t _kern_get_port_info(port_id id, struct port_info *info); 331 extern status_t _kern_get_next_port_info(team_id team, int32 *cookie, struct port_info *info); 332 extern ssize_t _kern_port_buffer_size_etc(port_id port, uint32 flags, bigtime_t timeout); 333 extern int32 _kern_port_count(port_id port); 334 extern ssize_t _kern_read_port_etc(port_id port, int32 *msgCode, void *msgBuffer, 335 size_t bufferSize, uint32 flags, bigtime_t timeout); 336 extern status_t _kern_set_port_owner(port_id port, team_id team); 337 extern status_t _kern_write_port_etc(port_id port, int32 msgCode, const void *msgBuffer, 338 size_t bufferSize, uint32 flags, bigtime_t timeout); 339 extern status_t _kern_writev_port_etc(port_id id, int32 msgCode, 340 const struct iovec *msgVecs, size_t vecCount, 341 size_t bufferSize, uint32 flags, bigtime_t timeout); 342 extern status_t _kern_get_port_message_info_etc(port_id port, 343 port_message_info *info, size_t infoSize, uint32 flags, 344 bigtime_t timeout); 345 346 // debug support functions 347 extern void _kern_debugger(const char *message); 348 extern int _kern_disable_debugger(int state); 349 350 extern status_t _kern_install_default_debugger(port_id debuggerPort); 351 extern port_id _kern_install_team_debugger(team_id team, 352 port_id debuggerPort); 353 extern status_t _kern_remove_team_debugger(team_id team); 354 extern status_t _kern_debug_thread(thread_id thread); 355 extern void _kern_wait_for_debugger(void); 356 357 extern status_t _kern_set_debugger_breakpoint(void *address, uint32 type, 358 int32 length, bool watchpoint); 359 extern status_t _kern_clear_debugger_breakpoint(void *address, 360 bool watchpoint); 361 362 /* atomic_* ops (needed for CPUs that don't support them directly) */ 363 #ifdef ATOMIC_FUNCS_ARE_SYSCALLS 364 extern int32 _kern_atomic_set(vint32 *value, int32 newValue); 365 extern int32 _kern_atomic_test_and_set(vint32 *value, int32 newValue, int32 testAgainst); 366 extern int32 _kern_atomic_add(vint32 *value, int32 addValue); 367 extern int32 _kern_atomic_and(vint32 *value, int32 andValue); 368 extern int32 _kern_atomic_or(vint32 *value, int32 orValue); 369 extern int32 _kern_atomic_get(vint32 *value); 370 #endif // ATOMIC_FUNCS_ARE_SYSCALLS 371 372 #ifdef ATOMIC64_FUNCS_ARE_SYSCALLS 373 extern int64 _kern_atomic_set64(vint64 *value, int64 newValue); 374 extern int64 _kern_atomic_test_and_set64(vint64 *value, int64 newValue, int64 testAgainst); 375 extern int64 _kern_atomic_add64(vint64 *value, int64 addValue); 376 extern int64 _kern_atomic_and64(vint64 *value, int64 andValue); 377 extern int64 _kern_atomic_or64(vint64 *value, int64 orValue); 378 extern int64 _kern_atomic_get64(vint64 *value); 379 #endif // ATOMIC64_FUNCS_ARE_SYSCALLS 380 381 /* System informations */ 382 extern status_t _kern_get_system_info(system_info *info, size_t size); 383 384 /* Debug output */ 385 extern void _kern_debug_output(const char *message); 386 extern void _kern_ktrace_output(const char *message); 387 extern status_t _kern_frame_buffer_update(addr_t baseAddress, int32 width, 388 int32 height, int32 depth, int32 bytesPerRow); 389 390 /* messaging service */ 391 extern area_id _kern_register_messaging_service(sem_id lockingSem, 392 sem_id counterSem); 393 extern status_t _kern_unregister_messaging_service(); 394 395 extern void _kern_clear_caches(void *address, size_t length, uint32 flags); 396 extern bool _kern_cpu_enabled(int32 cpu); 397 extern status_t _kern_set_cpu_enabled(int32 cpu, bool enabled); 398 399 #ifdef __INTEL__ 400 // our only x86 only syscall 401 extern status_t _kern_get_cpuid(cpuid_info *info, uint32 eax, uint32 cpu); 402 #endif 403 404 405 /* Disk Device Manager syscalls */ 406 407 // iterating, retrieving device/partition data 408 extern partition_id _kern_get_next_disk_device_id(int32 *cookie, size_t *neededSize); 409 extern partition_id _kern_find_disk_device(const char *filename, size_t *neededSize); 410 extern partition_id _kern_find_partition(const char *filename, size_t *neededSize); 411 extern status_t _kern_get_disk_device_data(partition_id deviceID, 412 bool deviceOnly, struct user_disk_device_data *buffer, 413 size_t bufferSize, size_t *neededSize); 414 extern partition_id _kern_register_file_device(const char *filename); 415 extern status_t _kern_unregister_file_device(partition_id deviceID, 416 const char *filename); 417 // Only a valid deviceID or filename need to be passed. The other one 418 // is -1/NULL. If both is given only filename is ignored. 419 420 // disk systems 421 extern status_t _kern_get_disk_system_info(disk_system_id id, 422 struct user_disk_system_info *info); 423 extern status_t _kern_get_next_disk_system_info(int32 *cookie, 424 struct user_disk_system_info *info); 425 extern status_t _kern_find_disk_system(const char *name, 426 struct user_disk_system_info *info); 427 428 // disk device modification 429 extern status_t _kern_defragment_partition(partition_id partitionID, 430 int32* changeCounter); 431 extern status_t _kern_repair_partition(partition_id partitionID, 432 int32* changeCounter, bool checkOnly); 433 extern status_t _kern_resize_partition(partition_id partitionID, 434 int32* changeCounter, partition_id childID, 435 int32* childChangeCounter, off_t size, 436 off_t contentSize); 437 extern status_t _kern_move_partition(partition_id partitionID, 438 int32* changeCounter, partition_id childID, 439 int32* childChangeCounter, off_t newOffset, 440 partition_id* descendantIDs, 441 int32* descendantChangeCounters, int32 descendantCount); 442 extern status_t _kern_set_partition_name(partition_id partitionID, 443 int32* changeCounter, partition_id childID, 444 int32* childChangeCounter, const char* name); 445 extern status_t _kern_set_partition_content_name(partition_id partitionID, 446 int32* changeCounter, const char* name); 447 extern status_t _kern_set_partition_type(partition_id partitionID, 448 int32* changeCounter, partition_id childID, 449 int32* childChangeCounter, const char* type); 450 extern status_t _kern_set_partition_parameters(partition_id partitionID, 451 int32* changeCounter, partition_id childID, 452 int32* childChangeCounter, const char* parameters, 453 size_t parametersSize); 454 extern status_t _kern_set_partition_content_parameters( 455 partition_id partitionID, int32* changeCounter, 456 const char* parameters, size_t parametersSize); 457 extern status_t _kern_initialize_partition(partition_id partitionID, 458 int32* changeCounter, const char* diskSystemName, 459 const char* name, const char* parameters, 460 size_t parametersSize); 461 extern status_t _kern_uninitialize_partition(partition_id partitionID, 462 int32* changeCounter); 463 extern status_t _kern_create_child_partition(partition_id partitionID, 464 int32* changeCounter, off_t offset, off_t size, 465 const char* type, const char* name, 466 const char* parameters, size_t parametersSize, 467 partition_id* childID, int32* childChangeCounter); 468 extern status_t _kern_delete_child_partition(partition_id partitionID, 469 int32* changeCounter, partition_id childID, 470 int32 childChangeCounter); 471 472 #if 0 473 474 // watching 475 status_t start_disk_device_watching(port_id, int32 token, uint32 flags); 476 status_t start_disk_device_job_watching(disk_job_id job, port_id, int32 token, 477 uint32 flags); 478 status_t stop_disk_device_watching(port_id, int32 token); 479 480 #endif // 0 481 482 483 // The end mark for gensyscallinfos. 484 #ifdef GEN_SYSCALL_INFOS_PROCESSING 485 #pragma syscalls end 486 #endif 487 488 #ifdef __cplusplus 489 } 490 #endif 491 492 #endif /* _SYSTEM_SYSCALLS_H */ 493