diff options
author | trhodes <trhodes@FreeBSD.org> | 2006-11-11 16:49:29 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2006-11-11 16:49:29 +0000 |
commit | c51a2c2df9d95524e4fec5b0ec36ca0a9f503823 (patch) | |
tree | adf9184119d0e0e52376ea9518d61118aa10d815 | |
parent | e4ae9746ecdeff4313c167c495d511de220a9975 (diff) | |
download | FreeBSD-src-c51a2c2df9d95524e4fec5b0ec36ca0a9f503823.zip FreeBSD-src-c51a2c2df9d95524e4fec5b0ec36ca0a9f503823.tar.gz |
Re-enable module build for POSIX semaphores.
Update the manual page describe loading the sem module.
Approved by: silence on -arch and -standards
-rw-r--r-- | share/man/man4/sem.4 | 17 | ||||
-rw-r--r-- | sys/modules/Makefile | 1 |
2 files changed, 15 insertions, 3 deletions
diff --git a/share/man/man4/sem.4 b/share/man/man4/sem.4 index 580f413..4a641dc 100644 --- a/share/man/man4/sem.4 +++ b/share/man/man4/sem.4 @@ -24,19 +24,26 @@ .\" .\" $FreeBSD$ .\" -.Dd January 14, 2003 +.Dd November 11, 2006 .Dt SEM 4 .Os .Sh NAME .Nm sem .Nd POSIX semaphores .Sh SYNOPSIS -To link into the kernel: +To compile this driver into the kernel, +place the following lines in your +kernel configuration file: .Bd -ragged -offset indent .Cd "options P1003_1B_SEMAPHORES" .Ed .Pp -To load as a kernel loadable module: +Alternatively, to load the driver as a +module at boot time, place the following line in +.Xr loader.conf 5 : +.Bd -literal -offset indent +sem_load="YES" +.Ed .Pp .Dl "kldload sem" .Sh DESCRIPTION @@ -47,6 +54,10 @@ facility provides system calls used by the standard C library to implement .Tn POSIX semaphores. +This facility offers support for such functions as +.Fn sem_init +and +.Fn sem_wait . It is available both as a kernel option for static inclusion and as a dynamic kernel module. .Sh SEE ALSO diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 35434f9..0af4960 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -219,6 +219,7 @@ SUBDIR= ${_3dfx} \ scc \ scd \ ${_scsi_low} \ + sem \ sf \ ${_sio} \ sis \ |