Symbol: lockf
include/unistd.h
460
int lockf(int, int, off_t);
sys/fs/cd9660/cd9660_node.h
62
struct lockf *i_lockf; /* head of byte-level lock list */
sys/fs/nfsclient/nfsnode.h
107
struct lockf *n_lockf; /* Locking record of file */
sys/kern/kern_lockf.c
1041
lf_add_incoming(struct lockf *state, struct lockf_entry *lock)
sys/kern/kern_lockf.c
1081
lf_insert_lock(struct lockf *state, struct lockf_entry *lock)
sys/kern/kern_lockf.c
109
static int lf_clearlock(struct lockf *, struct lockf_entry *);
sys/kern/kern_lockf.c
1108
lf_wakeup_lock(struct lockf *state, struct lockf_entry *wakelock)
sys/kern/kern_lockf.c
1135
lf_update_dependancies(struct lockf *state, struct lockf_entry *lock, int all,
sys/kern/kern_lockf.c
1160
lf_set_start(struct lockf *state, struct lockf_entry *lock, off_t new_start,
sys/kern/kern_lockf.c
1176
lf_set_end(struct lockf *state, struct lockf_entry *lock, off_t new_end,
sys/kern/kern_lockf.c
120
static int lf_add_outgoing(struct lockf *, struct lockf_entry *);
sys/kern/kern_lockf.c
1201
lf_activate_lock(struct lockf *state, struct lockf_entry *lock)
sys/kern/kern_lockf.c
121
static int lf_add_incoming(struct lockf *, struct lockf_entry *);
sys/kern/kern_lockf.c
125
lf_getblock(struct lockf *, struct lockf_entry *);
sys/kern/kern_lockf.c
126
static int lf_getlock(struct lockf *, struct lockf_entry *, struct flock *);
sys/kern/kern_lockf.c
127
static void lf_insert_lock(struct lockf *, struct lockf_entry *);
sys/kern/kern_lockf.c
128
static void lf_wakeup_lock(struct lockf *, struct lockf_entry *);
sys/kern/kern_lockf.c
129
static void lf_update_dependancies(struct lockf *, struct lockf_entry *,
sys/kern/kern_lockf.c
131
static void lf_set_start(struct lockf *, struct lockf_entry *, off_t,
sys/kern/kern_lockf.c
1314
lf_cancel_lock(struct lockf *state, struct lockf_entry *lock)
sys/kern/kern_lockf.c
133
static void lf_set_end(struct lockf *, struct lockf_entry *, off_t,
sys/kern/kern_lockf.c
135
static int lf_setlock(struct lockf *, struct lockf_entry *,
sys/kern/kern_lockf.c
1365
lf_setlock(struct lockf *state, struct lockf_entry *lock, struct vnode *vp,
sys/kern/kern_lockf.c
137
static int lf_cancel(struct lockf *, struct lockf_entry *, void *);
sys/kern/kern_lockf.c
138
static void lf_split(struct lockf *, struct lockf_entry *,
sys/kern/kern_lockf.c
1537
lf_clearlock(struct lockf *state, struct lockf_entry *unlock)
sys/kern/kern_lockf.c
1562
lf_getlock(struct lockf *state, struct lockf_entry *lock, struct flock *fl)
sys/kern/kern_lockf.c
1591
lf_cancel(struct lockf *state, struct lockf_entry *lock, void *cookie)
sys/kern/kern_lockf.c
1644
lf_getblock(struct lockf *state, struct lockf_entry *lock)
sys/kern/kern_lockf.c
1796
lf_split(struct lockf *state, struct lockf_entry *lock1,
sys/kern/kern_lockf.c
1858
struct lockf *ls;
sys/kern/kern_lockf.c
1920
struct lockf *ls;
sys/kern/kern_lockf.c
2470
struct lockf *ls;
sys/kern/kern_lockf.c
2586
SYSCTL_PROC(_kern, KERN_LOCKF, lockf,
sys/kern/kern_lockf.c
412
lf_advlockasync(struct vop_advlockasync_args *ap, struct lockf **statep,
sys/kern/kern_lockf.c
415
struct lockf *state;
sys/kern/kern_lockf.c
593
struct lockf *ls;
sys/kern/kern_lockf.c
597
ls = malloc(sizeof(struct lockf), M_LOCKF, M_WAITOK|M_ZERO);
sys/kern/kern_lockf.c
735
lf_advlock(struct vop_advlock_args *ap, struct lockf **statep, u_quad_t size)
sys/kern/kern_lockf.c
751
lf_purgelocks(struct vnode *vp, struct lockf **statep)
sys/kern/kern_lockf.c
753
struct lockf *state;
sys/kern/kern_lockf.c
973
lf_add_outgoing(struct lockf *state, struct lockf_entry *lock)
sys/sys/lockf.h
113
LIST_ENTRY(lockf) ls_link; /* (S) all active lockf states */
sys/sys/lockf.h
119
LIST_HEAD(lockf_list, lockf);
sys/sys/lockf.h
123
int lf_advlock(struct vop_advlock_args *, struct lockf **, u_quad_t);
sys/sys/lockf.h
124
int lf_advlockasync(struct vop_advlockasync_args *, struct lockf **, u_quad_t);
sys/sys/lockf.h
125
void lf_purgelocks(struct vnode *vp, struct lockf **statep);
sys/sys/vnode.h
193
struct lockf *v_lockf; /* Byte-level advisory lock list */
tools/test/stress2/testcases/lockf/lockf.c
53
r = lockf(fd, F_LOCK, 0);
tools/test/stress2/testcases/lockf/lockf.c
68
if (lockf(fd, F_ULOCK, 0) == -1)
tools/test/stress2/testcases/lockf/lockf.c
78
r = lockf(fd, F_LOCK, 0);
tools/test/stress2/testcases/lockf/lockf.c
91
if (lockf(fd, F_ULOCK, 0) == -1)
tools/test/stress2/testcases/lockf2/lockf2.c
118
r = lockf(fd, F_LOCK, size);
tools/test/stress2/testcases/lockf2/lockf2.c
123
if (lockf(fd, F_ULOCK, size) == -1)