Kldstat command

On FreeBSD, you can use kldstat command to display the status of any files dynamically linked into the kernel:

  1. # kldstat
  2. Id Refs Address Size Name
  3. 1 6 0xffffffff80200000 17bc6a8 kernel
  4. 2 1 0xffffffff81a11000 56c6 fdescfs.ko
  5. 3 1 0xffffffff81a17000 2ba8 uhid.ko

If you want more detailed info, you can use -v option:

  1. # kldstat -v
  2. Id Refs Address Size Name
  3. 1 6 0xffffffff80200000 17bc6a8 kernel (/boot/kernel/kernel)
  4. Contains modules:
  5. Id Name
  6. 386 if_lo
  7. 398 newreno
  8. 373 elf32
  9. 372 elf64
  10. 374 shell
  11. .....

Reference:
KLDSTAT(8)).