Lines Matching defs:lockf
49 #include <sys/lockf.h>
57 * The lockf structure is a kernel structure which contains the information
58 * associated with a byte range lock. The lockf structures are linked into
69 TAILQ_HEAD(locklist, lockf);
71 struct lockf {
78 struct lockf **lf_head; /* Back pointer to the head of lockf list */
79 struct lockf *lf_next; /* Next lock on this vnode, or blocking lock */
81 TAILQ_ENTRY(lockf) lf_block;/* A request waiting for a lock */
89 static char lockstr[] = "lockf";
135 lf_print(const char *tag, struct lockf *lock)
155 lf_printlist(const char *tag, struct lockf *lock)
157 struct lockf *lf, *blk;
195 static struct lockf *
199 struct lockf *lock;
218 lf_free(struct lockf *lock)
234 lf_findoverlap(struct lockf *lf, struct lockf *lock, int type,
235 struct lockf ***prev, struct lockf **overlap)
340 lf_split(struct lockf *lock1, struct lockf *lock2, struct lockf **sparelock)
342 struct lockf *splitlock;
389 lf_wakelock(struct lockf *listhead)
391 struct lockf *wakelock;
412 lf_clearlock(struct lockf *unlock, struct lockf **sparelock)
414 struct lockf **head = unlock->lf_head;
415 struct lockf *lf = *head;
416 struct lockf *overlap, **prev;
480 static struct lockf *
481 lf_getblock(struct lockf *lock)
483 struct lockf **prev, *overlap, *lf = *(lock->lf_head);
505 lf_setlock(struct lockf *lock, struct lockf **sparelock,
508 struct lockf *block;
509 struct lockf **head = lock->lf_head;
510 struct lockf **prev, *overlap, *ltmp;
542 volatile const struct lockf *waitblock;
764 lf_getlock(struct lockf *lock, struct flock *fl)
766 struct lockf *block;
795 lf_advlock(struct vop_advlock_args *ap, struct lockf **head, off_t size)
798 struct lockf *lock = NULL;
799 struct lockf *sparelock;
838 /* lockf() allows -ve lengths */
906 if (*head == (struct lockf *)0) {
915 * Create the lockf structure.
921 lock->lf_next = (struct lockf *)0;