- 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:
John Baldwin 2001-03-28 12:45:41 +00:00
parent a57fa8ae36
commit ad84c9eb36
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74932
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"