Difference between revisions of "Kldstat"

From GhostBSD Wiki
Jump to: navigation, search
(Example)
 
(5 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
==Introduction==
 
==Introduction==
  
On this page we will give you an example for already loaded kernel modules.
+
The [https://www.freebsd.org/cgi/man.cgi?query=kldstat&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html kldstat] utility displays the status of any files dynamically linked into the kernel.<br/>
 +
 
 +
The following options are available:
 +
 
 +
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"
 +
|-
 +
! scope="col" style="width: 50px;"|'''Option'''
 +
! scope="col" style="width: 350px;"|'''Description'''
 +
|-
 +
|  -h ||      Display the size field in a human-readable form, using unit  suffixes instead of hex values.
 +
|-
 +
|  -v ||      Be more verbose.
 +
|-
 +
|    -d ||      Show the module specific data (as int, unsigned int and unsigned long)
 +
|-
 +
|    -i ||id;    Display the status of only the file with this ID.
 +
|-
 +
|    -n ||filename;    Display the status of only the file with this filename.
 +
|-
 +
|    -q ||      Only check if module is loaded or compiled into the kernel.
 +
|-
 +
|    -m ||modname;    Display the status of only the module with this modname.
 +
|}
  
 
==Example==
 
==Example==
  
With the command <code>kldstat</code> you will get somethink like this:
+
With the command: <br/>
 +
<code>/u/h/yourusername>kldstat</code> <br/>
 +
without any option will give you something like this:
  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:right;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:right;padding: 10px"  
Line 66: Line 90:
 
|}
 
|}
  
 
+
These kernel modules are already loaded into the kernel.<br/>
 +
The opensolaris kernel module is needed by ZFS. vboxdrv.ko, vboxnetflt.ko and vboxnetadp.ko are added because of the use of [[Guide to install VirtualBox on GhostBSD|VirtualBox]].
  
  
Line 76: Line 101:
 
[[Category:How To]]
 
[[Category:How To]]
 
[[Category:Sysutils]]
 
[[Category:Sysutils]]
 +
[[Category:Kernel]]

Latest revision as of 05:02, 11 March 2020

Welcome to Icon Disti GhostBSD.png Kldstat.
Kernel Competence
Sysctl Kldstat Third-party Kernel Modules
Kernel Modules FreeBSD Ports: Kld Kenv
Compiling a new GhostBSD kernel
Back to the Icon Disti GhostBSD.pngSystem

Introduction[edit]

The kldstat utility displays the status of any files dynamically linked into the kernel.

The following options are available:

Option Description
-h Display the size field in a human-readable form, using unit suffixes instead of hex values.
-v Be more verbose.
-d Show the module specific data (as int, unsigned int and unsigned long)
-i id; Display the status of only the file with this ID.
-n filename; Display the status of only the file with this filename.
-q Only check if module is loaded or compiled into the kernel.
-m modname; Display the status of only the module with this modname.

Example[edit]

With the command:
/u/h/yourusername>kldstat
without any option will give you something like this:

Id Refs Address Size Name
1 64 0xffffffff80200000 2bf6b58 kernel
2 1 0xffffffff82df7000 ed08 aesni.ko
3 1 0xffffffff82e06000 3acdd0 zfs.ko
4 2 0xffffffff831b3000 a430 opensolaris.ko
5 3 0xffffffff831be000 88520 vboxdrv.ko
6 1 0xffffffff83247000 26160 fuse.ko
7 1 0xffffffff8326e000 1e8c8 geom_eli.ko
8 1 0xffffffff83521000 8830 tmpfs.ko
9 1 0xffffffff8352a000 3614 geom_uzip.ko
10 1 0xffffffff8352e000 2e80 xz.ko
11 1 0xffffffff83531000 1a80 fdescfs.ko
12 1 0xffffffff83533000 2968 ums.ko
13 2 0xffffffff83536000 3d620 linux.ko
14 4 0xffffffff83574000 3148 linux_common.ko
15 1 0xffffffff83578000 35490 linux64.ko
16 1 0xffffffff835ae000 5814 cuse.ko
17 1 0xffffffff835b4000 962300 nvidia.ko
18 1 0xffffffff83f17000 4950 linprocfs.ko
19 2 0xffffffff83f1c000 2ce0 vboxnetflt.ko
20 2 0xffffffff83f1f000 9be0 netgraph.ko
21 1 0xffffffff83f29000 16e0 ng_ether.ko
22 1 0xffffffff83f2b000 3f30 vboxnetadp.ko
Back to the Icon Disti GhostBSD.pngHow To

These kernel modules are already loaded into the kernel.
The opensolaris kernel module is needed by ZFS. vboxdrv.ko, vboxnetflt.ko and vboxnetadp.ko are added because of the use of VirtualBox.