Unix-system-calls-create-module

提供:Dev Guides
移動先:案内検索

[top]#

|http://www.google.com/[Google] | a|

Web This Site
  • 初心者向けのUnix *
  • 高度なUnix *

選択した読書

Copyright©2014 by finddevguides

[cols=",,,,,,,",]

| |  Home   | |  References   | |  Discussion Forums   | |  About TP  

[width="100%",cols="100%",]

a| == create_module()-Unix、Linuxシステムコール

[[File:]] image :http://www.finddevguides.com/images/next.gif [next] image:http://www.finddevguides.com/add- this.gif [AddThisソーシャルブックマークボタン]

広告

NAME

create_module-ロード可能なモジュールエントリを作成する

概要

#include <linux/module.h> caddr_t create_module(const char* name, size_t size);

説明

*create_module* ()は、ロード可能なモジュールエントリを作成し、モジュールを保持するために必要なカーネルメモリを予約しようとします。 このシステムコールには特権が必要です。

返り値

成功した場合、モジュールが常駐するカーネルアドレスを返します。 エラー時には-1が返され、_errno_が適切に設定されます。

エラー

Error Code Description
EEXIST A module by that name already exists.
EFAULT name is outside the program’s accessible address space.
EINVAL The requested size is too small even for the module header information.
ENOMEM The kernel could not allocate a contiguous block of memory large enough for the module.
*EPERM * The caller was not privileged (did not have the* CAP_SYS_MODULE* capability).

準拠

*create_module* ()はLinux固有です。

ノート

このシステムコールは、カーネル2.4までLinuxにのみ存在します。 Linux 2.6では削除されました。

関連項目

[[File:]] image :http://www.finddevguides.com/images/next.gif [next] [[File:]]

広告

|  

[cols="^",]

|Advertisements