7974872552
- drop the notion of frags (LFS fragments) vs fsb (FFS fragments) The code uses a complicated unity function that just makes the code difficult to understand. - support larger sector sizes. Fix disk address computations to use DEV_BSIZE in the kernel as required by device drivers and to use sector sizes in userland. - Fix several locking bugs in lfs_bio.c and lfs_subr.c.
25 lines
567 B
C
25 lines
567 B
C
#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_ */
|