Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/vnode.h
Show First 20 Lines • Show All 723 Lines • ▼ Show 20 Lines | int vn_generic_copy_file_range(struct vnode *invp, off_t *inoffp, | ||||
struct vnode *outvp, off_t *outoffp, size_t *lenp, | struct vnode *outvp, off_t *outoffp, size_t *lenp, | ||||
unsigned int flags, struct ucred *incred, struct ucred *outcred, | unsigned int flags, struct ucred *incred, struct ucred *outcred, | ||||
struct thread *fsize_td); | struct thread *fsize_td); | ||||
int vn_need_pageq_flush(struct vnode *vp); | int vn_need_pageq_flush(struct vnode *vp); | ||||
bool vn_isdisk_error(struct vnode *vp, int *errp); | bool vn_isdisk_error(struct vnode *vp, int *errp); | ||||
bool vn_isdisk(struct vnode *vp); | bool vn_isdisk(struct vnode *vp); | ||||
int _vn_lock(struct vnode *vp, int flags, const char *file, int line); | int _vn_lock(struct vnode *vp, int flags, const char *file, int line); | ||||
#define vn_lock(vp, flags) _vn_lock(vp, flags, __FILE__, __LINE__) | #define vn_lock(vp, flags) _vn_lock(vp, flags, __FILE__, __LINE__) | ||||
void vn_lock_pair(struct vnode *vp1, bool vp1_locked, struct vnode *vp2, | |||||
bool vp2_locked); | |||||
int vn_open(struct nameidata *ndp, int *flagp, int cmode, struct file *fp); | int vn_open(struct nameidata *ndp, int *flagp, int cmode, struct file *fp); | ||||
int vn_open_cred(struct nameidata *ndp, int *flagp, int cmode, | int vn_open_cred(struct nameidata *ndp, int *flagp, int cmode, | ||||
u_int vn_open_flags, struct ucred *cred, struct file *fp); | u_int vn_open_flags, struct ucred *cred, struct file *fp); | ||||
int vn_open_vnode(struct vnode *vp, int fmode, struct ucred *cred, | int vn_open_vnode(struct vnode *vp, int fmode, struct ucred *cred, | ||||
struct thread *td, struct file *fp); | struct thread *td, struct file *fp); | ||||
void vn_pages_remove(struct vnode *vp, vm_pindex_t start, vm_pindex_t end); | void vn_pages_remove(struct vnode *vp, vm_pindex_t start, vm_pindex_t end); | ||||
int vn_pollrecord(struct vnode *vp, struct thread *p, int events); | int vn_pollrecord(struct vnode *vp, struct thread *p, int events); | ||||
int vn_rdwr(enum uio_rw rw, struct vnode *vp, void *base, | int vn_rdwr(enum uio_rw rw, struct vnode *vp, void *base, | ||||
Show All 25 Lines | int vn_vget_ino_gen(struct vnode *vp, vn_get_ino_t alloc, | ||||
void *alloc_arg, int lkflags, struct vnode **rvp); | void *alloc_arg, int lkflags, struct vnode **rvp); | ||||
int vn_utimes_perm(struct vnode *vp, struct vattr *vap, | int vn_utimes_perm(struct vnode *vp, struct vattr *vap, | ||||
struct ucred *cred, struct thread *td); | struct ucred *cred, struct thread *td); | ||||
int vn_io_fault_uiomove(char *data, int xfersize, struct uio *uio); | int vn_io_fault_uiomove(char *data, int xfersize, struct uio *uio); | ||||
int vn_io_fault_pgmove(vm_page_t ma[], vm_offset_t offset, int xfersize, | int vn_io_fault_pgmove(vm_page_t ma[], vm_offset_t offset, int xfersize, | ||||
struct uio *uio); | struct uio *uio); | ||||
void vn_seqc_write_begin_unheld_locked(struct vnode *vp); | void vn_seqc_write_begin_unheld_locked(struct vnode *vp); | ||||
markj: Group it with vn_lock() above? | |||||
void vn_seqc_write_begin_unheld(struct vnode *vp); | void vn_seqc_write_begin_unheld(struct vnode *vp); | ||||
void vn_seqc_write_begin_locked(struct vnode *vp); | void vn_seqc_write_begin_locked(struct vnode *vp); | ||||
void vn_seqc_write_begin(struct vnode *vp); | void vn_seqc_write_begin(struct vnode *vp); | ||||
void vn_seqc_write_end_locked(struct vnode *vp); | void vn_seqc_write_end_locked(struct vnode *vp); | ||||
void vn_seqc_write_end(struct vnode *vp); | void vn_seqc_write_end(struct vnode *vp); | ||||
#define vn_seqc_read_any(vp) seqc_read_any(&(vp)->v_seqc) | #define vn_seqc_read_any(vp) seqc_read_any(&(vp)->v_seqc) | ||||
#define vn_seqc_consistent(vp, seq) seqc_consistent(&(vp)->v_seqc, seq) | #define vn_seqc_consistent(vp, seq) seqc_consistent(&(vp)->v_seqc, seq) | ||||
▲ Show 20 Lines • Show All 314 Lines • Show Last 20 Lines |
Group it with vn_lock() above?