1modload(1M)             System Administration Commands             modload(1M)
2
3
4

NAME

6       modload - load a kernel module
7

SYNOPSIS

9       modload [-p] [-e exec_file] filename
10
11

DESCRIPTION

13       The  modload  command loads the loadable module  filename into the run‐
14       ning system.
15
16
17       filename is an object file produced by ld -r. If  filename is an  abso‐
18       lute  pathname then the file specified by that absolute path is loaded.
19       If  filename does not begin with a slash (/), then  the  path  to  load
20       filename  is relative to the current directory unless the  -p option is
21       specified.
22
23
24       The kernel's modpath variable can be set using  the  /etc/system  file.
25       The  default  value of the kernel's modpath variable is set to the path
26       where the operating system  was  loaded.   Typically  this  is  /kernel
27       /usr/kernel.
28
29
30       For example, the following command looks for ./drv/foo:
31
32         example# modload drv/foo
33
34
35
36
37       The  following  command  looks  for  /kernel/drv/foo and then /usr/ker‐
38       nel/drv/foo:
39
40         example# modload -p drv/foo
41
42
43

OPTIONS

45       The following options are supported:
46
47       -e exec_file    Specify the name of a shell script or  executable image
48                       file  that is executed after the module is successfully
49                       loaded.  The first argument passed is the module ID (in
50                       decimal).  The  other  argument is module specific. The
51                       module specific information is: the block and character
52                       major  numbers  for drivers, the system call number for
53                       system calls, or, for  other module  types,  the  index
54                       into the appropriate kernel table. See  modinfo(1M)
55
56
57       -p              Use  the  kernel's  internal  modpath  variable  as the
58                       search path for the module.
59
60

ATTRIBUTES

62       See attributes(5) for descriptions of the following attributes:
63
64
65
66
67       ┌─────────────────────────────┬─────────────────────────────┐
68       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
69       ├─────────────────────────────┼─────────────────────────────┤
70       │Availability                 │SUNWcsu                      │
71       └─────────────────────────────┴─────────────────────────────┘
72

SEE ALSO

74       ld(1), add_drv(1M), kernel(1M), modinfo(1M), modunload(1M),  system(4),
75       attributes(5),   modldrv(9S),   modlinkage(9S),   modlstrmod(9S),  mod‐
76       ule_info(9S)
77
78

NOTES

80       Use add_drv(1M) to add device drivers, not modload. See  for procedures
81       on adding device drivers.
82
83
84
85SunOS 5.11                        1 Dec 1993                       modload(1M)
Impressum