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
off_t lf_start; /* Byte # of the start of the lock */
off_t lf_end; /* Byte # of the end of the lock (-1=EOF) */
caddr_t lf_id; /* Id of the resource holding the lock */
- uint32_t lf_waiters; /* count of waiters on this lock */
struct lockf **lf_head; /* Back pointer to the head of the locf list */
struct vnode *lf_vnode; /* Back pointer to the inode */
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()
__BEGIN_DECLS
+#ifdef KERNEL_PRIVATE
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 *);
void lf_printlist(char *, struct lockf *);
#endif
+#endif /* KERNEL_PRIVATE */
__END_DECLS