*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> create_module (2)              
Title
Content
Arch
Section
 

CREATE_MODULE(2)

Contents


NAME    [Toc]    [Back]

       create_module - create a loadable module entry

SYNOPSIS    [Toc]    [Back]

       #include <linux/module.h>

       caddr_t create_module(const char *name, size_t size);

DESCRIPTION    [Toc]    [Back]

       create_module  attempts	to  create a loadable module entry and reserve
       the kernel memory that will be needed to hold the module.  This	system
       call is only open to the superuser.

RETURN VALUE    [Toc]    [Back]

       On success, returns the kernel address at which the module will reside.
       On error -1 is returned and errno is set appropriately.

ERRORS    [Toc]    [Back]

       EPERM  The user is not the superuser.

       EEXIST A module by that name already exists.

       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.

       EFAULT name is outside the program's accessible address space.

SEE ALSO    [Toc]    [Back]

      
      
       init_module(2), delete_module(2), query_module(2).



Linux				  26 Dec 1996		      CREATE_MODULE(2)
[ Back ]
 Similar pages
Name OS Title
init_module Linux initialize a loadable module entry
delete_module Linux delete a loadable module entry
insmod Linux install loadable kernel module
snmpmod FreeBSD SNMP daemon loadable module interface
acl_create_entry FreeBSD create a new ACL entry
acl_create_entry Tru64 Create a new ACL entry
entry IRIX Create and manipulate entry widgets
install-info Linux create or update entry in Info directory
show_cell HP-UX Displays the information you need to create a cell entry in either DNS or GDS
update-inetd Linux create, remove, enable or disable entry in /etc/inetd.conf
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service