17 working with kernel modules

lsmod - shows modules currently loaded and its dependency/size

[root@localhost /]# lsmod
Module                  Size  Used by
ext4                  583541  1
mbcache                14958  1 ext4
jbd2                  102945  1 ext4
binfmt_misc            17468  1
vmw_vsock_vmci_transport    30577  0
vsock                  34855  3 vmw_vsock_vmci_transport
snd_seq_midi           13565  0
snd_seq_midi_event     14899  1 snd_seq_midi
intel_powerclamp       14419  0
coretemp               13444  0


on modern kernel versions the kernel works together with udev

[root@localhost /]# udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

disconnect kernel module
[root@localhost /]# modprobe -r vfat
[root@localhost /]# lsmod | grep vfat

connect kernel module manually
[root@localhost /]# modprobe vfat
[root@localhost /]# lsmod | grep vfat
vfat                   17411  0
fat                    65913  1 vfat






Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all