Tell the truth about a) how to get the first fileid, and

b) what return values from kldstat(2) can be expected.

Bump .Dd.

MFC after:	3 days
This commit is contained in:
Yaroslav Tykhiy 2006-02-22 15:11:12 +00:00
parent 9cc9484cb5
commit 36ab780431
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155912

View File

@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd March 3, 1999
.Dd February 22, 2006
.Dt KLDNEXT 2
.Os
.Sh NAME
@ -47,15 +47,20 @@ returns the fileid of the next kld file (that is, the one after
or 0 if
.Va fileid
is the last file loaded.
To get the fileid of the first kld file, pass
.Va fileid
of 0 to
.Fn kldnext .
.Sh RETURN VALUES
The
.Fn kldnext
system call
returns the fileid of the next kld file (see DESCRIPTION) or 0.
If an error
occurs,
returns the fileid of the next kld file or 0 if successful.
Otherwise
.Fn kldnext
returns the value \-1 and sets the global variable
.Va errno
is set to indicate the error.
to indicate the error.
.Sh ERRORS
The only error set by
.Fn kldnext