April 2012
Intermediate to advanced
352 pages
8h
English
The FreeBSD kernel provides the following 14 functions for working with sx locks:
#include <sys/param.h> #include <sys/lock.h> #include <sys/sx.h> void sx_init(struct sxsx, const char
description); void sx_init_flags(struct sx sx, const char description, int
opts); void sx_slock(struct sx sx); void sx_xlock(struct sx sx); int sx_slock_sig(struct sx sx); int sx_xlock_sig(struct sx sx); int sx_try_slock(struct ...