Debian Codegraph @

templates/man2/init_module.2.pot

raw
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.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "init_module"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "init_module, finit_module - load a kernel module"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid ""
77 "B<#include E<lt>linux/module.hE<gt>> /* Definition of B<MODULE_*> constants */\n"
78 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
79 "B<#include E<lt>unistd.hE<gt>>\n"
80 msgstr ""
81
82 #. type: Plain text
83 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
84 #: opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "B<int syscall(>unsigned long size;\n"
88 "B<SYS_init_module,>\n"
89 "B< void >I<module_image>B<[>I<size>B<], unsigned long >I<size>B<,>\n"
90 "B< const char *>I<param_values>B<);>\n"
91 "B<int syscall(SYS_finit_module, int >I<fd>B<,>\n"
92 "B< const char *>I<param_values>B<, int >I<flags>B<);>\n"
93 msgstr ""
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "I<Note>: glibc provides no wrappers for these system calls, necessitating "
100 "the use of B<syscall>(2)."
101 msgstr ""
102
103 #. type: SH
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 #, no-wrap
107 msgid "DESCRIPTION"
108 msgstr ""
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 msgid ""
114 "B<init_module>() loads an ELF image into kernel space, performs any "
115 "necessary symbol relocations, initializes module parameters to values "
116 "provided by the caller, and then runs the module's I<init> function. This "
117 "system call requires privilege."
118 msgstr ""
119
120 #. type: Plain text
121 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
122 #: opensuse-leap-16-1 opensuse-tumbleweed
123 msgid ""
124 "The I<module_image> argument points to a buffer containing the binary image "
125 "to be loaded; I<size> specifies the size of that buffer. The module image "
126 "should be a valid ELF image, built for the running kernel."
127 msgstr ""
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "The I<param_values> argument is a string containing space-delimited "
134 "specifications of the values for module parameters (defined inside the "
135 "module using B<module_param>() and B<module_param_array>()). The kernel "
136 "parses this string and initializes the specified parameters. Each of the "
137 "parameter specifications has the form:"
138 msgstr ""
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid "I<name>[ B<=>I<value> [B<,>I<value>...]]"
144 msgstr ""
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "The parameter I<name> is one of those defined within the module using "
151 "I<module_param>() (see the Linux kernel source file I<include/linux/"
152 "moduleparam.h>). The parameter I<value> is optional in the case of I<bool> "
153 "and I<invbool> parameters. Values for array parameters are specified as a "
154 "comma-separated list."
155 msgstr ""
156
157 #. type: SS
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, no-wrap
161 msgid "finit_module()"
162 msgstr ""
163
164 #. commit 34e1169d996ab148490c01b65b4ee371cf8ffba2
165 #. https://lwn.net/Articles/519010/
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "The B<finit_module>() system call is like B<init_module>(), but reads the "
171 "module to be loaded from the file descriptor I<fd>. It is useful when the "
172 "authenticity of a kernel module can be determined from its location in the "
173 "filesystem; in cases where that is possible, the overhead of using "
174 "cryptographically signed modules to determine the authenticity of a module "
175 "can be avoided. The I<param_values> argument is as for B<init_module>()."
176 msgstr ""
177
178 #. commit 2f3238aebedb243804f58d62d57244edec4149b2
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 msgid ""
183 "The I<flags> argument modifies the operation of B<finit_module>(). It is a "
184 "bit mask value created by ORing together zero or more of the following flags:"
185 msgstr ""
186
187 #. type: TP
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, no-wrap
191 msgid "B<MODULE_INIT_IGNORE_MODVERSIONS>"
192 msgstr ""
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid "Ignore symbol version hashes."
198 msgstr ""
199
200 #. type: TP
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "B<MODULE_INIT_IGNORE_VERMAGIC>"
205 msgstr ""
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid "Ignore kernel version magic."
211 msgstr ""
212
213 #. type: TP
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "B<MODULE_INIT_COMPRESSED_FILE> (since Linux 5.17)"
218 msgstr ""
219
220 #. commit b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid "Use in-kernel module decompression."
225 msgstr ""
226
227 #. http://www.tldp.org/HOWTO/Module-HOWTO/basekerncompat.html
228 #. is dated, but informative
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 msgid ""
233 "There are some safety checks built into a module to ensure that it matches "
234 "the kernel against which it is loaded. These checks are recorded when the "
235 "module is built and verified when the module is loaded. First, the module "
236 "records a \"vermagic\" string containing the kernel version number and "
237 "prominent features (such as the CPU type). Second, if the module was built "
238 "with the B<CONFIG_MODVERSIONS> configuration option enabled, a version hash "
239 "is recorded for each symbol the module uses. This hash is based on the "
240 "types of the arguments and return value for the function named by the "
241 "symbol. In this case, the kernel version number within the \"vermagic\" "
242 "string is ignored, as the symbol version hashes are assumed to be "
243 "sufficiently reliable."
244 msgstr ""
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 msgid ""
250 "Using the B<MODULE_INIT_IGNORE_VERMAGIC> flag indicates that the "
251 "\"vermagic\" string is to be ignored, and the "
252 "B<MODULE_INIT_IGNORE_MODVERSIONS> flag indicates that the symbol version "
253 "hashes are to be ignored. If the kernel is built to permit forced loading "
254 "(i.e., configured with B<CONFIG_MODULE_FORCE_LOAD>), then loading continues, "
255 "otherwise it fails with the error B<ENOEXEC> as expected for malformed "
256 "modules."
257 msgstr ""
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "If the kernel was build with B<CONFIG_MODULE_DECOMPRESS>, the in-kernel "
264 "decompression feature can be used. User-space code can check if the kernel "
265 "supports decompression by reading the I</sys/module/compression> attribute. "
266 "If the kernel supports decompression, the compressed file can directly be "
267 "passed to B<finit_module>() using the B<MODULE_INIT_COMPRESSED_FILE> flag. "
268 "The in-kernel module decompressor supports the following compression "
269 "algorithms:"
270 msgstr ""
271
272 #. type: IP
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "\\[bu]"
277 msgstr ""
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid "I<gzip> (since Linux 5.17)"
283 msgstr ""
284
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 msgid "I<xz> (since Linux 5.17)"
289 msgstr ""
290
291 #. commit 169a58ad824d896b9e291a27193342616e651b82
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 msgid "I<zstd> (since Linux 6.2)"
296 msgstr ""
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "The kernel only implements a single decompression method. This is selected "
303 "during module generation accordingly to the compression method chosen in the "
304 "kernel configuration."
305 msgstr ""
306
307 #. type: SH
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "RETURN VALUE"
312 msgstr ""
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid ""
318 "On success, these system calls return 0. On error, -1 is returned and "
319 "I<errno> is set to indicate the error."
320 msgstr ""
321
322 #. type: SH
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 #, no-wrap
326 msgid "ERRORS"
327 msgstr ""
328
329 #. type: TP
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "B<EBADMSG> (since Linux 3.7)"
334 msgstr ""
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid "Module signature is misformatted."
340 msgstr ""
341
342 #. type: TP
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "B<EBUSY>"
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid "Timeout while trying to resolve a symbol reference by this module."
353 msgstr ""
354
355 #. type: TP
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "B<EFAULT>"
360 msgstr ""
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid ""
366 "An address argument referred to a location that is outside the process's "
367 "accessible address space."
368 msgstr ""
369
370 #. type: TP
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "B<ENOKEY> (since Linux 3.7)"
375 msgstr ""
376
377 #. commit 48ba2462ace6072741fd8d0058207d630ce93bf1
378 #. commit 1d0059f3a468825b5fc5405c636a2f6e02707ffa
379 #. commit 106a4ee258d14818467829bf0e12aeae14c16cd7
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 msgid ""
384 "Module signature is invalid or the kernel does not have a key for this "
385 "module. This error is returned only if the kernel was configured with "
386 "B<CONFIG_MODULE_SIG_FORCE>; if the kernel was not configured with this "
387 "option, then an invalid or unsigned module simply taints the kernel."
388 msgstr ""
389
390 #. type: TP
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "B<ENOMEM>"
395 msgstr ""
396
397 #. type: Plain text
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 msgid "Out of memory."
401 msgstr ""
402
403 #. type: TP
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid "B<EPERM>"
408 msgstr ""
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 msgid ""
414 "The caller was not privileged (did not have the B<CAP_SYS_MODULE> "
415 "capability), or module loading is disabled (see I</proc/sys/kernel/"
416 "modules_disabled> in B<proc>(5))."
417 msgstr ""
418
419 #. type: Plain text
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 msgid "The following errors may additionally occur for B<init_module>():"
423 msgstr ""
424
425 #. type: TP
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 #, no-wrap
429 msgid "B<EEXIST>"
430 msgstr ""
431
432 #. type: Plain text
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 msgid "A module with this name is already loaded."
436 msgstr ""
437
438 #. type: TP
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, no-wrap
442 msgid "B<EINVAL>"
443 msgstr ""
444
445 #. .TP
446 #. .BR EINVAL " (Linux 2.4 and earlier)"
447 #. Some
448 #. .I image
449 #. slot is filled in incorrectly,
450 #. .I image\->name
451 #. does not correspond to the original module name, some
452 #. .I image\->deps
453 #. entry does not correspond to a loaded module,
454 #. or some other similar inconsistency.
455 #. type: Plain text
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 msgid ""
459 "I<param_values> is invalid, or some part of the ELF image in I<module_image> "
460 "contains inconsistencies."
461 msgstr ""
462
463 #. type: TP
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 #, no-wrap
467 msgid "B<ENOEXEC>"
468 msgstr ""
469
470 #. type: Plain text
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 msgid ""
474 "The binary image supplied in I<module_image> is not an ELF image, or is an "
475 "ELF image that is invalid or for a different architecture."
476 msgstr ""
477
478 #. type: Plain text
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 msgid "The following errors may additionally occur for B<finit_module>():"
482 msgstr ""
483
484 #. type: TP
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 #, no-wrap
488 msgid "B<EBADF>"
489 msgstr ""
490
491 #. type: Plain text
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 msgid "The file referred to by I<fd> is not opened for reading."
495 msgstr ""
496
497 #. type: TP
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, no-wrap
501 msgid "B<EFBIG>"
502 msgstr ""
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid "The file referred to by I<fd> is too large."
508 msgstr ""
509
510 #. type: Plain text
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 msgid "I<flags> is invalid."
514 msgstr ""
515
516 #. type: Plain text
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 msgid ""
520 "The decompressor sanity checks failed, while loading a compressed module "
521 "with flag B<MODULE_INIT_COMPRESSED_FILE> set."
522 msgstr ""
523
524 #. type: Plain text
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 msgid "I<fd> does not refer to an open file."
528 msgstr ""
529
530 #. type: TP
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 #, no-wrap
534 msgid "B<EOPNOTSUPP> (since Linux 5.17)"
535 msgstr ""
536
537 #. type: Plain text
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 msgid ""
541 "The flag B<MODULE_INIT_COMPRESSED_FILE> is set to load a compressed module, "
542 "and the kernel was built without B<CONFIG_MODULE_DECOMPRESS>."
543 msgstr ""
544
545 #. type: TP
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 #, no-wrap
549 msgid "B<ETXTBSY> (since Linux 4.7)"
550 msgstr ""
551
552 #. commit 39d637af5aa7577f655c58b9e55587566c63a0af
553 #. type: Plain text
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 msgid "The file referred to by I<fd> is opened for read-write."
557 msgstr ""
558
559 #. type: Plain text
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 msgid ""
563 "In addition to the above errors, if the module's I<init> function is "
564 "executed and returns an error, then B<init_module>() or B<finit_module>() "
565 "fails and I<errno> is set to the value returned by the I<init> function."
566 msgstr ""
567
568 #. type: SH
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 #, no-wrap
572 msgid "STANDARDS"
573 msgstr ""
574
575 #. type: Plain text
576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
578 msgid "Linux."
579 msgstr ""
580
581 #. type: SH
582 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
583 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
584 #, no-wrap
585 msgid "HISTORY"
586 msgstr ""
587
588 #. type: TP
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 #, no-wrap
592 msgid "B<finit_module>()"
593 msgstr ""
594
595 #. type: Plain text
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 msgid "Linux 3.8."
599 msgstr ""
600
601 #. type: Plain text
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 msgid ""
605 "The B<init_module>() system call is not supported by glibc. No declaration "
606 "is provided in glibc headers, but, through a quirk of history, glibc "
607 "versions before glibc 2.23 did export an ABI for this system call. "
608 "Therefore, in order to employ this system call, it is (before glibc 2.23) "
609 "sufficient to manually declare the interface in your code; alternatively, "
610 "you can invoke the system call using B<syscall>(2)."
611 msgstr ""
612
613 #. type: SS
614 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
615 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
616 #, no-wrap
617 msgid "Linux 2.4 and earlier"
618 msgstr ""
619
620 #. type: Plain text
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 msgid ""
624 "In Linux 2.4 and earlier, the B<init_module>() system call was rather "
625 "different:"
626 msgstr ""
627
628 #. type: Plain text
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 msgid "B<#include E<lt>linux/module.hE<gt>>"
632 msgstr ""
633
634 #. type: Plain text
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 msgid ""
638 "B< int init_module(const char *>I<name>B<, struct module *>I<image>B<);>"
639 msgstr ""
640
641 #. type: Plain text
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 msgid ""
645 "(User-space applications can detect which version of B<init_module>() is "
646 "available by calling B<query_module>(); the latter call fails with the error "
647 "B<ENOSYS> on Linux 2.6 and later.)"
648 msgstr ""
649
650 #. type: Plain text
651 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
652 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
653 msgid ""
654 "The older version of the system call loads the relocated module image "
655 "pointed to by I<image> into kernel space and runs the module's I<init> "
656 "function. The caller is responsible for providing the relocated image "
657 "(since Linux 2.6, the B<init_module>() system call does the relocation)."
658 msgstr ""
659
660 #. type: Plain text
661 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
662 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
663 msgid ""
664 "The module image begins with a module structure and is followed by code and "
665 "data as appropriate. Since Linux 2.2, the module structure is defined as "
666 "follows:"
667 msgstr ""
668
669 #. type: Plain text
670 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
671 #: opensuse-leap-16-1 opensuse-tumbleweed
672 #, no-wrap
673 msgid ""
674 "struct module {\n"
675 " unsigned long size_of_struct;\n"
676 " struct module *next;\n"
677 " const char *name;\n"
678 " unsigned long size;\n"
679 " long usecount;\n"
680 " unsigned long flags;\n"
681 " unsigned int nsyms;\n"
682 " unsigned int ndeps;\n"
683 " struct module_symbol *syms;\n"
684 " struct module_ref *deps;\n"
685 " struct module_ref *refs;\n"
686 " typeof(int (void)) *init;\n"
687 " typeof(void (void)) *cleanup;\n"
688 " const struct exception_table_entry *ex_table_start;\n"
689 " const struct exception_table_entry *ex_table_end;\n"
690 "#ifdef __alpha__\n"
691 " unsigned long gp;\n"
692 "#endif\n"
693 "};\n"
694 msgstr ""
695
696 #. type: Plain text
697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
699 msgid ""
700 "All of the pointer fields, with the exception of I<next> and I<refs>, are "
701 "expected to point within the module body and be initialized as appropriate "
702 "for kernel space, that is, relocated with the rest of the module."
703 msgstr ""
704
705 #. type: SH
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 #, no-wrap
709 msgid "NOTES"
710 msgstr ""
711
712 #. type: Plain text
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 msgid ""
716 "Information about currently loaded modules can be found in I</proc/modules> "
717 "and in the file trees under the per-module subdirectories under I</sys/"
718 "module>."
719 msgstr ""
720
721 #. type: Plain text
722 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
723 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
724 msgid ""
725 "See the Linux kernel source file I<include/linux/module.h> for some useful "
726 "background information."
727 msgstr ""
728
729 #. type: SH
730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
732 #, no-wrap
733 msgid "SEE ALSO"
734 msgstr ""
735
736 #. type: Plain text
737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
739 msgid ""
740 "B<create_module>(2), B<delete_module>(2), B<query_module>(2), B<lsmod>(8), "
741 "B<modprobe>(8)"
742 msgstr ""
743
744 #. type: TH
745 #: debian-trixie
746 #, no-wrap
747 msgid "2024-05-02"
748 msgstr ""
749
750 #. type: TH
751 #: debian-trixie
752 #, no-wrap
753 msgid "Linux man-pages 6.9.1"
754 msgstr ""
755
756 #. type: Plain text
757 #: debian-trixie
758 msgid "Standard C library (I<libc>, I<-lc>)"
759 msgstr ""
760
761 #. type: Plain text
762 #: debian-trixie
763 #, no-wrap
764 msgid ""
765 "B<int syscall(SYS_init_module, void >I<module_image>B<[.>I<len>B<], unsigned long >I<len>B<,>\n"
766 "B< const char *>I<param_values>B<);>\n"
767 "B<int syscall(SYS_finit_module, int >I<fd>B<,>\n"
768 "B< const char *>I<param_values>B<, int >I<flags>B<);>\n"
769 msgstr ""
770
771 #. type: Plain text
772 #: debian-trixie
773 msgid ""
774 "The I<module_image> argument points to a buffer containing the binary image "
775 "to be loaded; I<len> specifies the size of that buffer. The module image "
776 "should be a valid ELF image, built for the running kernel."
777 msgstr ""
778
779 #. type: Plain text
780 #: debian-trixie
781 #, no-wrap
782 msgid ""
783 "struct module {\n"
784 " unsigned long size_of_struct;\n"
785 " struct module *next;\n"
786 " const char *name;\n"
787 " unsigned long size;\n"
788 " long usecount;\n"
789 " unsigned long flags;\n"
790 " unsigned int nsyms;\n"
791 " unsigned int ndeps;\n"
792 " struct module_symbol *syms;\n"
793 " struct module_ref *deps;\n"
794 " struct module_ref *refs;\n"
795 " int (*init)(void);\n"
796 " void (*cleanup)(void);\n"
797 " const struct exception_table_entry *ex_table_start;\n"
798 " const struct exception_table_entry *ex_table_end;\n"
799 "#ifdef __alpha__\n"
800 " unsigned long gp;\n"
801 "#endif\n"
802 "};\n"
803 msgstr ""
804
805 #. type: TH
806 #: fedora-44 fedora-rawhide
807 #, no-wrap
808 msgid "2025-01-05"
809 msgstr ""
810
811 #. type: TH
812 #: fedora-44 fedora-rawhide
813 #, no-wrap
814 msgid "Linux man-pages 6.13"
815 msgstr ""
816
817 #. type: Plain text
818 #: fedora-44 fedora-rawhide
819 #, no-wrap
820 msgid ""
821 "B<int syscall(SYS_init_module, void >I<module_image>B<[.>I<size>B<], unsigned long >I<size>B<,>\n"
822 "B< const char *>I<param_values>B<);>\n"
823 "B<int syscall(SYS_finit_module, int >I<fd>B<,>\n"
824 "B< const char *>I<param_values>B<, int >I<flags>B<);>\n"
825 msgstr ""
826
827 #. type: TH
828 #: mageia-cauldron
829 #, no-wrap
830 msgid "Linux man-pages 6.17"
831 msgstr ""
832
833 #. type: TH
834 #: opensuse-leap-16-1 opensuse-tumbleweed
835 #, no-wrap
836 msgid "Linux man-pages (unreleased)"
837 msgstr ""