Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#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_ */