Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ld(1)

modunload(8)

modstat(8)

MODLOAD(8)  —  MAINTENANCE COMMANDS

NAME

modload − load a Sun386i module

SYNOPSIS

modload filename [ −conf config_file ] [ −entry entry_point ] [ −exec exec_file ] [ −o output_file ]

[ −nolink ] [ −A vmunix_file ]

AVAILABILITY

Sun386i systems only. 

DESCRIPTION

modload loads a loadable module into a running system.  The input file filename is an object file (.o file). 

OPTIONS

−conf config_file
Use this configuration file to configure the loadable driver being loaded. The commands in this file are the same as those that the config(8) program recognizes.  There are two additional commands, blockmajor and charmajor, shown in the configuration file example below. 

−entry entry_point
This is the module entry point.  This is passed by modload to ld(1) when the module is linked.  The default module entry point name is ‘xxxinit’. 

−exec exec_file
This is the name of a shell script or executable image file that will be executed if the module is successfully loaded. It is always passed the module id and module type as the first two arguments.  For loadable drivers, the third and fourth arguments are the block major and character major numbers respectively. For a loadable system call, the third argument is the system call number.

−o output_file
This is the name of the output file that is produced by the linker. If this option is omitted, then the output file name is filename> without the ‘.o’. 

−nolink
This option can be used if modload has already been issued once and the output file already exists.  One must take care that neither the kernel nor the module have changed. 

−A vmunix_file
This is the file that is passed to the linker to resolve module references to kernel symbols.  The default is /vmunix.  The symbol file must be for the currently running kernel or the module is likely to crash the system. 

EXAMPLE

controllerfdc0 at atmem csr 0x001000 irq 6 priority 3
controllerfdc2 at atmem csr 0x002000 irq 5 priority 2
diskfd0 at fdc0 drive 0
diskfd0 at fdc0 drive 1
diskfd0 at fdc0 drive 2
devicefd0 at fdc2 drive 0 csr 0x003000 irq 4 priority 2
diskfd0 at fdc2 drive 1
blockmajor 51
charmajor 52

SEE ALSO

ld(1), modunload(8), modstat(8)

Sun Release 4.0  —  Last change: 19 February 1988

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026