¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 1,358°Ç
   
Manage Kernel Modules
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2016-11-01 (È­) 15:33 Á¶È¸ : 3128
±ÛÁÖ¼Ò :
                                


Kernel ¸ðµâ °ü¸®¹æ¹ý
¿äÁò Linux / Ubuntu ¹èÆ÷ÆǵéÀº ¿î¿µÃ¼Á¦¸¦ ¼³Ä¡ÇÒ¶§ ¿Ø¸¸ÇÑ ±âº»ÀûÀÎ µð¹ÙÀ̽ºÀÇ ¸ðµâÀº ¾Ë¾Æ¼­ ´ëºÎºÐ ¼³Ä¡ÇϰԵȴÙ.
8~9³âÀü Kernel 2.X Version¸¸ ÇÏ´õ¶óµµ ÇÊ¿äÇÑ µð¹ÙÀ̽º ¸ðµâÀÌ ÀÖ´Ù¸é º°µµ·Î Ä¿³ÎÄÄÆÄÀÏ ÇÒÀÏÀÌ Àæ¾Ò´Âµ¥ ¿äÁòÀº Ä¿³ÎÄÄÆÄÀÏÇÒÀϵµ ºÎ½ ÁÙ¾îµé¾ú´Ù.
¾Æ·¡ ¾È³»ÇÏ´Â Ä¿³Î¸ðµâ ¸í·É¾î ¸î°³¸¸ ¾Ë°íÀ־ ¿Ø¸¸ÇÑ ¸ðµâ °ü¸®´Â ÇÒ¼öÀֱ⿡ ¸î°¡Áö Àû¾îº¾´Ï´Ù.

lsmod : ¸ðµâ¸®½ºÆ® Ãâ·Â 
             ½Ã½ºÅÛ³»¿¡ ¿Ã¶ó¿ÍÀÖ´Â Àüü ¸ðµâÀ» ¸®½ºÆ®·Î º¸¿©ÁÝ´Ï´Ù.
# lsmod

:: r8169 : 1G NIC ¸ðµâ
# lsmod |grep r8169
r8169                  81920  0
mii                    16384  1 r8169


modinfo : ¸ðµâ Á¤º¸Ãâ·Â
# modinfo r8169


modprobe : ¸ðµâÀ» Á÷Á¢ÀûÀ¸·Î Ãß°¡, »èÁ¦
Ä¿³Î¸ðµâ ±âº»°æ·Î /lib/modules/`uname -r`/kernel/drivers/
# ls /lib/modules/`uname -r`/kernel/drivers/

# uname -r
4.4.0-47-generic

:: r8169 ¸ðµâ »ðÀÔ 
# modprobe r8169

:: r8169 ¸ðµâ »èÁ¦
# modprobe -r r8169

:: ¸ðµâÁ¾¼Ó¼º üũ
# modprobe --show-depends r8169
insmod /lib/modules/4.4.0-47-generic/kernel/drivers/net/mii.ko 
insmod /lib/modules/4.4.0-47-generic/kernel/drivers/net/ethernet/realtek/r8169.ko


# modprobe --help
Usage:
modprobe [options] [-i] [-b] modulename
modprobe [options] -a [-i] [-b] modulename [modulename...]
modprobe [options] -r [-i] modulename
modprobe [options] -r -a [-i] modulename [modulename...]
modprobe [options] -c
modprobe [options] --dump-modversions filename
Management Options:
-a, --all                   Consider every non-argument to
                           be a module name to be inserted
                           or removed (-r)
-r, --remove                Remove modules instead of inserting
   --remove-dependencies   Also remove modules depending on it
-R, --resolve-alias         Only lookup and print alias and exit
   --first-time            Fail if module already inserted or removed
-i, --ignore-install        Ignore install commands
-i, --ignore-remove         Ignore remove commands
-b, --use-blacklist         Apply blacklist to resolved alias.
-f, --force                 Force module insertion or removal.
                           implies --force-modversions and
                           --force-vermagic
   --force-modversion      Ignore module's version
   --force-vermagic        Ignore module's version magic

Query Options:
-D, --show-depends          Only print module dependencies and exit
-c, --showconfig            Print out known configuration and exit
-c, --show-config           Same as --showconfig
   --show-modversions      Dump module symbol version and exit
   --dump-modversions      Same as --show-modversions

General Options:
-n, --dry-run               Do not execute operations, just print out
-n, --show                  Same as --dry-run
-C, --config=FILE           Use FILE instead of default search paths
-d, --dirname=DIR           Use DIR as filesystem root for /lib/modules
-S, --set-version=VERSION   Use VERSION instead of `uname -r`
-s, --syslog                print to syslog, not stderr
-q, --quiet                 disable messages
-v, --verbose               enables more messages
-V, --version               show version
-h, --help                  show this help

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.