|
|
HP-UX Reference > Mmodload(2)HP-UX 11i Version 2: December 2007 Update |
|
NAMEmodload() — load kernel modules on demand DESCRIPTIONmodload allows processes with appropriate privilege to demand-load a kernel module into the running kernel. The module must be of a supported type and must have been registered via kcmodule(1M) before it can be loaded. The module to be loaded is specified by pathname. pathname may be either a module name or an absolute path name. If pathname is a module name, a list of directories specified by modpath is searched for a match. If pathname is absolute, only pathname is used to access the object file. The file must be an ELF64 relocatable object file. Security Restrictionsmodload is restricted to superuser processes and privileged processes. A privileged process requires the PRIV_DLKM privilege to execute the modload system call. See privileges(5), for more information about the DLKM_PRIV privilege. RETURN VALUEOn successful completion, modload returns a module identifier that can be passed to moduload or modstat. On failure it returns -1 and sets errno to identify the error. ERRORSmodload fails if one or more of the following are true:
|
|