Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/lockf.h
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
struct lockf_entry { | struct lockf_entry { | ||||
short lf_flags; /* (c) Semantics: F_POSIX, F_FLOCK, F_WAIT */ | short lf_flags; /* (c) Semantics: F_POSIX, F_FLOCK, F_WAIT */ | ||||
short lf_type; /* (s) Lock type: F_RDLCK, F_WRLCK */ | short lf_type; /* (s) Lock type: F_RDLCK, F_WRLCK */ | ||||
off_t lf_start; /* (s) Byte # of the start of the lock */ | off_t lf_start; /* (s) Byte # of the start of the lock */ | ||||
off_t lf_end; /* (s) Byte # of the end of the lock (OFF_MAX=EOF) */ | off_t lf_end; /* (s) Byte # of the end of the lock (OFF_MAX=EOF) */ | ||||
struct lock_owner *lf_owner; /* (c) Owner of the lock */ | struct lock_owner *lf_owner; /* (c) Owner of the lock */ | ||||
struct vnode *lf_vnode; /* (c) File being locked (only valid for active lock) */ | struct vnode *lf_vnode; /* (c) File being locked (only valid for active lock) */ | ||||
struct inode *lf_inode; /* (c) Back pointer to the inode */ | |||||
struct task *lf_async_task;/* (c) Async lock callback */ | struct task *lf_async_task;/* (c) Async lock callback */ | ||||
LIST_ENTRY(lockf_entry) lf_link; /* (s) Linkage for lock lists */ | LIST_ENTRY(lockf_entry) lf_link; /* (s) Linkage for lock lists */ | ||||
struct lockf_edge_list lf_outedges; /* (s) list of out-edges */ | struct lockf_edge_list lf_outedges; /* (s) list of out-edges */ | ||||
struct lockf_edge_list lf_inedges; /* (s) list of in-edges */ | struct lockf_edge_list lf_inedges; /* (s) list of in-edges */ | ||||
int lf_refs; /* (s) ref count */ | int lf_refs; /* (s) ref count */ | ||||
}; | }; | ||||
LIST_HEAD(lockf_entry_list, lockf_entry); | LIST_HEAD(lockf_entry_list, lockf_entry); | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |