MALLOC_DECLARE(M_LOCKF);
#endif
+#if IMPORTANCE_INHERITANCE
+#define LF_NOT_BOOSTED 0
+#define LF_BOOSTED 1
+#endif /* IMPORTANCE_INHERITANCE */
+
/*
* The lockf structure is a kernel structure which contains the information
* associated with a byte range lock. The lockf structures are linked into
struct lockf *lf_next; /* Pointer to the next lock on this inode */
struct locklist lf_blkhd; /* List of requests blocked on this lock */
TAILQ_ENTRY(lockf) lf_block;/* A request waiting for a lock */
+#if IMPORTANCE_INHERITANCE
+ int lf_boosted; /* Is the owner of the lock boosted */
+#endif
+ struct proc *lf_owner; /* The proc that did the SETLK, if known */
};
#pragma pack()
int lf_advlock(struct vnop_advlock_args *);
int lf_assert(struct vnop_advlock_args *, void **);
void lf_commit(void *, int);
+void lf_abort_advlocks(vnode_t);
#ifdef LOCKF_DEBUG
void lf_print(char *, struct lockf *);