Difference between revisions of "Kldstat"
From GhostBSD Wiki
(→Example) |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
==Introduction== | ==Introduction== | ||
− | + | 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> | + | 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 Kldstat. |
Kernel Competence | ||
---|---|---|
Sysctl | Kldstat | Third-party Kernel Modules |
Kernel Modules | FreeBSD Ports: Kld | Kenv |
Compiling a new GhostBSD kernel | ||
Back to the System |
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:
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.