- 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:
jhb 2001-03-28 12:45:41 +00:00
parent f515c0a62f
commit 11a6b9c53f
2 changed files with 5 additions and 0 deletions

View File

@ -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"

View File

@ -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"