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