From owner-man-jp-reviewer@jp.freebsd.org  Fri May  5 16:12:10 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id QAA38599;
	Fri, 5 May 2000 16:12:10 +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 QAA38594
	for <man-jp-reviewer@jp.freebsd.org>; Fri, 5 May 2000 16:12:05 +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 e457Iot21382
	for <man-jp-reviewer@jp.freebsd.org>; Fri, 5 May 2000 16:18:50 +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: <200005051612.EGE30710.LZPV@veltec.co.jp>
X-Mailer: Winbiff [Version 2.31 beta1]
Date: Fri, 5 May 2000 16:12:56 +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 2367
Subject: [man-jp-reviewer 2367] (man2) kldfirstmod.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!V$G:G=i$K8=$l$^$7$?!#!W(B -> $B!V$G$O$8$a$FEP>l$7$^$7$?!#!W(B

------- $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/kldfirstmod.2,v 1.3.2.3 1999/09/18 16:18:59 phantom Exp $	
.\"
.Dd March 3, 1999
.Dt KLDFIRSTMOD 2
.Os FreeBSD
.Sh $BL>>N(B
.Nm kldfirstmod
.Nd "$B;XDj$5$l$?(B kld $B%U%!%$%k$+$i:G=i$N%b%8%e!<%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 kldfirstmod "int fileid"
.Sh $B2r@b(B
.Fn kldfirstmod
$B4X?t$O!"(B
.Va fileid
$B$K$h$C$F;2>H$5$l$?:G=i$N%b%8%e!<%k$K4XO"$9$k%b%8%e!<%k(B ID $B$r(B
$BJV$7$^$9!#(B
.Sh $BLa$jCM(B
.Fn kldfirstmod
$B$O!"(B
.Va fileid
$B$K$h$C$F;2>H$5$l$k:G=i$N%b%8%e!<%k$N(B ID $B$rJV$7!"(B
$B;2>H$,$J$$>l9g$O(B 0 $B$rJV$7$^$9!#(B
.Sh $B%(%i!<(B
.Bl -tag -width Er
.It Bq Er ENOENT
.Va fileid
$B$K$h$C$F;2>H$5$l$?(B kld $B%U%!%$%k$,8+$D$+$j$^$;$s$G$7$?!#(B
.Sh $B4XO"9`L\(B
.Xr kldfind 2 ,
.Xr kldload 2 ,
.Xr kldnext 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:G=i$K8=$l$^$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/kldfirstmod.2,v 1.3.2.3 1999/09/18 16:18:59 phantom Exp $	
.\"
.Dd March 3, 1999
.Dt KLDFIRSTMOD 2
.Os FreeBSD
.Sh NAME
.Nm kldfirstmod
.Nd "return first module id from the kld file specified"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/linker.h>
.Ft int
.Fn kldfirstmod "int fileid"
.Sh DESCRIPTION
The
.Fn kldfirstmod
function returns the module id pertaining to the first module referenced by
.Va fileid .
.Sh RETURN VALUES
The
.Fn kldfirstmod
will return the id of the first module referenced by
.Va fileid
or 0 if there are no references.
.Sh ERRORS
.Bl -tag -width Er
.It Bq Er ENOENT
The kld file referenced by
.Va fileid
was not found.
.Sh SEE ALSO
.Xr kldfind 2 ,
.Xr kldload 2 ,
.Xr kldnext 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 --------------------------------------------------
