Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/rangelock.h
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
void rangelock_init(struct rangelock *lock); | void rangelock_init(struct rangelock *lock); | ||||
void rangelock_destroy(struct rangelock *lock); | void rangelock_destroy(struct rangelock *lock); | ||||
void rangelock_unlock(struct rangelock *lock, void *cookie, | void rangelock_unlock(struct rangelock *lock, void *cookie, | ||||
struct mtx *ilk); | struct mtx *ilk); | ||||
void *rangelock_unlock_range(struct rangelock *lock, void *cookie, | void *rangelock_unlock_range(struct rangelock *lock, void *cookie, | ||||
off_t start, off_t end, struct mtx *ilk); | off_t start, off_t end, struct mtx *ilk); | ||||
void *rangelock_rlock(struct rangelock *lock, off_t start, off_t end, | void *rangelock_rlock(struct rangelock *lock, off_t start, off_t end, | ||||
struct mtx *ilk); | struct mtx *ilk); | ||||
void *rangelock_tryrlock(struct rangelock *lock, off_t start, off_t end, | |||||
struct mtx *ilk); | |||||
void *rangelock_wlock(struct rangelock *lock, off_t start, off_t end, | void *rangelock_wlock(struct rangelock *lock, off_t start, off_t end, | ||||
struct mtx *ilk); | |||||
void *rangelock_trywlock(struct rangelock *lock, off_t start, off_t end, | |||||
struct mtx *ilk); | struct mtx *ilk); | ||||
void rlqentry_free(struct rl_q_entry *rlqe); | void rlqentry_free(struct rl_q_entry *rlqe); | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* _SYS_RANGELOCK_H */ | #endif /* _SYS_RANGELOCK_H */ |