btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / kernel / generic_syscall.h
blob8f2a59f5dbd58f87ea5788cd4efa7a36355dcd58
1 /*
2 * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _KERNEL_GENERIC_SYSCALLS_H
6 #define _KERNEL_GENERIC_SYSCALLS_H
9 #include <SupportDefs.h>
11 #include <generic_syscall_defs.h>
14 /* If we decide to make this API public, the contents of this file
15 * should be moved to KernelExport.h
18 typedef status_t (*syscall_hook)(const char *subsystem, uint32 function, void *buffer, size_t bufferSize);
20 /* syscall flags */
21 #define B_SYSCALL_NOT_REPLACEABLE 1
22 #define B_DO_NOT_REPLACE_SYSCALL 2
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
29 status_t register_generic_syscall(const char *subsystem, syscall_hook hook,
30 uint32 version, uint32 flags);
31 status_t unregister_generic_syscall(const char *subsystem, uint32 version);
33 #ifdef __cplusplus
35 #endif
37 #endif /* _KERNEL_GENERIC_SYSCALLS_H */