listing all modules compiled into a kernel instance

Bruce Cran bruce at cran.org.uk
Tue Mar 1 12:24:48 UTC 2011


On Tue, 1 Mar 2011 06:20:29 -0500
Maxim Khitrov <max at mxcrypt.com> wrote:

> kldstat provides information about components that were loaded
> dynamically. If your kernel was built with INCLUDE_CONFIG_FILE option
> (enabled by default in GENERIC), then you can see the static
> components using:

It seems it can also list static components:

> kldstat -v
Id Refs Address    Size     Name
 1    1 0xc0400000 4c51b4   kernel (/boot/kernel/kernel)
        Contains modules:
                Id Name
                95 if_lo
                86 elf32
                87 shell
                96 igmp
                97 mld
                90 sysvmsg
                91 sysvsem
		[...]

-- 
Bruce Cran


More information about the freebsd-hackers mailing list