diff options
author | 2007-06-24 05:39:53 +0000 | |
---|---|---|
committer | 2007-06-24 05:39:53 +0000 | |
commit | 2f4ab08958d87eed6bc8d1324f610898fc386ba0 (patch) | |
tree | a090a9aa9a4a8c53d2274ee5b53ce5d33703f48a | |
parent | rework sensor tasks to use the kernels generic workq rather than a special (diff) | |
download | wireguard-openbsd-2f4ab08958d87eed6bc8d1324f610898fc386ba0.tar.xz wireguard-openbsd-2f4ab08958d87eed6bc8d1324f610898fc386ba0.zip |
document changes to the sensor_task api. task_register now returns a
pointer to the sensor_task it just created, and task_unregister takes it
to remove that task from the system.
-rw-r--r-- | share/man/man9/sensor_attach.9 | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/share/man/man9/sensor_attach.9 b/share/man/man9/sensor_attach.9 index a76a0be32ed..1b7481899af 100644 --- a/share/man/man9/sensor_attach.9 +++ b/share/man/man9/sensor_attach.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sensor_attach.9,v 1.5 2007/05/31 19:20:01 jmc Exp $ +.\" $OpenBSD: sensor_attach.9,v 1.6 2007/06/24 05:39:53 dlg Exp $ .\" .\" Copyright (c) 2006 Michael Knudsen <mk@openbsd.org> .\" Copyright (c) 2006 Constantine A. Murenin <cnst+openbsd@bugmail.mojo.ru> @@ -24,7 +24,7 @@ .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 24 2007 $ .Dt SENSOR_ATTACH 9 .Os .Sh NAME @@ -53,10 +53,10 @@ .Ft struct ksensor .Fn "*sensor_find" "int devnum" "enum sensor_type stype" "int numt" .Pp -.Ft int +.Ft struct sensor_task * .Fn "sensor_task_register" "void *arg" "void (*func)(void *)" "int period" .Ft void -.Fn "sensor_task_unregister" "void *arg" +.Fn "sensor_task_unregister" "struct sensor_task *st" .Sh DESCRIPTION The sensors @@ -132,10 +132,9 @@ parameter is the argument given to the function. The .Fn sensor_task_unregister -removes all tasks previously registered with -.Fn sensor_task_register -with an argument of -.Fa arg . +removes the task specified with by the +.Fa st +argument. .Pp All the functions in the sensor framework must be called during .Xr autoconf 9 |