Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

modload(8) [netbsd man page]

MODLOAD(8)						    BSD System Manager's Manual 						MODLOAD(8)

modload -- load a kernel module SYNOPSIS
modload [-fP] [-b var=boolean] [-i var=integer] [-s var=string] module modload -p [-b var=boolean] [-d var] [-i var=integer] [-m plist] [-s var=string] DESCRIPTION
The modload utility loads a kernel module specified by the module parameter into the running system. Modules are loaded from the default system module areas unless the module parameter contains a path separator character ('/'). The options to modload are as follows: -b var=boolean Pass the module a boolean property with the name var. boolean may be either true or false. -d var When used in conjuction with -m, delete var from the plist specified. -f When a module is loaded, the kernel checks if the module is compatible with the running kernel and will refuse to load mod- ules that are potentially incompatible. This option disables compatibility checks. Note: an incompatible module can cause system instability, including data loss or corruption. This option is also required for re-enabling a builtin module that was disabled using modunload(8). -i var=integer Pass the module an integer property with the name var and integral value integer. -m plist When used in conjuction with -p, merge new options with an existing property list contained in plist. -P This option tells the kernel not to load an associated property list. -p Output a property list suitable for loading along with a module. When using this option, you do not need to specify a mod- ule. Use -m and -d to read and modify an existing property list. -s var=string Pass the module a string property with the name var and string value string. DIAGNOSTICS
The modload utility exits with a status of 0 on success and with a nonzero status if an error occurs. SEE ALSO
module(7), modstat(8), modunload(8) HISTORY
The modload command was designed to be similar in functionality to the corresponding command in SunOS 4.1.3. BSD
August 6, 2011 BSD

Check Out this Related Man Page

modload(1M)						  System Administration Commands					       modload(1M)

modload - load a kernel module SYNOPSIS
modload [-p] [-e exec_file] filename DESCRIPTION
The modload command loads the loadable module filename into the running system. filename is an object file produced by ld -r. If filename is an absolute pathname then the file specified by that absolute path is loaded. If filename does not begin with a slash (/), then the path to load filename is relative to the current directory unless the -p option is specified. The kernel's modpath variable can be set using the /etc/system file. The default value of the kernel's modpath variable is set to the path where the operating system was loaded. Typically this is /kernel /usr/kernel. For example, the following command looks for ./drv/foo: example# modload drv/foo The following command looks for /kernel/drv/foo and then /usr/kernel/drv/foo: example# modload -p drv/foo OPTIONS
The following options are supported: -e exec_file Specify the name of a shell script or executable image file that is executed after the module is successfully loaded. The first argument passed is the module ID (in decimal). The other argument is module specific. The module specific information is: the block and character major numbers for drivers, the system call number for system calls, or, for other module types, the index into the appropriate kernel table. See modinfo(1M) -p Use the kernel's internal modpath variable as the search path for the module. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
ld(1), add_drv(1M), kernel(1M), modinfo(1M), modunload(1M), system(4), attributes(5), modldrv(9S), modlinkage(9S), modlstrmod(9S), mod- ule_info(9S) Writing Device Drivers NOTES
Use add_drv(1M) to add device drivers, not modload. See Writing Device Drivers for procedures on adding device drivers. SunOS 5.10 1 Dec 1993 modload(1M)
Man Page