mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 14:49:36 -04:00
First, fix a leftover of the cut'n'paste from the kld* pages:
change the name of the page (.Nm) from "kldstat" to "modstat". Second, don't claim that modstat(2) always returns 0. Actually, it behaves as most syscalls do - returns 0 on success, or -1 on failure. MFC after: 5 days
This commit is contained in:
parent
1b91bc6f2c
commit
e2a7d2044a
1 changed files with 6 additions and 2 deletions
|
|
@ -29,7 +29,7 @@
|
|||
.Dt MODSTAT 2
|
||||
.Os FreeBSD
|
||||
.Sh NAME
|
||||
.Nm kldstat
|
||||
.Nm modstat
|
||||
.Nd get status of kernel module
|
||||
.Sh LIBRARY
|
||||
.Lb libc
|
||||
|
|
@ -82,8 +82,12 @@ The id of the module specified in
|
|||
Module specific data.
|
||||
.El
|
||||
.Sh RETURN VALUES
|
||||
The function
|
||||
.Fn modstat
|
||||
seems to always return 0.
|
||||
returns 0 on success.
|
||||
It returns -1 on failure, and sets
|
||||
.Va errno
|
||||
to indicate the error.
|
||||
.Sh ERRORS
|
||||
The information for the module referred to by
|
||||
.Fa modid
|
||||
|
|
|
|||
Loading…
Reference in a new issue