file_lock
static struct file_lock *lalloc(void);
void lfree(struct file_lock *);
enum nlm_stats do_lock(struct file_lock *, int);
enum nlm_stats do_unlock(struct file_lock *);
void send_granted(struct file_lock *, int);
static struct file_lock *lock_lookup(struct file_lock *, int);
static struct file_lock *
lock_lookup(struct file_lock *newfl, int flags)
struct file_lock *fl;
struct file_lock *fl;
struct file_lock *fl, *newfl;
struct file_lock *fl;
static struct file_lock *
return calloc(1, sizeof(struct file_lock));
lfree(struct file_lock *fl)
struct file_lock *fl;
LIST_HEAD(lcklst_head, file_lock);
do_lock(struct file_lock *fl, int block)
send_granted(struct file_lock *fl, int opcode)
do_unlock(struct file_lock *rfl)
struct file_lock *fl;
struct file_lock *fl, *next_fl;
LIST_ENTRY(file_lock) lcklst;