Lines Matching refs:lockf

48 #include <sys/lockf.h>
54 * The lockf structure is a kernel structure which contains the information
55 * associated with a byte range lock. The lockf structures are linked into
66 TAILQ_HEAD(locklist, lockf);
68 struct lockf {
75 struct lockf **lf_head; /* Back pointer to the head of lockf list */
76 struct lockf *lf_next; /* Next lock on this vnode, or blocking lock */
78 TAILQ_ENTRY(lockf) lf_block;/* A request waiting for a lock */
87 static char lockstr[] = "lockf";
133 lf_print(const char *tag, struct lockf *lock)
153 lf_printlist(const char *tag, struct lockf *lock)
155 struct lockf *lf, *blk;
192 static struct lockf *
196 struct lockf *lock;
214 lf_free(struct lockf *lock)
226 struct lockf *lock;
237 struct lockf *lock;
251 lf_findoverlap(struct lockf *lf, struct lockf *lock, int type,
252 struct lockf ***prev, struct lockf **overlap)
357 lf_split(struct lockf *lock1, struct lockf *lock2, struct lockf **sparelock)
359 struct lockf *splitlock;
406 lf_wakelock(struct lockf *listhead)
408 struct lockf *wakelock;
429 lf_clearlock(struct lockf *unlock, struct lockf **sparelock)
431 struct lockf **head = unlock->lf_head;
432 struct lockf *lf = *head;
433 struct lockf *overlap, **prev;
497 static struct lockf *
498 lf_getblock(struct lockf *lock)
500 struct lockf **prev, *overlap, *lf = *(lock->lf_head);
522 lf_setlock(struct lockf *lock, struct lockf **sparelock,
525 struct lockf *block;
526 struct lockf **head = lock->lf_head;
527 struct lockf **prev, *overlap, *ltmp;
559 volatile const struct lockf *waitblock;
778 lf_getlock(struct lockf *lock, struct flock *fl)
780 struct lockf *block;
809 lf_advlock(struct vop_advlock_args *ap, struct lockf **head, off_t size)
812 struct lockf *lock = NULL;
813 struct lockf *sparelock;
845 /* lockf() allows -ve lengths */
911 if (*head == (struct lockf *)0) {
920 * Create the lockf structure.
926 lock->lf_next = (struct lockf *)0;
977 lockf_cache = pool_cache_init(sizeof(struct lockf), 0, 0, 0, "lockf",