linux 命令之 insmod
2016-01-06 21:10 youxin 阅读(1551) 评论(0) 编辑 收藏 举报man insmod:
INSMOD(8) insmod INSMOD(8)
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. Most users will want to use modprobe(8) instead,
which is more clever and can handle module dependencies.
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.
COPYRIGHT
This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. Maintained by Jon Masters and others.
SEE ALSO
modprobe(8), rmmod(8), lsmod(8)modinfo(8)
insmod 加载模块,需要指定完整的路径和模块名字。
说明:Linux有许多功能是通过模块的方式,在需要时才载入kernel。如此可使kernel较为精简,进而提高效率,以及保有较大的弹性。这类可载入的模块,通常是设备驱动程序。