Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/fs.h
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | struct file_operations { | ||||
int (*release)(struct inode *, struct linux_file *); | int (*release)(struct inode *, struct linux_file *); | ||||
int (*fasync)(int, struct linux_file *, int); | int (*fasync)(int, struct linux_file *, int); | ||||
/* Although not supported in FreeBSD, to align with Linux code | /* Although not supported in FreeBSD, to align with Linux code | ||||
* we are adding llseek() only when it is mapped to no_llseek which returns | * we are adding llseek() only when it is mapped to no_llseek which returns | ||||
* an illegal seek error | * an illegal seek error | ||||
*/ | */ | ||||
off_t (*llseek)(struct linux_file *, off_t, int); | off_t (*llseek)(struct linux_file *, off_t, int); | ||||
/* | |||||
* Not supported in FreeBSD. That's ok, we never call it and it allows some | |||||
* drivers like DRM drivers to compile without changes. | |||||
*/ | |||||
void (*show_fdinfo)(struct seq_file *, struct file *); | |||||
bz: No need for variable names in declarations (remove m and f) also to stay consistent with the… | |||||
#if 0 | #if 0 | ||||
/* We do not support these methods. Don't permit them to compile. */ | /* We do not support these methods. Don't permit them to compile. */ | ||||
loff_t (*llseek)(struct file *, loff_t, int); | loff_t (*llseek)(struct file *, loff_t, int); | ||||
ssize_t (*aio_read)(struct kiocb *, const struct iovec *, | ssize_t (*aio_read)(struct kiocb *, const struct iovec *, | ||||
unsigned long, loff_t); | unsigned long, loff_t); | ||||
ssize_t (*aio_write)(struct kiocb *, const struct iovec *, | ssize_t (*aio_write)(struct kiocb *, const struct iovec *, | ||||
unsigned long, loff_t); | unsigned long, loff_t); | ||||
int (*readdir)(struct file *, void *, filldir_t); | int (*readdir)(struct file *, void *, filldir_t); | ||||
▲ Show 20 Lines • Show All 260 Lines • Show Last 20 Lines |
No need for variable names in declarations (remove m and f) also to stay consistent with the rest of the file.
This likely warrants another __FreeBSD_version bump (so maybe do that when all changes are going in together).