Linux操作系统内核编译之NTFS文件系统模块支持案例
作者:尹正杰
版权声明:原创作品,谢绝转载!否则将追究法律责任。
一.内核编译概述
单内核体系设计、但充分借鉴了微内核设计体系的优点,为内核引入模块化机制 内核组成部分: kernel:([*]:Y)
内核核心,一般为bzImage,通常在/boot目录下 名称为 vmlinuz-VERSION-RELEASE kernel object:([M]:M)
内核对象,一般放置于/lib/modules/VERSION-RELEASE/ 辅助文件:ramdisk initrd initramfs
二.内核版本
运行中的内核: uname命令: uname - print system information uname [OPTION]... -n: 显示节点名称 -r: 显示VERSION-RELEASE -a:显示所有信息
三.内核模块管理相关命令
1>.lsmod命令
显示由核心已经装载的内核模块
显示的内容来自于: /proc/modules文件
[root@yinzhengjie ~]# lsmod Module Size Used by tcp_diag 1041 0 inet_diag 9430 1 tcp_diag nls_utf8 1455 1 fuse 80180 2 rfcomm 71207 4 sco 17589 2 bridge 85770 0 bnep 16370 2 l2cap 54498 16 rfcomm,bnep autofs4 27000 3 8021q 20507 0 garp 7184 1 8021q stp 2218 2 bridge,garp llc 5450 3 bridge,garp,stp ipt_REJECT 2383 0 nf_conntrack_ipv4 9218 0 nf_defrag_ipv4 1483 1 nf_conntrack_ipv4 iptable_filter 2793 0 ip_tables 17895 1 iptable_filter ip6t_REJECT 4372 2 nf_conntrack_ipv6 7985 3 nf_defrag_ipv6 26468 1 nf_conntrack_ipv6 xt_state 1492 3 nf_conntrack 79601 3 nf_conntrack_ipv4,nf_conntrack_ipv6,xt_state ip6table_filter 2889 1 ip6_tables 18828 1 ip6table_filter ib_ipoib 81191 0 rdma_ucm 15739 0 ib_ucm 12360 0 ib_uverbs 40532 2 rdma_ucm,ib_ucm ib_umad 13519 0 rdma_cm 36651 1 rdma_ucm ib_cm 37444 3 ib_ipoib,ib_ucm,rdma_cm iw_cm 33136 1 rdma_cm ib_sa 24188 4 ib_ipoib,rdma_ucm,rdma_cm,ib_cm ib_mad 41628 3 ib_umad,ib_cm,ib_sa ib_core 83020 10 ib_ipoib,rdma_ucm,ib_ucm,ib_uverbs,ib_umad,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad ib_addr 8304 3 rdma_ucm,rdma_cm,ib_core ipv6 336944 288 bridge,ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6,ib_ipoib,ib_addr uinput 8152 0 microcode 112333 0 vmware_balloon 7199 0 btusb 16915 2 bluetooth 98087 9 rfcomm,sco,bnep,l2cap,btusb snd_seq_midi 6423 0 rfkill 19287 3 bluetooth snd_seq_midi_event 7237 1 snd_seq_midi snd_ens1371 21523 2 snd_rawmidi 24697 2 snd_seq_midi,snd_ens1371 snd_ac97_codec 125095 1 snd_ens1371 ac97_bus 1452 1 snd_ac97_codec snd_seq 60833 2 snd_seq_midi,snd_seq_midi_event snd_seq_device 7277 3 snd_seq_midi,snd_rawmidi,snd_seq snd_pcm 94177 2 snd_ens1371,snd_ac97_codec snd_timer 22843 2 snd_seq,snd_pcm snd 73943 11 snd_ens1371,snd_rawmidi,snd_ac97_codec,snd_seq,snd_seq_device,snd_pcm,snd_timer soundcore 7990 1 snd snd_page_alloc 8856 1 snd_pcm e1000 134991 0 sg 29382 0 shpchp 29546 0 i2c_piix4 11520 0 ext4 381488 3 jbd2 93380 1 ext4 mbcache 8193 1 ext4 sr_mod 15049 1 cdrom 39533 1 sr_mod sd_mod 37190 3 crc_t10dif 1209 1 sd_mod pata_acpi 3701 0 ata_generic 3837 0 ata_piix 24409 1 mptspi 16411 2 mptscsih 36702 1 mptspi mptbase 93807 2 mptspi,mptscsih scsi_transport_spi 25703 1 mptspi ttm 89600 0 drm_kms_helper 127731 0 drm 353461 2 ttm,drm_kms_helper i2c_core 29164 3 i2c_piix4,drm_kms_helper,drm dm_mirror 14864 0 dm_region_hash 12181 1 dm_mirror dm_log 9930 2 dm_mirror,dm_region_hash dm_mod 102791 11 dm_mirror,dm_log [root@yinzhengjie ~]#