kernelops.h revision 1.1 1 1.1 pooka #ifndef _LFS_KERNEL_OPS_H_
2 1.1 pooka #define _LFS_KERNEL_OPS_H_
3 1.1 pooka
4 1.1 pooka #include <sys/types.h>
5 1.1 pooka #include <sys/statvfs.h>
6 1.1 pooka
7 1.1 pooka #include <fcntl.h>
8 1.1 pooka #include <unistd.h>
9 1.1 pooka
10 1.1 pooka struct kernelops {
11 1.1 pooka int (*ko_open)(const char *, int, mode_t);
12 1.1 pooka int (*ko_statvfs)(const char *, struct statvfs *, int);
13 1.1 pooka int (*ko_fcntl)(int, int, void *);
14 1.1 pooka int (*ko_fhopen)(const void *, size_t, int);
15 1.1 pooka int (*ko_close)(int);
16 1.1 pooka
17 1.1 pooka ssize_t (*ko_pread)(int, void *, size_t, off_t);
18 1.1 pooka ssize_t (*ko_pwrite)(int, const void *, size_t, off_t);
19 1.1 pooka };
20 1.1 pooka extern struct kernelops kops;
21 1.1 pooka
22 1.1 pooka #endif /* _LFS_KERNEL_OPS_H_ */
23