Changeset View
Changeset View
Standalone View
Standalone View
sys/vnode.h
Show First 20 Lines • Show All 717 Lines • ▼ Show 20 Lines | |||||
#define vn_rangelock_unlock(vp, cookie) \ | #define vn_rangelock_unlock(vp, cookie) \ | ||||
rangelock_unlock(&(vp)->v_rl, (cookie), VI_MTX(vp)) | rangelock_unlock(&(vp)->v_rl, (cookie), VI_MTX(vp)) | ||||
#define vn_rangelock_unlock_range(vp, cookie, start, end) \ | #define vn_rangelock_unlock_range(vp, cookie, start, end) \ | ||||
rangelock_unlock_range(&(vp)->v_rl, (cookie), (start), (end), \ | rangelock_unlock_range(&(vp)->v_rl, (cookie), (start), (end), \ | ||||
VI_MTX(vp)) | VI_MTX(vp)) | ||||
#define vn_rangelock_rlock(vp, start, end) \ | #define vn_rangelock_rlock(vp, start, end) \ | ||||
rangelock_rlock(&(vp)->v_rl, (start), (end), VI_MTX(vp)) | rangelock_rlock(&(vp)->v_rl, (start), (end), VI_MTX(vp)) | ||||
#define vn_rangelock_rlock_trylock(vp, start, end) \ | |||||
asomers: As far as names go, I suggest the "try" idiom, as in `vn_rangelock_try_rlock` | |||||
Done Inline ActionsI added _trylock suffix, so the basic function name is recognized as the same as rmacklem: I added _trylock suffix, so the basic function name is recognized as the same as
the one that… | |||||
rangelock_rlock_trylock(&(vp)->v_rl, (start), (end), VI_MTX(vp)) | |||||
#define vn_rangelock_wlock(vp, start, end) \ | #define vn_rangelock_wlock(vp, start, end) \ | ||||
rangelock_wlock(&(vp)->v_rl, (start), (end), VI_MTX(vp)) | rangelock_wlock(&(vp)->v_rl, (start), (end), VI_MTX(vp)) | ||||
#define vn_rangelock_wlock_trylock(vp, start, end) \ | |||||
rangelock_wlock_trylock(&(vp)->v_rl, (start), (end), VI_MTX(vp)) | |||||
int vfs_cache_lookup(struct vop_lookup_args *ap); | int vfs_cache_lookup(struct vop_lookup_args *ap); | ||||
void vfs_timestamp(struct timespec *); | void vfs_timestamp(struct timespec *); | ||||
void vfs_write_resume(struct mount *mp, int flags); | void vfs_write_resume(struct mount *mp, int flags); | ||||
int vfs_write_suspend(struct mount *mp, int flags); | int vfs_write_suspend(struct mount *mp, int flags); | ||||
int vfs_write_suspend_umnt(struct mount *mp); | int vfs_write_suspend_umnt(struct mount *mp); | ||||
void vnlru_free(int, struct vfsops *); | void vnlru_free(int, struct vfsops *); | ||||
int vop_stdbmap(struct vop_bmap_args *); | int vop_stdbmap(struct vop_bmap_args *); | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |
As far as names go, I suggest the "try" idiom, as in vn_rangelock_try_rlock