OSDN Git Service

Convert release and draft pages to UTF-8.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man2 / get_kernel_syms.2
index 1811275..4045784 100644 (file)
 .\"
 .TH GET_KERNEL_SYMS 2 2007-06-03 "Linux" "Linux Programmer's Manual"
 .\"O .SH NAME
-.SH Ì¾Á°
+.SH 名前
 .\"O get_kernel_syms \- retrieve exported kernel and module symbols
-get_kernel_syms \- ¸ø³«¤µ¤ì¤Æ¤¤¤ë¥«¡¼¥Í¥ë¤ä¥â¥¸¥å¡¼¥ë¤Î¥·¥ó¥Ü¥ë¤Î¼èÆÀ
+get_kernel_syms \- 公開されているカーネルやモジュールのシンボルの取得
 .\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.SH 書式
 .nf
 .B #include <linux/module.h>
 .sp
 .BI "int get_kernel_syms(struct kernel_sym *" table );
 .fi
 .\"O .SH DESCRIPTION
-.SH ÀâÌÀ
+.SH 説明
 .\"O If
 .\"O .I table
 .\"O is NULL,
@@ -29,11 +29,11 @@ get_kernel_syms \- 
 .\"O returns the number of symbols available for query.
 .\"O Otherwise it fills in a table of structures:
 .BR get_kernel_syms ()
-¤Ï¡¢
+は、
 .I table
-¤¬ NULL ¤Î¾ì¹ç¡¢
-Ì䤤¹ç¤ï¤»¤Ç¤­¤ë¥·¥ó¥Ü¥ë¤Î¿ô¤òÊÖ¤¹¡£
-NULL °Ê³°¤Î¾ì¹ç¡¢°Ê²¼¤Î¹½Â¤ÂΤÎÎó (table) ¤ËÃͤòÆþ¤ì¤ÆÊÖ¤¹¡£
+が NULL の場合、
+問い合わせできるシンボルの数を返す。
+NULL 以外の場合、以下の構造体の列 (table) に値を入れて返す。
 .PP
 .in +4n
 .nf
@@ -49,81 +49,81 @@ struct kernel_sym {
 .\"O with the kernel having an empty name.
 .\"O The value associated with a symbol of this form is the address at
 .\"O which the module is loaded.
-¥·¥ó¥Ü¥ë¤ÎÃæ¤Ë¤Ï¡¢
+シンボルの中には、
 .BI # module-name
-¤È¤¤¤¦·Á¼°¤Î¡¢¥«¡¼¥Í¥ë¤¬¶õ¤Î̾Á°¤ò»ý¤Ã¤Æ¤¤¤ë¥Þ¥¸¥Ã¥¯¥·¥ó¥Ü¥ë
-(magic symbol) ¤¬»¶ºß¤·¤Æ¤¤¤ë¡£¤³¤Î·Á¼°¤Î¥·¥ó¥Ü¥ë¤ËÂбþ¤¹¤ëÃͤÏ
-¥â¥¸¥å¡¼¥ë¤¬¥í¡¼¥É¤µ¤ì¤¿¥¢¥É¥ì¥¹¤È¤Ê¤ë¡£
+という形式の、カーネルが空の名前を持っているマジックシンボル
+(magic symbol) が散在している。この形式のシンボルに対応する値は
+モジュールがロードされたアドレスとなる。
 .PP
 .\"O The symbols exported from each module follow their magic module tag
 .\"O and the modules are returned in the reverse of the
 .\"O order in which they were loaded.
-¸Ä¡¹¤Î¥â¥¸¥å¡¼¥ë¤«¤é¸ø³« (export) ¤µ¤ì¤¿¥·¥ó¥Ü¥ë¤Ï¡¢¥Þ¥¸¥Ã¥¯¥â¥¸¥å¡¼¥ë¥¿¥°
-¤Î¸å¤í¤ËÃÖ¤«¤ì¤ë¡£¤Þ¤¿¡¢¥â¥¸¥å¡¼¥ë¤Ï¥í¡¼¥É¤µ¤ì¤¿½çÈ֤Ȥϵսç¤ÇÊÖ¤µ¤ì¤ë¡£
+å\80\8bã\80\85ã\81®ã\83¢ã\82¸ã\83¥ã\83¼ã\83«ã\81\8bã\82\89å\85¬é\96\8b (export) ã\81\95ã\82\8cã\81\9fã\82·ã\83³ã\83\9cã\83«ã\81¯ã\80\81ã\83\9eã\82¸ã\83\83ã\82¯ã\83¢ã\82¸ã\83¥ã\83¼ã\83«ã\82¿ã\82°
+の後ろに置かれる。また、モジュールはロードされた順番とは逆順で返される。
 .\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
+.SH 返り値
 .\"O On success, returns the number of symbols copied to
 .\"O .IR table .
 .\"O On error, \-1 is returned and
 .\"O .I errno
 .\"O is set appropriately.
-À®¸ù¤¹¤ë¤È¡¢
+成功すると、
 .I table
-¤Ë¥³¥Ô¡¼¤µ¤ì¤¿¥·¥ó¥Ü¥ë¿ô¤òÊÖ¤¹¡£
-¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
+にコピーされたシンボル数を返す。
+エラーの場合、\-1 を返し、
 .I errno
-¤òŬÀÚ¤ËÀßÄꤹ¤ë¡£
+を適切に設定する。
 .\"O .SH ERRORS
-.SH ¥¨¥é¡¼
+.SH ã\82¨ã\83©ã\83¼
 .\"O There is only one possible error return:
-ÊÖ¤ë²ÄǽÀ­¤¬¤¢¤ë¥¨¥é¡¼¤Ï°ì¤Ä¤À¤±¤Ç¤¢¤ë¡£
+返る可能性があるエラーは一つだけである。
 .TP
 .B ENOSYS
 .\"O .BR get_kernel_syms ()
 .\"O is not supported in this version of the kernel.
 .BR get_kernel_syms ()
-¤¬¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
+がこのバージョンのカーネルではサポートされていない。
 .\"O .SH VERSIONS
-.SH ¥Ð¡¼¥¸¥ç¥ó
+.SH バージョン
 .\"O This system call is only present on Linux up until kernel 2.4;
 .\"O it was removed in Linux 2.6.
-¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤¬Â¸ºß¤¹¤ë¤Î¤Ï¥«¡¼¥Í¥ë 2.4 ¤Þ¤Ç¤Î Linux ¤À¤±¤Ç¤¢¤ë¡£
-Linux 2.6 ¤Ç¤Ïºï½ü¤µ¤ì¤¿¡£
+このシステムコールが存在するのはカーネル 2.4 までの Linux だけである。
+Linux 2.6 では削除された。
 .\" Removed in Linux 2.5.48
 .\"O .SH "CONFORMING TO"
-.SH ½àµò
+.SH 準拠
 .\"O .BR get_kernel_syms ()
 .\"O is Linux-specific.
 .BR get_kernel_syms ()
-¤Ï Linux ¸ÇÍ­¤Ç¤¢¤ë¡£
+は Linux 固有である。
 .\"O .SH BUGS
-.SH ¥Ð¥°
+.SH ã\83\90ã\82°
 .\"O There is no way to indicate the size of the buffer allocated for
 .\"O .IR table .
 .\"O If symbols have been added to the kernel since the
 .\"O program queried for the symbol table size, memory will be corrupted.
 .I table
-ÍѤ˳ÎÊݤ·¤¿¥Ð¥Ã¥Õ¥¡¤ÎÂ礭¤µ¤òÅÁ¤¨¤ëÊýË¡¤¬¤Ê¤¤¡£
-¥×¥í¥°¥é¥à¤¬¥·¥ó¥Ü¥ë¥Æ¡¼¥Ö¥ë¤ÎÂ礭¤µ¤òÌ䤤¹ç¤ï¤»¤¿¸å¤Ë¡¢¥«¡¼¥Í¥ë¤Ë
-¥·¥ó¥Ü¥ë¤¬Äɲ䵤ì¤ë¤È¡¢¥á¥â¥ê¤ÎÆâÍƤ¬Ç˲õ¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ë¡£
+用に確保したバッファの大きさを伝える方法がない。
+プログラムがシンボルテーブルの大きさを問い合わせた後に、カーネルに
+シンボルが追加されると、メモリの内容が破壊されることになる。
 .PP
 .\"O The length of exported symbol names is limited to 59 characters.
-¸ø³«¤µ¤ì¤ë¥·¥ó¥Ü¥ë̾¤ÎŤµ¤¬ 59 Ê¸»ú¤ËÀ©¸Â¤µ¤ì¤Æ¤¤¤ë¡£
+公開されるシンボル名の長さが 59 文字に制限されている。
 .PP
 .\"O Because of these limitations, this system call is deprecated in
 .\"O favor of
 .\"O .BR query_module (2)
 .\"O (which is itself nowadays deprecated
 .\"O in favor of other interfaces described on its manual page).
-¤³¤ì¤é¤ÎÀ©¸Â¤¬¤¢¤ë¤Î¤Ç¡¢¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò»È¤¦¤è¤ê¤Ï
+これらの制限があるので、このシステムコールを使うよりは
 .BR query_module (2)
-¤ò»È¤¦¤Î¤¬Ë¾¤Þ¤·¤¤
-(¸½ºß¤Ç¤Ï
+を使うのが望ましい
+(現在では
 .BR query_module (2)
-¼«¿È¤â¤½¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤è¤¦¤Ë
-¾¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»È¤¦¤Î¤¬Ë¾¤Þ¤·¤¤¤È¤µ¤ì¤Æ¤¤¤ë)¡£
+自身もそのマニュアルページに書かれているように
+他のインタフェースを使うのが望ましいとされている)。
 .\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
+.SH 関連項目
 .BR create_module (2),
 .BR delete_module (2),
 .BR init_module (2),