From owner-man-jp-reviewer@jp.freebsd.org  Sat Aug 25 08:50:58 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id IAA76760;
	Sat, 25 Aug 2001 08:50:58 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from smtp1.interramp.com (smtp1.interramp.com [38.8.45.2])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id IAA76751
	for <man-jp-reviewer@jp.freebsd.org>; Sat, 25 Aug 2001 08:50:57 +0900 (JST)
	(envelope-from horikawa@psinet.com)
Received: from [205.164.248.38] (helo=localhost)
	by smtp1.interramp.com with esmtp (Exim 1.90 #1)
	for man-jp-reviewer@jp.freebsd.org
	id 15aQj1-0002pb-00; Fri, 24 Aug 2001 19:50:55 -0400
Date: Fri, 24 Aug 2001 19:49:42 -0400 (EDT)
Message-Id: <20010824.194942.00961307.horikawa@psinet.com>
To: man-jp-reviewer@jp.freebsd.org
From: Kazuo Horikawa <horikawa@psinet.com>
X-Mailer: Mew version 2.0 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: man-jp-reviewer 3758
Subject: [man-jp-reviewer 3758] kldsym.2
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: horikawa@psinet.com

$BKY@n$G$9!#(B

kldsym.2 $B$NK]Lu$G$9!#(B
$B4{$K=P$7$?$H;W$C$F$?$N$G$9$,!"$d$O$j=P$7K:$l$F$$$?$h$&$G$9!#(B

The next two members,
.Va version
and
.Va symname

$B$O!"$=$NA0$NJ8$G(B version $B$K$D$$$F8l$C$F$$$k$H$$$&M}M3$+$i!"(B

Two members
.Va version
and
.Va symname

$B$NJ}$,NI$5$=$&$G$9$,!"Lu$G$OD>$7$F$$$^$;$s!#(B

-are specified by the user.
--- kldsym.2.bak	Sun Aug 19 16:59:06 2001
+++ kldsym.2	Sun Aug 19 17:12:16 2001
@@ -24,89 +24,87 @@
 .\" 
 .\" 	$FreeBSD: src/lib/libc/sys/kldsym.2,v 1.1.2.1 2001/08/01 05:42:27 chris Exp $
 .\" 
-.Dd July 26, 2001
 .\" jpman %Id: kldsym.2,v 0.0 2001/08/06 01:03:38 horikawa Chk %
+.Dd July 26, 2001
 .Dt KLDSYM 2
-.Os FreeBSD
-.Sh NAME
+.Os
+.Sh $BL>>N(B
 .Nm kldsym
 .Nd look up address by symbol name in a KLD
-.Sh LIBRARY
+.Sh $B%i%$%V%i%j(B
 .Lb libc
-.Sh SYNOPSIS
+.Sh $B=q<0(B
 .Fd #include <sys/param.h>
 .Fd #include <sys/linker.h>
 .Ft int
 .Fn kldsym "int fileid" "int command" "void *data"
-.Sh DESCRIPTION
-The
+.Sh $B2r@b(B
 .Fn kldsym
-function returns the address of the symbol specified in
+$B4X?t$O!"(B
+.Fa fileid
+$B$G;XDj$5$l$?%b%8%e!<%k$K$*$1$k(B
 .Fa data
-in the module specified by
-.Fa fileid .
-Currently, the only
+$B$G;XDj$5$l$?%7%s%\%k$N%"%I%l%9$rJV$7$^$9!#(B
+$B8=:_!"<BAu$5$l$F$$$k(B
 .Fa command
-implemented is
-.Dv KLDSYM_LOOKUP .
+$B$O(B
+.Dv KLDSYM_LOOKUP
+$B$N$_$G$9!#(B
 .Pp
-The
 .Fa data
-argument is of the following structure:
+$B0z?t$O!"<!$N9=B$BN$G$9(B:
 .Pp
 .Bd -literal -offset indent
 struct kld_sym_lookup {
     int         version;        /* sizeof(struct kld_sym_lookup) */
-    char        *symname;       /* Symbol name we are looking up */
+    char        *symname;       /* $B8!:wBP>]$N%7%s%\%kL>(B */
     u_long      symvalue;
     size_t      symsize;
 };
 .Ed
 .Pp
-The
 .Va version
-member is to be set
-by the code calling
+$B%a%s%P$O!"(B
 .Fn kldsym
-to
-.Li sizeof(struct kld_sym_lookup) .
-The next two members,
+$B$r8F$V%3!<%I$K$h$C$F!"(B
+.Li sizeof(struct kld_sym_lookup)
+$B$K@_Dj$5$l$k$Y$-$G$9!#(B
+$B<!$N(B 2 $B8D$N0z?t(B
 .Va version
-and
+$B$H(B
 .Va symname
-are specified by the user.
-The last two,
+$B$O!"%f!<%6$,;XDj$7$^$9!#(B
+$B:G8e$N(B 2 $B8D(B
 .Va symvalue
-and
+$B$H(B
 .Va symsize
-are filled in by
+$B$O!"(B
 .Fn kldsym
-and contain the address associated with
+$B$K$h$C$FKd$a$i$l$^$9!#(B
+$B$3$l$i$O!"(B
 .Va symname
-and the size of the data it points to, respectively.
-.Sh RETURN VALUES
-The
+$B$K4XO"IU$1$i$l$?%"%I%l%9$H!"(B
+$B;X$5$l$?%G!<%?$NBg$-$5$r!"$=$l$>$lJ];}$7$^$9!#(B
+.Sh $BLa$jCM(B
 .Fn kldsym
-function returns 0 on success
-and -1 on failure, and sets
+$B4X?t$O!"@.8y;~$K$O(B 0 $B$rJV$7$^$9!#(B
+$B<:GT;~$K$O(B -1 $B$rJV$7!"%(%i!<$r(B
 .Va errno
-to indicate the error.
-.Sh ERRORS
-The
+$B$K@_Dj$7$^$9!#(B
+.Sh $B%(%i!<(B
 .Fn kldsym
-function will fail if:
+$B4X?t$O<!$N>l9g$K<:GT$7$^$9(B:
 .Bl -tag -width Er
 .It Bq Er EINVAL
-Invalid value in
 .Fa data->version
-or
-.Fa command .
+$B$^$?$O(B
+.Fa command
+$B$NCf$NCM$,IT@5$G$9!#(B
 .It Bq Er ENOENT
-.Fa Fileid
-is invalid,
-or the specified symbol could not be found.
+.Fa fileid
+$B$,IT@5$G$"$k$+!";XDj$7$?%7%s%\%k$,8+IU$+$j$^$;$s$G$7$?!#(B
 .El
-.Sh SEE ALSO
+.Sh $B4XO"9`L\(B
 .Xr kldfind 2 ,
 .Xr kldfirstmod 2 ,
 .Xr kldload 2 ,
@@ -116,8 +114,8 @@
 .Xr modnext 2 ,
 .Xr modstat 2 ,
 .Xr kld 4
-.Sh HISTORY
-The
+.Sh $BNr;K(B
 .Fn kldsym
-function first appeared in
-.Fx 3.0 .
+$B4X?t$O(B
+.Fx 3.0
+$B$G$O$8$a$FEP>l$7$^$7$?!#(B
--
$BKY@nOBM:(B
