insmod - Unix, Linux Command


Advertisements


NAME

insmod - simple program to insert a module into the Linux Kernel

SYNOPSIS

insmod [ filename ] [ module options... ]

DESCRIPTION

insmod is a trivial program to insert a module into the kernel: if the filename is a hyphen, the module is taken from standard input. Most users will want to use modprobe(8) instead, which is more clever. Only the most general of error messages are reported: as the work of trying to link the module is now done inside the kernel, the dmesg usually gives more information about errors.

OPTIONS

TAG DESCRIPTION
-V, --version Show Version
-h, --help Show this help

EXAMPLES

Example-1:

Insert a module with any arguments

# insmod dummy type="wpa" debug=1

output:

# lsmod | grep dummy
dummy                135168  0

Example-2:

Specify module name as an argument

# insmod mynet.ko

output:

# lsmod | grep mynet
mynet                155128  0

Example-3:

user can enter the module name interactively

# insmod -

kernel/drivers/net/mynet.ko

# lsmod | grep mynet
mynet                155128  0



Advertisements