- Both <sys/sx.h> and <sys/mutex.h> depend on <sys/types.h> and
<sys/lock.h>. - <sys/sx.h> depends on <sys/mutex.h>.
This commit is contained in:
parent
f515c0a62f
commit
11a6b9c53f
@ -50,6 +50,8 @@
|
||||
.Nm mtx_assert
|
||||
.Nd kernel synchronization primitives
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <sys/types.h>
|
||||
.Fd #include <sys/lock.h>
|
||||
.Fd #include <sys/mutex.h>
|
||||
.Ft int
|
||||
.Fn mtx_init "struct mtx *mutex" "char *name" "int opts"
|
||||
|
@ -39,6 +39,9 @@
|
||||
.Nm sx_xunlock
|
||||
.Nd kernel shared/exclusive lock.
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <sys/types.h>
|
||||
.Fd #include <sys/lock.h>
|
||||
.Fd #include <sys/mutex.h>
|
||||
.Fd #include <sys/sx.h>
|
||||
.Ft void
|
||||
.Fn sx_init "struct sx *sx" "const char *description"
|
||||
|
Loading…
Reference in New Issue
Block a user