1 .\" Copyright (C) 1996 Free Software Foundation, Inc.
2 .\" This file is distributed accroding to the GNU General Public License.
3 .\" See the file COPYING in the top level source directory for details.
5 .\" Japanese Version Copyright (c) 1997,1999 HANATAKA Shinya and FUJIWARA Teruyoshi
6 .\" all rights reserved.
7 .\" Translated Sat Aug 30 14:10:38 JST 1997
8 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
9 .\" Merged with another translation Sun Aug 15 10:38:59 JST 1999
10 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
12 .\"WORD: loadable module ¥í¡¼¥À¥Ö¥ë¥â¥¸¥å¡¼¥ë
14 .TH DELETE_MODULE 2 "26 Dec 1996" Linux "Linux Module Support"
17 .\"O delete_module \- delete a loadable module entry
18 delete_module \- ¥í¡¼¥À¥Ö¥ë¥â¥¸¥å¡¼¥ë¤Î¥¨¥ó¥È¥ê¤òºï½ü¤¹¤ë
22 .B #include <linux/module.h>
24 .BI "int delete_module(const char *" name );
29 .\"O attempts to remove an unused loadable module entry. If \fIname\fP
30 .\"O is \fBNULL\fP, all unused modules marked auto-clean will be removed.
32 ¤Ï̤»ÈÍÑ¤Î¥í¡¼¥À¥Ö¥ë¥â¥¸¥å¡¼¥ë¤Î¥¨¥ó¥È¥ê¤òºï½ü¤·¤è¤¦¤È»î¤ß¤ë¡£
33 \fIname\fP ¤¬ \fBNULL\fP ¤Ê¤é¤Ð¡¢
34 »ÈÍѤµ¤ì¤Æ¤¤¤Ê¤¤¥â¥¸¥å¡¼¥ë¤Î¤¦¤Á¡Ö¼«Æ°ºï½ü(all-clean)¡×¥Þ¡¼¥¯¤Î¤Ä¤¤¤¿
36 .\"O This system call is only open to the superuser.
37 ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò»È¤¨¤ë¤Î¤Ï¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤À¤±¤Ç¤¢¤ë¡£
38 .\"O .SH "RETURN VALUE"
40 .\"O On success, zero is returned. On error, \-1 is returned and \fIerrno\fP
41 .\"O is set appropriately.
42 À®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢\fIerrno\fP
43 ¤ËŬÀÚ¤ÊÃͤ¬ÀßÄꤵ¤ì¤ë¡£
48 .\"O The user is not the superuser.
49 ¸Æ¤Ó½Ð¤·¤ò¹Ô¤Ã¤¿¤Î¤¬¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ç¤Ê¤¤¡£
52 .\"O No module by that name exists.
53 ¤½¤Î̾Á°¤ò»ý¤Ä¥â¥¸¥å¡¼¥ë¤¬Â¸ºß¤·¤Ê¤¤¡£
56 .\"O \fIname\fP was the empty string.
57 \fIname\fP ¤¬¶õʸ»úÎó¤Ç¤¢¤ë¡£
60 .\"O The module is in use.
61 ¤½¤Î¥â¥¸¥å¡¼¥ë¤Ï»ÈÍÑÃæ¤Ç¤¢¤ë¡£
65 .\"O is outside the program's accessible address space.
67 ¤¬¥×¥í¥°¥é¥à¤¬¥¢¥¯¥»¥¹¤Ç¤¤ë¥¢¥É¥ì¥¹¶õ´Ö¤Î³°Éô¤Ë¤¢¤ë¡£
70 .\"O .BR create_module "(2), " init_module "(2), " query_module "(2).
71 .BR create_module "(2), " init_module "(2), " query_module "(2)