summaryrefslogtreecommitdiff
path: root/sbin/fsck_lfs/kernelops.h
blob: fc9c7b71c6bd5086bf65795c14ff3e82c3085070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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 {
	int (*ko_open)(const char *, int, ...);
	int (*ko_statvfs)(const char *, struct statvfs *, int);
	int (*ko_fcntl)(int, int, ...);
	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);
};
extern const struct kernelops kops;

extern long dev_bsize;

#endif /* _LFS_KERNEL_OPS_H_ */