1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2013-04-30 20:29+0900\n"
10 "PO-Revision-Date: 2013-04-30 21:12+0900\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
19 #: build/C/man2/create_module.2:10
22 msgstr "CREATE_MODULE"
25 #: build/C/man2/create_module.2:10 build/C/man2/get_kernel_syms.2:10
31 #: build/C/man2/create_module.2:10 build/C/man2/delete_module.2:25
32 #: build/C/man2/get_kernel_syms.2:10 build/C/man2/init_module.2:27
33 #: build/C/man2/query_module.2:10
39 #: build/C/man2/create_module.2:10 build/C/man2/delete_module.2:25
40 #: build/C/man2/get_kernel_syms.2:10 build/C/man2/init_module.2:27
41 #: build/C/man2/query_module.2:10
43 msgid "Linux Programmer's Manual"
44 msgstr "Linux Programmer's Manual"
47 #: build/C/man2/create_module.2:11 build/C/man2/delete_module.2:26
48 #: build/C/man2/get_kernel_syms.2:11 build/C/man2/init_module.2:28
49 #: build/C/man2/query_module.2:11
55 #: build/C/man2/create_module.2:13
56 msgid "create_module - create a loadable module entry"
57 msgstr "create_module - ローダブルモジュールのエントリを作成する"
60 #: build/C/man2/create_module.2:13 build/C/man2/delete_module.2:28
61 #: build/C/man2/get_kernel_syms.2:13 build/C/man2/init_module.2:30
62 #: build/C/man2/query_module.2:13
68 #: build/C/man2/create_module.2:16 build/C/man2/get_kernel_syms.2:16
69 #: build/C/man2/query_module.2:16
71 msgid "B<#include E<lt>linux/module.hE<gt>>\n"
72 msgstr "B<#include E<lt>linux/module.hE<gt>>\n"
75 #: build/C/man2/create_module.2:18
77 msgid "B<caddr_t create_module(const char *>I<name>B<, size_t >I<size>B<);>\n"
78 msgstr "B<caddr_t create_module(const char *>I<name>B<, size_t >I<size>B<);>\n"
81 #: build/C/man2/create_module.2:19 build/C/man2/delete_module.2:35
82 #: build/C/man2/get_kernel_syms.2:19 build/C/man2/init_module.2:41
83 #: build/C/man2/query_module.2:23
89 #: build/C/man2/create_module.2:22 build/C/man2/get_kernel_syms.2:22
90 #: build/C/man2/query_module.2:26
93 #| "This system call is only present on Linux up until kernel 2.4; it was "
94 #| "removed in Linux 2.6."
95 msgid "B<Note>: This system call is present only in kernels before Linux 2.6."
97 "このシステムコールが存在するのはカーネル 2.4 までの Linux だけである。 Linux "
101 #: build/C/man2/create_module.2:27
103 "B<create_module>() attempts to create a loadable module entry and reserve "
104 "the kernel memory that will be needed to hold the module. This system call "
105 "requires privilege."
107 "B<create_module>() は、ローダブルモジュールのエントリを作成し、そのモジュー"
108 "ルの保持に必要な カーネルメモリを予約しようとする。 このシステムコールを使う"
112 #: build/C/man2/create_module.2:27 build/C/man2/delete_module.2:124
113 #: build/C/man2/get_kernel_syms.2:48 build/C/man2/init_module.2:150
114 #: build/C/man2/query_module.2:129
120 #: build/C/man2/create_module.2:32
122 "On success, returns the kernel address at which the module will reside. On "
123 "error -1 is returned and I<errno> is set appropriately."
125 "成功すると、モジュールが配置されるカーネル空間のアドレスを返す。 エラーの場"
126 "合 -1 を返し、 I<errno> を適切に設定する。"
129 #: build/C/man2/create_module.2:32 build/C/man2/delete_module.2:129
130 #: build/C/man2/get_kernel_syms.2:54 build/C/man2/init_module.2:155
131 #: build/C/man2/query_module.2:134
137 #: build/C/man2/create_module.2:33 build/C/man2/init_module.2:194
143 #: build/C/man2/create_module.2:36
144 msgid "A module by that name already exists."
145 msgstr "その名前のモジュールがすでに存在する。"
148 #: build/C/man2/create_module.2:36 build/C/man2/delete_module.2:143
149 #: build/C/man2/init_module.2:162 build/C/man2/query_module.2:135
155 #: build/C/man2/create_module.2:40
156 msgid "I<name> is outside the program's accessible address space."
157 msgstr "I<name> がプログラムがアクセスできるアドレス空間の外部にある。"
160 #: build/C/man2/create_module.2:40 build/C/man2/init_module.2:197
161 #: build/C/man2/init_module.2:232 build/C/man2/query_module.2:143
167 #: build/C/man2/create_module.2:43
168 msgid "The requested size is too small even for the module header information."
169 msgstr "要求したサイズが小さすぎて、モジュールのヘッダ情報すら格納できない。"
172 #: build/C/man2/create_module.2:43 build/C/man2/init_module.2:177
178 #: build/C/man2/create_module.2:47
180 "The kernel could not allocate a contiguous block of memory large enough for "
183 "モジュールを格納するのに必要な大きさの連続したメモリブロックを カーネルが確保"
187 #: build/C/man2/create_module.2:47 build/C/man2/get_kernel_syms.2:56
188 #: build/C/man2/query_module.2:163
194 #: build/C/man2/create_module.2:52
196 #| msgid "B<create_module>() is not supported in this version of the kernel."
198 "B<create_module>() is not supported in this version of the kernel (e.g., "
199 "the kernel is version 2.6 or later)."
201 "B<create_module>() がこのバージョンのカーネルではサポートされていない。"
204 #: build/C/man2/create_module.2:52 build/C/man2/delete_module.2:150
205 #: build/C/man2/init_module.2:180
211 #: build/C/man2/create_module.2:58
213 "The caller was not privileged (did not have the B<CAP_SYS_MODULE> "
216 "呼び出し元が特権 (B<CAP_SYS_MODULE> ケーパビリティ) を持っていなかった。"
219 #: build/C/man2/create_module.2:58 build/C/man2/get_kernel_syms.2:60
220 #: build/C/man2/init_module.2:252 build/C/man2/query_module.2:168
225 #. Removed in Linux 2.5.48
227 #: build/C/man2/create_module.2:62 build/C/man2/get_kernel_syms.2:64
228 #: build/C/man2/query_module.2:172
230 "This system call is present on Linux only up until kernel 2.4; it was "
231 "removed in Linux 2.6."
233 "このシステムコールが存在するのはカーネル 2.4 までの Linux だけである。 Linux "
237 #: build/C/man2/create_module.2:62 build/C/man2/delete_module.2:172
238 #: build/C/man2/get_kernel_syms.2:64 build/C/man2/init_module.2:255
239 #: build/C/man2/query_module.2:172
241 msgid "CONFORMING TO"
245 #: build/C/man2/create_module.2:65
246 msgid "B<create_module>() is Linux-specific."
247 msgstr "B<create_module>() は Linux 固有である。"
250 #: build/C/man2/create_module.2:65 build/C/man2/delete_module.2:202
251 #: build/C/man2/get_kernel_syms.2:80 build/C/man2/init_module.2:337
252 #: build/C/man2/query_module.2:187
258 #: build/C/man2/create_module.2:69
259 msgid "B<delete_module>(2), B<init_module>(2), B<query_module>(2)"
260 msgstr "B<delete_module>(2), B<init_module>(2), B<query_module>(2)"
263 #: build/C/man2/create_module.2:69 build/C/man2/delete_module.2:209
264 #: build/C/man2/get_kernel_syms.2:85 build/C/man2/init_module.2:343
265 #: build/C/man2/query_module.2:194
271 #: build/C/man2/create_module.2:76 build/C/man2/delete_module.2:216
272 #: build/C/man2/get_kernel_syms.2:92 build/C/man2/init_module.2:350
273 #: build/C/man2/query_module.2:201
275 "This page is part of release 3.51 of the Linux I<man-pages> project. A "
276 "description of the project, and information about reporting bugs, can be "
277 "found at http://www.kernel.org/doc/man-pages/."
279 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.51 の一部\n"
280 "である。プロジェクトの説明とバグ報告に関する情報は\n"
281 "http://www.kernel.org/doc/man-pages/ に書かれている。"
284 #: build/C/man2/delete_module.2:25
286 msgid "DELETE_MODULE"
287 msgstr "DELETE_MODULE"
290 #: build/C/man2/delete_module.2:25
296 #: build/C/man2/delete_module.2:28
297 msgid "delete_module - unload a kernel module"
298 msgstr "delete_module - カーネルモジュールをアンロードする"
301 #: build/C/man2/delete_module.2:31
303 msgid "B<int delete_module(const char *>I<name>B<, int >I<flags>B<);>\n"
304 msgstr "B<int delete_module(const char *>I<name>B<, int >I<flags>B<);>\n"
307 #: build/C/man2/delete_module.2:35 build/C/man2/query_module.2:23
308 msgid "I<Note>: There is no glibc wrapper for this system call; see NOTES."
310 "I<注>: このシステムコールには glibc のラッパー関数は存在しない。「注意」の節"
314 #: build/C/man2/delete_module.2:49
316 "The B<delete_module>() system call attempts to remove the unused loadable "
317 "module entry identified by I<name>. If the module has an I<exit> function, "
318 "then that function is executed before unloading the module. The I<flags> "
319 "argument is used to modify the behavior of the system call, as described "
320 "below. This system call requires privilege."
324 #: build/C/man2/delete_module.2:51
325 msgid "Module removal is attempted according to the following rules:"
329 #: build/C/man2/delete_module.2:51
335 #: build/C/man2/delete_module.2:55
337 "If there are other loaded modules that depend on (i.e., refer to symbols "
338 "defined in) this module, then the call fails."
342 #: build/C/man2/delete_module.2:55
348 #: build/C/man2/delete_module.2:59
350 "Otherwise, if the reference count for the module (i.e., the number of "
351 "processes currently using the module) is zero, then the module is "
352 "immediately unloaded."
356 #: build/C/man2/delete_module.2:59
361 #. O_TRUNC == KMOD_REMOVE_FORCE in kmod library
362 #. O_NONBLOCK == KMOD_REMOVE_NOWAIT in kmod library
364 #: build/C/man2/delete_module.2:70
366 "If a module has a nonzero reference count, then the behavior depends on the "
367 "bits set in I<flags>. In normal usage (see NOTES), the B<O_NONBLOCK> flag "
368 "is always specified, and the B<O_TRUNC> flag may additionally be specified."
372 #: build/C/man2/delete_module.2:74
373 msgid "The various combinations for I<flags> have the following effect:"
377 #: build/C/man2/delete_module.2:75
379 msgid "B<flags == O_NONBLOCK>"
380 msgstr "B<flags == O_NONBLOCK>"
383 #: build/C/man2/delete_module.2:78
384 msgid "The call returns immediately, with an error."
388 #: build/C/man2/delete_module.2:78
390 msgid "B<flags == (O_NONBLOCK | O_TRUNC)>"
391 msgstr "B<flags == (O_NONBLOCK | O_TRUNC)>"
394 #: build/C/man2/delete_module.2:82
396 "The module is unloaded immediately, regardless of whether it has a nonzero "
401 #: build/C/man2/delete_module.2:82
403 msgid "B<(flags & O_NONBLOCK) == 0>"
404 msgstr "B<(flags & O_NONBLOCK) == 0>"
407 #: build/C/man2/delete_module.2:89
408 msgid "If I<flags> does not specify B<O_NONBLOCK>, the following steps occur:"
412 #: build/C/man2/delete_module.2:90 build/C/man2/delete_module.2:92
413 #: build/C/man2/delete_module.2:97
419 #: build/C/man2/delete_module.2:92
420 msgid "The module is marked so that no new references are permitted."
424 #: build/C/man2/delete_module.2:97
426 "If the module's reference count is nonzero, the caller is placed in an "
427 "uninterruptible sleep state (B<TASK_UNINTERRUPTIBLE>) until the reference "
428 "count is zero, at which point the call unblocks."
432 #: build/C/man2/delete_module.2:99
433 msgid "The module is unloaded in the usual way."
437 #: build/C/man2/delete_module.2:113
439 "The B<O_TRUNC> flag has one further effect on the rules described above. By "
440 "default, if a module has an I<init> function but no I<exit> function, then "
441 "an attempt to remove the module will fail. However, if B<O_TRUNC> was "
442 "specified, this requirement is bypassed."
446 #: build/C/man2/delete_module.2:124
448 "Using the B<O_TRUNC> flag is dangerous! If the kernel was not built with "
449 "B<CONFIG_MODULE_FORCE_UNLOAD>, this flag is silently ignored. (Normally, "
450 "B<CONFIG_MODULE_FORCE_UNLOAD> is enabled.) Using this flag taints the "
451 "kernel (TAINT_FORCED_RMMOD)."
455 #: build/C/man2/delete_module.2:129 build/C/man2/query_module.2:134
457 "On success, zero is returned. On error, -1 is returned and I<errno> is set "
460 "成功の場合 0 が返される。エラーの場合 -1 が返され、 I<errno> に適切な値が設定"
464 #: build/C/man2/delete_module.2:130 build/C/man2/init_module.2:159
470 #: build/C/man2/delete_module.2:143
472 "The module is not \"live\" (i.e., it is still being initialized or is "
473 "already marked for removal); or, the module has an I<init> function but has "
474 "no I<exit> function, and B<O_TRUNC> was not specified in I<flags>."
478 #: build/C/man2/delete_module.2:147
480 #| msgid "I<name> is outside the program's accessible address space."
482 "I<name> refers to a location outside the process's accessible address space."
483 msgstr "I<name> がプログラムがアクセスできるアドレス空間の外部にある。"
486 #: build/C/man2/delete_module.2:147 build/C/man2/query_module.2:153
492 #: build/C/man2/delete_module.2:150
493 msgid "No module by that name exists."
494 msgstr "その名前のモジュールが存在しない。"
497 #: build/C/man2/delete_module.2:161
500 #| "The caller was not privileged (did not have the B<CAP_SYS_MODULE> "
503 "The caller was not privileged (did not have the B<CAP_SYS_MODULE> "
504 "capability), or module unloading is disabled (see I</proc/sys/kernel/"
505 "modules_disabled> in B<proc>(5))."
507 "呼び出し元が特権 (B<CAP_SYS_MODULE> ケーパビリティ) を持っていなかった。"
510 #: build/C/man2/delete_module.2:161
512 msgid "B<EWOULDBLOCK>"
513 msgstr "B<EWOULDBLOCK>"
516 #: build/C/man2/delete_module.2:172
518 "Other modules depend on this module; or, B<O_NONBLOCK> was specified in "
519 "I<flags>, but the reference count of this module is nonzero and B<O_TRUNC> "
520 "was not specified in I<flags>."
524 #: build/C/man2/delete_module.2:175
525 msgid "B<delete_module>() is Linux-specific."
526 msgstr "B<delete_module>() は Linux 固有である。"
529 #: build/C/man2/delete_module.2:175 build/C/man2/init_module.2:260
530 #: build/C/man2/query_module.2:175
536 #: build/C/man2/delete_module.2:178
538 "Glibc does not provide a wrapper for this system call; call it using "
543 #: build/C/man2/delete_module.2:188
545 "The uninterruptible sleep that may occur if B<O_NONBLOCK> is omitted from "
546 "I<flags> is considered undesirable, because the sleeping process is left in "
547 "an unkillable state. As at Linux 3.7, specifying B<O_NONBLOCK> is optional, "
548 "but in future kernels it is likely to become mandatory."
552 #: build/C/man2/delete_module.2:188 build/C/man2/init_module.2:272
554 msgid "Linux 2.4 and earlier"
558 #: build/C/man2/delete_module.2:190
559 msgid "In Linux 2.4 and earlier, the system call took only one argument:"
563 #: build/C/man2/delete_module.2:192
564 msgid "B< int delete_module(const char *>I<name>B<);>"
565 msgstr "B< int delete_module(const char *>I<name>B<);>"
568 #: build/C/man2/delete_module.2:196
569 msgid "If I<name> is NULL, all unused modules marked auto-clean are removed."
573 #: build/C/man2/delete_module.2:202
575 "Some further details of differences in the behavior of B<delete_module>() "
576 "in Linux 2.4 and earlier are I<not> currently explained in this manual page."
580 #: build/C/man2/delete_module.2:209
582 "B<create_module>(2), B<init_module>(2), B<query_module>(2), B<lsmod>(8), "
583 "B<modprobe>(8), B<rmmod>(8)"
585 "B<create_module>(2), B<init_module>(2), B<query_module>(2), B<lsmod>(8), "
586 "B<modprobe>(8), B<rmmod>(8)"
589 #: build/C/man2/get_kernel_syms.2:10
591 msgid "GET_KERNEL_SYMS"
592 msgstr "GET_KERNEL_SYMS"
595 #: build/C/man2/get_kernel_syms.2:13
596 msgid "get_kernel_syms - retrieve exported kernel and module symbols"
597 msgstr "get_kernel_syms - 公開されているカーネルやモジュールのシンボルの取得"
600 #: build/C/man2/get_kernel_syms.2:18
602 msgid "B<int get_kernel_syms(struct kernel_sym *>I<table>B<);>\n"
603 msgstr "B<int get_kernel_syms(struct kernel_sym *>I<table>B<);>\n"
606 #: build/C/man2/get_kernel_syms.2:29
608 "If I<table> is NULL, B<get_kernel_syms>() returns the number of symbols "
609 "available for query. Otherwise it fills in a table of structures:"
611 "B<get_kernel_syms>() は、 I<table> が NULL の場合、 問い合わせできるシンボル"
612 "の数を返す。 NULL 以外の場合、以下の構造体の列 (table) に値を入れて返す。"
615 #: build/C/man2/get_kernel_syms.2:36
618 "struct kernel_sym {\n"
619 " unsigned long value;\n"
623 "struct kernel_sym {\n"
624 " unsigned long value;\n"
629 #: build/C/man2/get_kernel_syms.2:44
631 "The symbols are interspersed with magic symbols of the form B<#>I<module-"
632 "name> with the kernel having an empty name. The value associated with a "
633 "symbol of this form is the address at which the module is loaded."
635 "シンボルの中には、 B<#>I<module-name> という形式の、カーネルが空の名前を持っ"
636 "ているマジックシンボル (magic symbol) が散在している。この形式のシンボルに対"
637 "応する値は モジュールがロードされたアドレスとなる。"
640 #: build/C/man2/get_kernel_syms.2:48
642 "The symbols exported from each module follow their magic module tag and the "
643 "modules are returned in the reverse of the order in which they were loaded."
645 "個々のモジュールから公開 (export) されたシンボルは、マジックモジュールタグ の"
646 "後ろに置かれる。また、モジュールはロードされた順番とは逆順で返される。"
649 #: build/C/man2/get_kernel_syms.2:54
651 "On success, returns the number of symbols copied to I<table>. On error, -1 "
652 "is returned and I<errno> is set appropriately."
654 "成功すると、 I<table> にコピーされたシンボル数を返す。 エラーの場合、-1 を返"
655 "し、 I<errno> を適切に設定する。"
658 #: build/C/man2/get_kernel_syms.2:56
659 msgid "There is only one possible error return:"
660 msgstr "返る可能性があるエラーは一つだけである。"
663 #: build/C/man2/get_kernel_syms.2:60
664 msgid "B<get_kernel_syms>() is not supported in this version of the kernel."
666 "B<get_kernel_syms>() がこのバージョンのカーネルではサポートされていない。"
669 #: build/C/man2/get_kernel_syms.2:67
670 msgid "B<get_kernel_syms>() is Linux-specific."
671 msgstr "B<get_kernel_syms>() は Linux 固有である。"
674 #: build/C/man2/get_kernel_syms.2:67
680 #: build/C/man2/get_kernel_syms.2:72
682 "There is no way to indicate the size of the buffer allocated for I<table>. "
683 "If symbols have been added to the kernel since the program queried for the "
684 "symbol table size, memory will be corrupted."
686 "I<table> 用に確保したバッファの大きさを伝える方法がない。 プログラムがシンボ"
687 "ルテーブルの大きさを問い合わせた後に、カーネルに シンボルが追加されると、メモ"
691 #: build/C/man2/get_kernel_syms.2:74
692 msgid "The length of exported symbol names is limited to 59 characters."
693 msgstr "公開されるシンボル名の長さが 59 文字に制限されている。"
696 #: build/C/man2/get_kernel_syms.2:80
698 "Because of these limitations, this system call is deprecated in favor of "
699 "B<query_module>(2) (which is itself nowadays deprecated in favor of other "
700 "interfaces described on its manual page)."
702 "これらの制限があるので、このシステムコールを使うよりは B<query_module>(2) を"
703 "使うのが望ましい (現在では B<query_module>(2) 自身もそのマニュアルページに書"
704 "かれているように 他のインタフェースを使うのが望ましいとされている)。"
707 #: build/C/man2/get_kernel_syms.2:85
709 "B<create_module>(2), B<delete_module>(2), B<init_module>(2), B<query_module>"
712 "B<create_module>(2), B<delete_module>(2), B<init_module>(2), B<query_module>"
716 #: build/C/man2/init_module.2:27
722 #: build/C/man2/init_module.2:27
728 #: build/C/man2/init_module.2:30
730 #| msgid "init_module - initialize a loadable module entry"
731 msgid "init_module, finit_module - load a kernel module"
732 msgstr "init_module - ローダブルモジュールのエントリを初期化する"
735 #: build/C/man2/init_module.2:34
738 "B<int init_module(void *>I<module_image>B<, unsigned long >I<len>B<,>\n"
739 "B< const char *>I<param_values>B<);>\n"
743 #: build/C/man2/init_module.2:37
746 "B<int finit_module(int >I<fd>B<, const char *>I<param_values>B<,>\n"
747 "B< int >I<flags>B<);>\n"
749 "B<int finit_module(int >I<fd>B<, const char *>I<param_values>B<,>\n"
750 "B< int >I<flags>B<);>\n"
753 #: build/C/man2/init_module.2:41
754 msgid "I<Note>: There are no glibc wrappers for these system calls; see NOTES."
758 #: build/C/man2/init_module.2:50
760 "B<init_module>() loads an ELF image into kernel space, performs any "
761 "necessary symbol relocations, initializes module parameters to values "
762 "provided by the caller, and then runs the module's I<init> function. This "
763 "system call requires privilege."
767 #: build/C/man2/init_module.2:58
769 "The I<module_image> argument points to a buffer containing the binary image "
770 "to be loaded; I<len> specifies the size of that buffer. The module image "
771 "should be a valid ELF image, built for the running kernel."
775 #: build/C/man2/init_module.2:69
777 "The I<param_values> argument is a string containing space-delimited "
778 "specifications of the values for module parameters (defined inside the "
779 "module using B<module_param>() and B<module_param_array>()). The kernel "
780 "parses this string and initializes the specified parameters. Each of the "
781 "parameter specifications has the form:"
785 #: build/C/man2/init_module.2:74
786 msgid "I<name>[B<=>I<value>[B<,>I<value>...]]"
790 #: build/C/man2/init_module.2:89
792 "The parameter I<name> is one of those defined within the module using "
793 "I<module_param>() (see the Linux kernel source file I<include/linux/"
794 "moduleparam.h>). The parameter I<value> is optional in the case of I<bool> "
795 "and I<invbool> parameters. Values for array parameters are specified as a "
796 "comma-separated list."
800 #: build/C/man2/init_module.2:89
802 msgid "finit_module()"
805 #. commit 34e1169d996ab148490c01b65b4ee371cf8ffba2
806 #. https://lwn.net/Articles/519010/
808 #: build/C/man2/init_module.2:107
810 "The B<finit_module>() system call is like B<init_module>(), but reads the "
811 "module to be loaded from the file descriptor I<fd>. It is useful when the "
812 "authenticity of a kernel module can be determined from its location in the "
813 "file system; in cases where that is possible, the overhead of using "
814 "cryptographically signed modules to determine the authenticity of a module "
815 "can be avoided. The I<param_values> argument is as for B<init_module>()."
818 #. commit 2f3238aebedb243804f58d62d57244edec4149b2
820 #: build/C/man2/init_module.2:115
822 "The I<flags> argument modifies the operation of B<finit_module>(). It is a "
823 "bit mask value created by ORing together zero or more of the following flags:"
827 #: build/C/man2/init_module.2:115
829 msgid "B<MODULE_INIT_IGNORE_MODVERSIONS>"
833 #: build/C/man2/init_module.2:118
834 msgid "Ignore symbol version hashes."
838 #: build/C/man2/init_module.2:118
840 msgid "B<MODULE_INIT_IGNORE_VERMAGIC>"
844 #: build/C/man2/init_module.2:121
845 msgid "Ignore kernel version magic."
848 #. http://www.tldp.org/HOWTO/Module-HOWTO/basekerncompat.html
849 #. is dated, but informative
851 #: build/C/man2/init_module.2:139
853 "There are some safety checks built into a module to ensure that it matches "
854 "the kernel against which it is loaded. These checks are recorded when the "
855 "module is built and verified when the module is loaded. First, the module "
856 "records a \"vermagic\" string containing the kernel version number and "
857 "prominent features (such as the CPU type). Second, if the module was built "
858 "with the B<CONFIG_MODVERSIONS> configuration option enabled, a version hash "
859 "is recorded for each symbol the module uses. This hash is based on the "
860 "types of the arguments and return value for the function named by the "
861 "symbol. In this case, the kernel version number within the \"vermagic\" "
862 "string is ignored, as the symbol version hashes are assumed to be "
863 "sufficiently reliable."
867 #: build/C/man2/init_module.2:150
869 "Using the B<MODULE_INIT_IGNORE_VERMAGIC> flag indicates that the \"vermagic"
870 "\" string is to be ignored, and the B<MODULE_INIT_IGNORE_MODVERSIONS> flag "
871 "indicates that the symbol version hashes are to be ignored. If the kernel "
872 "is built to permit forced loading (i.e., configured with "
873 "B<CONFIG_MODULE_FORCE_LOAD>), then loading will continue, otherwise it will "
874 "fail with B<ENOEXEC> as expected for malformed modules."
878 #: build/C/man2/init_module.2:155
880 "On success, these system calls return 0. On error, -1 is returned and "
881 "I<errno> is set appropriately."
882 msgstr "成功の場合、これらのシステムコールは 0 を返す。エラーの場合 -1 が返され、 I<errno> に適切な値が設定される。"
885 #: build/C/man2/init_module.2:156
887 msgid "B<EBADMSG> (since Linux 3.7)"
891 #: build/C/man2/init_module.2:159
892 msgid "Module signature is misformatted."
896 #: build/C/man2/init_module.2:162
897 msgid "Timeout while trying to resolve a symbol reference by this module."
901 #: build/C/man2/init_module.2:166
904 #| "I<name> or I<image> is outside the program's accessible address space."
906 "An address argument referred to a location that is outside the process's "
907 "accessible address space."
909 "I<name> や I<image> がプログラムがアクセスできるアドレス空間の外部にある。"
912 #: build/C/man2/init_module.2:166
914 msgid "B<ENOKEY> (since Linux 3.7)"
917 #. commit 48ba2462ace6072741fd8d0058207d630ce93bf1
918 #. commit 1d0059f3a468825b5fc5405c636a2f6e02707ffa
919 #. commit 106a4ee258d14818467829bf0e12aeae14c16cd7
921 #: build/C/man2/init_module.2:177
923 "Module signature is invalid or the kernel does not have a key for this "
924 "module. This error is returned only if the kernel was configured with "
925 "B<CONFIG_MODULE_SIG_FORCE>; if the kernel was not configured with this "
926 "option, then an invalid or unsigned module simply taints the kernel."
930 #: build/C/man2/init_module.2:180
931 msgid "Out of memory."
935 #: build/C/man2/init_module.2:191
938 #| "The caller was not privileged (did not have the B<CAP_SYS_MODULE> "
941 "The caller was not privileged (did not have the B<CAP_SYS_MODULE> "
942 "capability), or module loading is disabled (see I</proc/sys/kernel/"
943 "modules_disabled> in B<proc>(5))."
945 "呼び出し元が特権 (B<CAP_SYS_MODULE> ケーパビリティ) を持っていなかった。"
948 #: build/C/man2/init_module.2:194
949 msgid "The following errors may additionally occur for B<init_module>():"
953 #: build/C/man2/init_module.2:197
955 #| msgid "A module by that name already exists."
956 msgid "A module with this name is already loaded."
957 msgstr "その名前のモジュールがすでに存在する。"
960 #. .BR EINVAL " (Linux 2.4 and earlier)"
963 #. slot is filled in incorrectly,
965 #. does not correspond to the original module name, some
967 #. entry does not correspond to a loaded module,
968 #. or some other similar inconsistency.
970 #: build/C/man2/init_module.2:213
972 "I<param_values> is invalid, or some part of the ELF image in I<module_image> "
973 "contains inconsistencies."
977 #: build/C/man2/init_module.2:213 build/C/man2/init_module.2:236
983 #: build/C/man2/init_module.2:219
985 "The binary image supplied in I<module_image> is not an ELF image, or is an "
986 "ELF image that is invalid or for a different architecture."
990 #: build/C/man2/init_module.2:222
991 msgid "The following errors may additionally occur for B<finit_module>():"
995 #: build/C/man2/init_module.2:222
1001 #: build/C/man2/init_module.2:227
1002 msgid "The file referred to by I<fd> is not opened for reading."
1006 #: build/C/man2/init_module.2:227
1012 #: build/C/man2/init_module.2:232
1013 msgid "The file referred to by I<fd> is too large."
1017 #: build/C/man2/init_module.2:236
1018 msgid "I<flags> is invalid."
1022 #: build/C/man2/init_module.2:240
1023 msgid "I<fd> does not refer to an open file."
1027 #: build/C/man2/init_module.2:252
1029 "In addition to the above errors, if the module's I<init> function is "
1030 "executed and returns an error, then B<init_module>() or B<finit_module>() "
1031 "fails and I<errno> is set to the value returned by the I<init> function."
1035 #: build/C/man2/init_module.2:255
1037 #| msgid "B<init_module>() is Linux-specific."
1038 msgid "B<finit_module ()> is available since Linux 3.8."
1039 msgstr "B<init_module>() は Linux 固有である。"
1042 #: build/C/man2/init_module.2:260
1044 #| msgid "B<init_module>() is Linux-specific."
1045 msgid "B<init_module>() and B<finit_module>() are Linux-specific."
1046 msgstr "B<init_module>() は Linux 固有である。"
1049 #: build/C/man2/init_module.2:263
1051 "Glibc does not provide a wrapper for these system calls; call them using "
1056 #: build/C/man2/init_module.2:268
1058 "Information about currently loaded modules can be found in I</proc/modules> "
1059 "and in the file trees under the per-module subdirectories under I</sys/"
1064 #: build/C/man2/init_module.2:272
1066 "See the Linux kernel source file I<include/linux/module.h> for some useful "
1067 "background information."
1071 #: build/C/man2/init_module.2:277
1073 "In Linux 2.4 and earlier, the B<init_module>() system call was rather "
1078 #: build/C/man2/init_module.2:279
1079 msgid "B<#include E<lt>linux/module.hE<gt>>"
1080 msgstr "B<#include E<lt>linux/module.hE<gt>>"
1083 #: build/C/man2/init_module.2:281
1085 "B< int init_module(const char *>I<name>B<, struct module *>I<image>B<);>"
1086 msgstr "B< int init_module(const char *>I<name>B<, struct module *>I<image>B<);>"
1089 #: build/C/man2/init_module.2:289
1091 "(User-space applications can detect which version of B<init_module>() is "
1092 "available by calling B<query_module>(); the latter call fails with the error "
1093 "B<ENOSYS> on Linux 2.6 and later.)"
1097 #: build/C/man2/init_module.2:300
1099 "The older version of the system call loads the relocated module image "
1100 "pointed to by I<image> into kernel space and runs the module's I<init> "
1101 "function. The caller is responsible for providing the relocated image "
1102 "(since Linux 2.6, the B<init_module>() system call does the relocation)."
1106 #: build/C/man2/init_module.2:304
1109 #| "The module image begins with a module structure and is followed by code "
1110 #| "and data as appropriate. The module structure is defined as follows:"
1112 "The module image begins with a module structure and is followed by code and "
1113 "data as appropriate. Since Linux 2.2, the module structure is defined as "
1116 "モジュールイメージは先頭部分に module 構造体があり、その後ろに 適切なコードと"
1117 "データが続く。 この module 構造体は以下のように定義されている:"
1120 #: build/C/man2/init_module.2:327
1124 " unsigned long size_of_struct;\n"
1125 " struct module *next;\n"
1126 " const char *name;\n"
1127 " unsigned long size;\n"
1129 " unsigned long flags;\n"
1130 " unsigned int nsyms;\n"
1131 " unsigned int ndeps;\n"
1132 " struct module_symbol *syms;\n"
1133 " struct module_ref *deps;\n"
1134 " struct module_ref *refs;\n"
1135 " int (*init)(void);\n"
1136 " void (*cleanup)(void);\n"
1137 " const struct exception_table_entry *ex_table_start;\n"
1138 " const struct exception_table_entry *ex_table_end;\n"
1139 "#ifdef __alpha__\n"
1140 " unsigned long gp;\n"
1145 " unsigned long size_of_struct;\n"
1146 " struct module *next;\n"
1147 " const char *name;\n"
1148 " unsigned long size;\n"
1150 " unsigned long flags;\n"
1151 " unsigned int nsyms;\n"
1152 " unsigned int ndeps;\n"
1153 " struct module_symbol *syms;\n"
1154 " struct module_ref *deps;\n"
1155 " struct module_ref *refs;\n"
1156 " int (*init)(void);\n"
1157 " void (*cleanup)(void);\n"
1158 " const struct exception_table_entry *ex_table_start;\n"
1159 " const struct exception_table_entry *ex_table_end;\n"
1160 "#ifdef __alpha__\n"
1161 " unsigned long gp;\n"
1166 #: build/C/man2/init_module.2:337
1168 "All of the pointer fields, with the exception of I<next> and I<refs>, are "
1169 "expected to point within the module body and be initialized as appropriate "
1170 "for kernel space, that is, relocated with the rest of the module."
1172 "I<next> と I<refs> 以外の全てのポインタ要素はモジュール本体内部を指し、 カー"
1173 "ネル空間での適切な値で初期化される (つまり、モジュールの残りの 部分で再配置さ"
1177 #: build/C/man2/init_module.2:343
1179 "B<create_module>(2), B<delete_module>(2), B<query_module>(2), B<lsmod>(8), "
1181 msgstr "B<create_module>(2), B<delete_module>(2), B<query_module>(2), B<lsmod>(8), B<modprobe>(8)"
1184 #: build/C/man2/query_module.2:10
1186 msgid "QUERY_MODULE"
1187 msgstr "QUERY_MODULE"
1190 #: build/C/man2/query_module.2:10
1196 #: build/C/man2/query_module.2:13
1197 msgid "query_module - query the kernel for various bits pertaining to modules"
1198 msgstr "query_module - モジュールに関連する各種の情報をカーネルに問い合わせる"
1201 #: build/C/man2/query_module.2:19
1204 "B<int query_module(const char *>I<name>B<, int >I<which>B<, void *>I<buf>B<,>\n"
1205 "B< size_t >I<bufsize>B<, size_t *>I<ret>B<);>\n"
1207 "B<int query_module(const char *>I<name>B<, int >I<which>B<, void *>I<buf>B<,>\n"
1208 "B< size_t >I<bufsize>B<, size_t *>I<ret>B<);>\n"
1211 #: build/C/man2/query_module.2:43
1213 "B<query_module>() requests information from the kernel about loadable "
1214 "modules. The returned information is placed in the buffer pointed to by "
1215 "I<buf>. The caller must specify the size of I<buf> in I<bufsize>. The "
1216 "precise nature and format of the returned information depend on the "
1217 "operation specified by I<which>. Some operations require I<name> to "
1218 "identify a currently loaded module, some allow I<name> to be NULL, "
1219 "indicating the kernel proper."
1221 "B<query_module>() は、ローダブルモジュールに関する情報をカーネルに問い合わせ"
1222 "る。 情報は I<buf> が指し示すバッファに格納されて返される。 呼び出し元は "
1223 "I<buf> のサイズを I<bufsize> に指定しなければならない。 得られる情報の正確な"
1224 "意味とフォーマットは、 I<which> でどの操作を指定するかによって異なる。 現在"
1225 "ロードされているモジュールを特定するために I<name> を必要とする操作があれ"
1226 "ば、 カーネル固有であることを示す NULL を指定できる操作もある。"
1229 #: build/C/man2/query_module.2:46
1230 msgid "The following values can be specified for I<which>:"
1231 msgstr "I<which> には以下の値を指定できる:"
1234 #: build/C/man2/query_module.2:46
1240 #: build/C/man2/query_module.2:51
1242 "Returns success, if the kernel supports B<query_module>(). Used to probe "
1243 "for availability of the system call."
1245 "カーネルが B<query_module>() をサポートしている場合、成功を返す。 このシステ"
1246 "ムコールが利用可能かを調べるために使われる。"
1249 #: build/C/man2/query_module.2:51
1251 msgid "B<QM_MODULES>"
1252 msgstr "B<QM_MODULES>"
1254 #. ret is set on ENOSPC
1256 #: build/C/man2/query_module.2:59
1258 "Returns the names of all loaded modules. The returned buffer consists of a "
1259 "sequence of null-terminated strings; I<ret> is set to the number of modules."
1261 "ロードされている全てのモジュールの名前を返す。 バッファには、NULL 終端された"
1262 "文字列が順に入る。 返されるバッファ I<ret> にはモジュールの数が設定される。"
1265 #: build/C/man2/query_module.2:59
1270 #. ret is set on ENOSPC
1272 #: build/C/man2/query_module.2:66
1274 "Returns the names of all modules used by the indicated module. The returned "
1275 "buffer consists of a sequence of null-terminated strings; I<ret> is set to "
1276 "the number of modules."
1278 "指定されたモジュールが使用している全モジュールの名前を返す。 バッファには、"
1279 "NULL 終端された文字列が順に入る。 返されるバッファ I<ret> にはモジュールの数"
1283 #: build/C/man2/query_module.2:66
1288 #. ret is set on ENOSPC
1290 #: build/C/man2/query_module.2:75
1292 "Returns the names of all modules using the indicated module. This is the "
1293 "inverse of B<QM_DEPS>. The returned buffer consists of a sequence of null-"
1294 "terminated strings; I<ret> is set to the number of modules."
1296 "指定されたモジュールを使用している全モジュールの名前を返す。 これは "
1297 "B<QM_DEPS> と逆の機能である。 バッファには、NULL 終端された文字列が順に入"
1298 "る。 返されるバッファ I<ret> にはモジュールの数が設定される。"
1301 #: build/C/man2/query_module.2:75
1303 msgid "B<QM_SYMBOLS>"
1304 msgstr "B<QM_SYMBOLS>"
1306 #. ret is set on ENOSPC
1308 #: build/C/man2/query_module.2:81
1310 "Returns the symbols and values exported by the kernel or the indicated "
1311 "module. The returned buffer is an array of structures of the following form"
1313 "カーネルまたは指定されたモジュールがエクスポートしているシンボルと 値を返"
1314 "す。 バッファのデータは、 以下の構造体の配列に NULL 終端された文字列が続く形"
1318 #: build/C/man2/query_module.2:88
1321 "struct module_symbol {\n"
1322 " unsigned long value;\n"
1323 " unsigned long name;\n"
1326 "struct module_symbol {\n"
1327 " unsigned long value;\n"
1328 " unsigned long name;\n"
1332 #: build/C/man2/query_module.2:98
1334 "followed by null-terminated strings. The value of I<name> is the character "
1335 "offset of the string relative to the start of I<buf>; I<ret> is set to the "
1336 "number of symbols."
1338 "I<name> の値は、 I<buf> の先頭からの文字列までのオフセット文字数である。 "
1339 "I<ret> にはシンボルの数が設定される。"
1342 #: build/C/man2/query_module.2:98
1348 #: build/C/man2/query_module.2:102
1350 "Returns miscellaneous information about the indicated module. The output "
1353 "指定されたモジュールに関する様々な情報を返す。 出力バッファのフォーマットは以"
1357 #: build/C/man2/query_module.2:110
1360 "struct module_info {\n"
1361 " unsigned long address;\n"
1362 " unsigned long size;\n"
1363 " unsigned long flags;\n"
1366 "struct module_info {\n"
1367 " unsigned long address;\n"
1368 " unsigned long size;\n"
1369 " unsigned long flags;\n"
1373 #: build/C/man2/query_module.2:129
1375 "where I<address> is the kernel address at which the module resides, I<size> "
1376 "is the size of the module in bytes, and I<flags> is a mask of "
1377 "B<MOD_RUNNING>, B<MOD_AUTOCLEAN>, etc., that indicates the current status of "
1378 "the module (see the Linux kernel source file I<include/linux/module.h>). "
1379 "I<ret> is set to the size of the I<module_info> structure."
1380 msgstr "I<address> はそのモジュールが配置されているカーネル空間上のアドレス、 I<size> はそのモジュールのバイト単位のサイズ、 I<flags> は B<MOD_RUNNING>, B<MOD_AUTOCLEAN> 等のマスクであり、そのモジュールの現在の状態を示す (Linux カーネルのソースファイル I<include/linux/module.h> を参照)。 I<ret> には I<module_info> 構造体のサイズが設定される。"
1383 #: build/C/man2/query_module.2:143
1385 "At least one of I<name>, I<buf>, or I<ret> was outside the program's "
1386 "accessible address space."
1388 "I<name>, I<buf>, I<ret> の少なくとも一つが、プログラムがアクセスできる アドレ"
1391 #. Not permitted with QM_DEPS, QM_REFS, or QM_INFO.
1393 #: build/C/man2/query_module.2:153
1395 "Invalid I<which>; or I<name> is NULL (indicating \"the kernel\"), but this "
1396 "is not permitted with the specified value of I<which>."
1398 "I<which> が不正である。あるいは I<name> が NULL だが (NULL は \"カーネル\" を"
1399 "示す)、 I<which> で指定された値との組み合わせは許可されていない。"
1402 #: build/C/man2/query_module.2:158
1403 msgid "No module by that I<name> exists."
1404 msgstr "I<name> という名前のモジュールが存在しない。"
1407 #: build/C/man2/query_module.2:158
1413 #: build/C/man2/query_module.2:163
1415 "The buffer size provided was too small. I<ret> is set to the minimum size "
1418 "与えられたバッファの大きさが小さすぎる。 I<ret> には最小限必要なバッファのサ"
1422 #: build/C/man2/query_module.2:168
1424 #| msgid "B<query_module>() is not supported in this version of the kernel."
1426 "B<query_module>() is not supported in this version of the kernel (e.g., the "
1427 "kernel is version 2.6 or later)."
1429 "B<query_module>() はこのバージョンのカーネルではサポートされていない。"
1432 #: build/C/man2/query_module.2:175
1433 msgid "B<query_module>() is Linux-specific."
1434 msgstr "B<query_module>() は Linux 固有である。"
1437 #: build/C/man2/query_module.2:183
1440 #| "This system call is only present on Linux up until kernel 2.4; it was "
1441 #| "removed in Linux 2.6. Some of the information that was available via "
1442 #| "B<query_module>() can be obtained from I</proc/modules>, I</proc/"
1443 #| "kallsyms>, and I</sys/modules>."
1445 "Some of the information that was formerly available via B<query_module>() "
1446 "can be obtained from I</proc/modules>, I</proc/kallsyms>, and the files "
1447 "under the directory I</sys/module>."
1449 "このシステムコールが存在するのはカーネル 2.4 までの Linux だけである。 Linux "
1450 "2.6 では削除された。 B<query_module>() で得られた情報のいくつかは、 I</proc/"
1451 "modules>, I</proc/kallsyms>, I</sys/modules> から取得できる。"
1454 #: build/C/man2/query_module.2:187
1456 "Glibc does not provide a wrapper for this system call; in the unlikely event "
1457 "that you need to use it on an old kernel, use B<syscall>(2)."
1459 "glibc はこのシステムコールに対するラッパー関数を提供していない。おそらくない"
1460 "と思うが、古いカーネルでこのシステムコールを使いたい場合は B<syscall>(2) を使"
1464 #: build/C/man2/query_module.2:194
1466 "B<create_module>(2), B<delete_module>(2), B<get_kernel_syms>(2), "
1467 "B<init_module>(2), B<lsmod>(8), B<modinfo>(8)"
1469 "B<create_module>(2), B<delete_module>(2), B<get_kernel_syms>(2), "
1470 "B<init_module>(2), B<lsmod>(8), B<modinfo>(8)"
1472 #~ msgid "2007-06-03"
1473 #~ msgstr "2007-06-03"
1475 #~ msgid "2006-02-09"
1476 #~ msgstr "2006-02-09"
1479 #~ "B<delete_module>() attempts to remove an unused loadable module entry. "
1480 #~ "If I<name> is NULL, all unused modules marked auto-clean will be "
1481 #~ "removed. This system call requires privilege."
1483 #~ "B<delete_module>() は、未使用のローダブルモジュールのエントリを削除しよう"
1484 #~ "とする。 I<name> が NULL の場合、未使用のモジュールのうち「自動削除 (auto-"
1485 #~ "clean)」 マークがついたものを全て削除する。 このシステムコールを使うには特"
1488 #~ msgid "I<name> was an empty string."
1489 #~ msgstr "I<name> が空文字列である。"
1492 #~ "B<init_module>() loads the relocated module image into kernel space and "
1493 #~ "runs the module's I<init> function."
1495 #~ "B<init_module>() は再配置されたモジュールイメージをカーネル空間にロード"
1496 #~ "し、 そのモジュールの I<init> 関数を実行する。"
1498 #~ msgid "This system call requires privilege."
1499 #~ msgstr "このシステムコールを使うには特権が必要である。"
1501 #~ msgid "The module's initialization routine failed."
1502 #~ msgstr "モジュールの初期化ルーチンが失敗した。"
1505 #~ "Some I<image> slot is filled in incorrectly, I<image-E<gt>name> does not "
1506 #~ "correspond to the original module name, some I<image-E<gt>deps> entry "
1507 #~ "does not correspond to a loaded module, or some other similar "
1510 #~ "一部の I<image> スロットにおかしな値が入っている。または I<image-"
1511 #~ "E<gt>name> が元のモジュール名と一致していない。または、一部の I<image-"
1512 #~ "E<gt>deps> エントリがロードされたモジュールに対応していない。 または、他に"