2009-08-06 04:51:55 +04:00
|
|
|
#ifndef _LFS_KERNEL_OPS_H_
|
|
|
|
#define _LFS_KERNEL_OPS_H_
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/statvfs.h>
|
|
|
|
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
struct kernelops {
|
2009-10-14 02:04:31 +04:00
|
|
|
int (*ko_open)(const char *, int, ...);
|
2009-08-06 04:51:55 +04:00
|
|
|
int (*ko_statvfs)(const char *, struct statvfs *, int);
|
2009-10-14 02:04:31 +04:00
|
|
|
int (*ko_fcntl)(int, int, ...);
|
2009-08-06 04:51:55 +04:00
|
|
|
int (*ko_fhopen)(const void *, size_t, int);
|
|
|
|
int (*ko_close)(int);
|
|
|
|
|
|
|
|
ssize_t (*ko_pread)(int, void *, size_t, off_t);
|
|
|
|
ssize_t (*ko_pwrite)(int, const void *, size_t, off_t);
|
|
|
|
};
|
2009-08-06 04:55:08 +04:00
|
|
|
extern const struct kernelops kops;
|
2009-08-06 04:51:55 +04:00
|
|
|
|
|
|
|
#endif /* _LFS_KERNEL_OPS_H_ */
|