Equivilant of 'lsmod'
Jerry
gesbbb at yahoo.com
Mon Aug 24 20:02:39 UTC 2009
On Mon, 24 Aug 2009 14:33:09 -0500
Dan Nelson <dnelson at allantgroup.com> wrote:
> In the last episode (Aug 24), Jerry said:
> > What is the equivalent of the Linux 'lsmod' command in FreeBSD?
>
> Remember to actually describe what you want, rather than just giving
> the linux command. To list the loaded kernel modules, run kldstat.
I was looking for something like this snippet from a Linux machine and
using lsmod:
Module Size Used by
af_packet 34440 2
ppdev 18568 0
acpi_cpufreq 18448 3
cpufreq_stats 16032 0
cpufreq_powersave 10368 0
cpufreq_ondemand 18320 2
freq_table 14080 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
cpufreq_userspace 14468 0
cpufreq_conservative 17800 0
iptable_filter 11776 0
ip_tables 31720 1 iptable_filter
x_tables 30728 1 ip_tables
ac 15496 0
parport_pc 48296 0
lp 22084 0
parport 51340 3 ppdev,parport_pc,lp
loop 28676 0
nfs 298872 1
lockd 83248 2 nfs
nfs_acl 12416 1 nfs
sunrpc 220808 10 nfs,lockd,nfs_acl
container 13824 0
iTCO_wdt 22480 0
button 18080 0
pcspkr 12160 0
evdev 22144 3
iTCO_vendor_support 12932 1 iTCO_wdt
shpchp 45340 0
pci_hotplug 41776 1 shpchp
ext3 156176 7
jbd 64168 1 ext3
mbcache 18560 1 ext3
sg 48920 0
sr_mod 27300 0
cdrom 48680 1 sr_mod
sd_mod 40448 12
pata_acpi 17024 0
usbhid 42848 0
hid 52160 1 usbhid
ata_piix 31364 10
ata_generic 17156 0
libata 183984 3 pata_acpi,ata_piix,ata_generic
ehci_hcd 49164 0
scsi_mod 185784 4 sg,sr_mod,sd_mod,libata
tg3 131972 0
uhci_hcd 37024 0
usbcore 177200 4 usbhid,ehci_hcd,uhci_hcd
raid10 33536 0
raid456 138272 0
async_xor 13312 1 raid456
async_memcpy 11776 1 raid456
async_tx 17652 3 raid456,async_xor,async_memcpy
xor 14352 2 raid456,async_xor
raid1 33920 5
raid0 16640 0
multipath 18176 0
linear 14592 0
md_mod 95388 11 raid10,raid456,raid1,raid0,multipath,linear
dm_mirror 33408 0
dm_snapshot 27848 0
dm_mod 78200 11 dm_mirror,dm_snapshot
thermal 26912 0
processor 48712 2 acpi_cpufreq,thermal
fan 13960 0
fbcon 53504 0
tileblit 11392 1 fbcon
font 17280 1 fbcon
bitblit 14592 1 fbcon
softcursor 10880 1 bitblit
fuse 63280 1
--
Jerry
gesbbb at yahoo.com
A man was reading The Canterbury Tales one Saturday morning,
when his wife asked "What have you got there?" Replied he,
"Just my cup and Chaucer."
More information about the freebsd-questions
mailing list