From owner-man-jp-reviewer@jp.freebsd.org  Fri May  5 16:16:15 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id QAA38844;
	Fri, 5 May 2000 16:16:15 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from basil.veltec.co.jp (camomile.veltec.co.jp [211.2.223.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id QAA38837
	for <man-jp-reviewer@jp.freebsd.org>; Fri, 5 May 2000 16:16:14 +0900 (JST)
	(envelope-from yuko@veltec.co.jp)
Received: from jade ([192.168.0.66])
	by basil.veltec.co.jp (8.10.0.Beta6/3.7W03/20/00) with ESMTP
	id e457N0t21408
	for <man-jp-reviewer@jp.freebsd.org>; Fri, 5 May 2000 16:23:00 +0900 (JST)
To: man-jp-reviewer@jp.freebsd.org
X-SMIME-fingerprint: A7:AE:D4:83:9D:5B:A5:F2:24:8F:F4:DC:87:3C:72:89
From: Yuko Sasaki <yuko@veltec.co.jp>
Message-Id: <200005051617.AAD88775.LPVZ@veltec.co.jp>
X-Mailer: Winbiff [Version 2.31 beta1]
Date: Fri, 5 May 2000 16:17:12 +0900
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: man-jp-reviewer 2369
Subject: [man-jp-reviewer 2369] (man2) kldnext.2
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: yuko@veltec.co.jp

------- $B$3$3$+$i(B --------------------------------------------------
.\"
.\" Copyright (c) 1999 Chris Costello
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $FreeBSD: src/lib/libc/sys/kldnext.2,v 1.3.2.3 1999/09/18 16:18:59 phantom Exp $	
.\"
.Dd March 3, 1999
.Dt KLDNEXT 2
.Os FreeBSD
.Sh $BL>>N(B
.Nm kldnext
.Nd $B<!$N(B kld $B%U%!%$%k$N%U%!%$%k(B ID $B$rJV$9(B
.Sh $B=q<0(B
.Fd #include <sys/param.h>
.Fd #include <sys/linker.h>
.Ft int
.Fn kldnext "int fileid"
.Sh $B2r@b(B
$B4X?t(B
.Fn kldnext
$B$O!"<!$N(B kld $B%U%!%$%k(B ($B$9$J$o$A!"(B
.Va fileid
$B$N8e$N%U%!%$%k(B) $B$N%U%!%$%k(B ID $B$rJV$7$^$9!#(B
$B$^$?$O(B
.Va fileid
$B$,%m!<%I$5$l$?:G8e$N%U%!%$%k$N>l9g$O(B 0 $B$rJV$7$^$9!#(B
.Sh $BLa$jCM(B
.Fn kldnext
$B$O!"<!$N(B kld $B%U%!%$%k$N%U%!%$%k(B ID $B$^$?$O(B 0 $B$rJV$7$^$9(B ($B2r@b$r;2>H(B)$B!#(B
$B%(%i!<$,H/@8$7$?>l9g$O!"%(%i!<$r<($9$?$a$K(B
.Va errno
$B$,@_Dj$5$l$^$9!#(B
.Sh $B%(%i!<(B
.Fn kldnext
$B$K$h$C$F@_Dj$5$l$kM#0l$N%(%i!<$O(B ENOENT $B$G$9!#$3$l$,@_Dj$5$l$k$N$O!"(B
.Va fileid
$B$,B8:_$7$J$$(B ($B%m!<%I$5$l$F$$$^$;$s(B) kld $B%U%!%$%k$r;2>H$9$k$H$-$G$9!#(B
.Sh $B4XO"9`L\(B
.Xr kldfind 2 ,
.Xr kldfirstmod 2 ,
.Xr kldload 2 ,
.Xr kldstat 2 ,
.Xr kldunload 2 ,
.Xr kld 4
.Sh $BNr;K(B
.Nm kld
$B%$%s%?%U%'!<%9$O(B
.Fx 3.0
$B$G$O$8$a$FEP>l$7$^$7$?!#(B
------- $B$3$3$^$G(B --------------------------------------------------

------- $B86J8!&$3$3$+$i(B --------------------------------------------------
.\"
.\" Copyright (c) 1999 Chris Costello
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $FreeBSD: src/lib/libc/sys/kldnext.2,v 1.3.2.3 1999/09/18 16:18:59 phantom Exp $	
.\"
.Dd March 3, 1999
.Dt KLDNEXT 2
.Os FreeBSD
.Sh NAME
.Nm kldnext
.Nd return the fileid of the next kld file 
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/linker.h>
.Ft int
.Fn kldnext "int fileid"
.Sh DESCRIPTION
The function
.Fn kldnext
returns the fileid of the next kld file (that is, the one after
.Va fileid )
or 0 if
.Va fileid
is the last file loaded.
.Sh RETURN VALUES
.Fn kldnext
returns the fileid of the next kld file (see DESCRIPTION) or 0.  If an error
occurs,
.Va errno
is set to indicate the error.
.Sh ERRORS
The only error set by
.Fn kldnext
is ENOENT, which is set when
.Va fileid
refers to a kld file that does not exist (isn't loaded).
.Sh SEE ALSO
.Xr kldfind 2 ,
.Xr kldfirstmod 2 ,
.Xr kldload 2 ,
.Xr kldstat 2 ,
.Xr kldunload 2 ,
.Xr kld 4
.Sh HISTORY
The
.Nm kld
interface first appeared in
.Fx 3.0 .
------- $B86J8!&$3$3$^$G(B --------------------------------------------------
