Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/file.h
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | struct xfile { | ||||
int _xf_int_pad3; | int _xf_int_pad3; | ||||
int64_t _xf_int64_pad[6]; | int64_t _xf_int64_pad[6]; | ||||
}; | }; | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
extern struct fileops vnops; | extern struct fileops vnops; | ||||
extern struct fileops badfileops; | extern struct fileops badfileops; | ||||
extern struct fileops path_fileops; | |||||
extern struct fileops socketops; | extern struct fileops socketops; | ||||
extern int maxfiles; /* kernel limit on number of open files */ | extern int maxfiles; /* kernel limit on number of open files */ | ||||
extern int maxfilesperproc; /* per process limit on number of open files */ | extern int maxfilesperproc; /* per process limit on number of open files */ | ||||
int fget(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp); | int fget(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp); | ||||
int fget_mmap(struct thread *td, int fd, cap_rights_t *rightsp, | int fget_mmap(struct thread *td, int fd, cap_rights_t *rightsp, | ||||
vm_prot_t *maxprotp, struct file **fpp); | vm_prot_t *maxprotp, struct file **fpp); | ||||
int fget_read(struct thread *td, int fd, cap_rights_t *rightsp, | int fget_read(struct thread *td, int fd, cap_rights_t *rightsp, | ||||
struct file **fpp); | struct file **fpp); | ||||
int fget_write(struct thread *td, int fd, cap_rights_t *rightsp, | int fget_write(struct thread *td, int fd, cap_rights_t *rightsp, | ||||
struct file **fpp); | struct file **fpp); | ||||
int fget_fcntl(struct thread *td, int fd, cap_rights_t *rightsp, | int fget_fcntl(struct thread *td, int fd, cap_rights_t *rightsp, | ||||
int needfcntl, struct file **fpp); | int needfcntl, struct file **fpp); | ||||
int _fdrop(struct file *fp, struct thread *td); | int _fdrop(struct file *fp, struct thread *td); | ||||
fo_rdwr_t invfo_rdwr; | fo_rdwr_t invfo_rdwr; | ||||
fo_truncate_t invfo_truncate; | fo_truncate_t invfo_truncate; | ||||
fo_ioctl_t invfo_ioctl; | fo_ioctl_t invfo_ioctl; | ||||
fo_poll_t invfo_poll; | fo_poll_t invfo_poll; | ||||
fo_kqfilter_t invfo_kqfilter; | fo_kqfilter_t invfo_kqfilter; | ||||
fo_chmod_t invfo_chmod; | fo_chmod_t invfo_chmod; | ||||
fo_chown_t invfo_chown; | fo_chown_t invfo_chown; | ||||
fo_sendfile_t invfo_sendfile; | fo_sendfile_t invfo_sendfile; | ||||
fo_stat_t vn_statfile; | |||||
fo_sendfile_t vn_sendfile; | fo_sendfile_t vn_sendfile; | ||||
fo_seek_t vn_seek; | fo_seek_t vn_seek; | ||||
fo_fill_kinfo_t vn_fill_kinfo; | fo_fill_kinfo_t vn_fill_kinfo; | ||||
int vn_fill_kinfo_vnode(struct vnode *vp, struct kinfo_file *kif); | int vn_fill_kinfo_vnode(struct vnode *vp, struct kinfo_file *kif); | ||||
void finit(struct file *, u_int, short, void *, struct fileops *); | void finit(struct file *, u_int, short, void *, struct fileops *); | ||||
void finit_vnode(struct file *, u_int, void *, struct fileops *); | void finit_vnode(struct file *, u_int, void *, struct fileops *); | ||||
int fgetvp(struct thread *td, int fd, cap_rights_t *rightsp, | int fgetvp(struct thread *td, int fd, cap_rights_t *rightsp, | ||||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |