.\" Copyright (C) 1996 Free Software Foundation, Inc. .\" This file is distributed according to the GNU General Public License. .\" See the file COPYING in the top level source directory for details. .\" .\" 2006-02-09, some reformatting by Luc Van Oostenryck; some .\" reformatting and rewordings by mtk .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH DELETE_MODULE 2 2006\-02\-09 Linux "Linux Programmer's Manual" .SH 名前 delete_module \- ローダブルモジュールのエントリを削除する .SH 書式 .nf \fB#include \fP .sp \fBint delete_module(const char *\fP\fIname\fP\fB);\fP .fi .SH 説明 \fBdelete_module\fP() は、未使用のローダブルモジュールのエントリを削除しようとする。 \fIname\fP が NULL の場合、未使用のモジュールのうち「自動削除 (auto\-clean)」 マークがついたものを全て削除する。 このシステムコールを使うには特権が必要である。 .SH 返り値 成功の場合 0 が返される。エラーの場合 \-1 が返され、 \fIerrno\fP に適切な値が設定される。 .SH エラー .TP \fBEBUSY\fP そのモジュールは使用中である。 .TP \fBEFAULT\fP \fIname\fP がプログラムがアクセスできるアドレス空間の外部にある。 .TP \fBEINVAL\fP \fIname\fP が空文字列である。 .TP \fBENOENT\fP その名前のモジュールが存在しない。 .TP \fBEPERM\fP 呼び出し元が特権 (\fBCAP_SYS_MODULE\fP ケーパビリティ) を持っていなかった。 .SH 準拠 \fBdelete_module\fP() は Linux 固有である。 .SH 関連項目 \fBcreate_module\fP(2), \fBinit_module\fP(2), \fBquery_module\fP(2) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。