H A D | sx.h | 46 * In general, the sx locks and rwlocks use very similar algorithms. 48 * blocked when a lock is unavailable. For this, sx locks use sleep 93 #define SX_READ_VALUE(sx) ((sx)->sx_lock) argument 103 #define sx_init(sx, desc) sx_init_flags((sx), (desc), 0) argument 104 void sx_init_flags(struct sx *sx, const char *description, int opts); 105 void sx_destroy(struct sx *sx); 157 __sx_xlock(struct sx * sx,struct thread * td,int opts,const char * file,int line) __sx_xlock() argument 173 __sx_xunlock(struct sx * sx,struct thread * td,const char * file,int line) __sx_xunlock() argument 190 sx_xlock_(sx,file,line) global() argument 192 sx_xlock_sig_(sx,file,line) global() argument 194 sx_xunlock_(sx,file,line) global() argument 197 sx_xlock_(sx,file,line) global() argument 199 sx_xlock_sig_(sx,file,line) global() argument 201 sx_xunlock_(sx,file,line) global() argument 205 sx_slock_(sx,file,line) global() argument 207 sx_slock_sig_(sx,file,line) global() argument 209 sx_sunlock_(sx,file,line) global() argument 211 sx_try_slock(sx) global() argument 212 sx_try_xlock(sx) global() argument 213 sx_try_upgrade(sx) global() argument 214 sx_downgrade(sx) global() argument 216 sx_slock_(sx,file,line) global() argument 218 sx_slock_sig_(sx,file,line) global() argument 220 sx_sunlock_(sx,file,line) global() argument 222 sx_try_slock(sx) global() argument 223 sx_try_xlock(sx) global() argument 224 sx_try_upgrade(sx) global() argument 225 sx_downgrade(sx) global() argument 228 sx_assert_(sx,what,file,line) global() argument 231 sx_assert_(sx,what,file,line) global() argument 234 sx_xlock(sx) global() argument 235 sx_xlock_sig(sx) global() argument 236 sx_xunlock(sx) global() argument 237 sx_slock(sx) global() argument 238 sx_slock_sig(sx) global() argument 239 sx_sunlock(sx) global() argument 240 sx_assert(sx,what) global() argument 246 sx_xholder(sx) global() argument 250 sx_xlocked(sx) global() argument 254 sx_unlock_(sx,file,line) global() argument 262 sx_unlock(sx) global() argument 264 sx_sleep(chan,sx,pri,wmesg,timo) global() argument 312 sx_init_flags(struct sx * sx,const char * description,int opts) sx_init_flags() argument 318 sx_destroy(struct sx * sx) sx_destroy() argument [all...] |