Difference between revisions of "Kernel Competence"
(→Modules) |
(→Modules) |
||
Line 16: | Line 16: | ||
Third-party modules are located in ''/boot/modules''. Not all modules are loaded by default. If needed, one can load them later.<br/> | Third-party modules are located in ''/boot/modules''. Not all modules are loaded by default. If needed, one can load them later.<br/> | ||
All files elsewhere on the system or in the [https://www.freebsd.org/ports/kld.html ports] called the ''userland'', meaning they are intended for users even if they use kernel facilities. | All files elsewhere on the system or in the [https://www.freebsd.org/ports/kld.html ports] called the ''userland'', meaning they are intended for users even if they use kernel facilities. | ||
+ | |||
+ | ===Loading and Unloading Modules on a running System=== | ||
+ | |||
+ | Loading and unloading kernel modules is done with [https://www.freebsd.org/cgi/man.cgi?query=kldload&apropos=0&sektion=8&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html kldload(8)] and [https://www.freebsd.org/cgi/man.cgi?query=kldunload&apropos=0&sektion=8&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html kldunload(8)]. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===Loading modules at Boot=== | ||
+ | Normally you want to load a kernel module automatically at boot . So you have to use ''/boot/loader.conf''. | ||
==Kernel Tools== | ==Kernel Tools== |
Revision as of 05:27, 26 February 2020
Welcome to Kernel Competence. |
Kernel Competence | ||
---|---|---|
Sysctl | Kldstat | Third-party Kernel Modules |
Kernel Modules | FreeBSD Ports: Kld | Kenv |
Compiling a new GhostBSD kernel | ||
Back to the System |
Contents
Introduction
On this page and its sub-pages we will collect all information connect to the kernel, like managing kernel modules, retrieve information from the kernel and use special commands.
Kernel
The kernel is the interface between the hardware and the software. The kernel lets the software write data to disk drives and to network. When a program needs memory, the kernel handles the access to the physical memory chip. When a program requests CPU time, the kernel organizes it. The kernel provides all the software interfaces that a program needs, in order to access hardware resources.
To follow the UNIX philosophy: to minimalist, modular software development the Ghost/FreeBSD kernel is set together out of modules. If a hardware requires a special piece of software, a appropriate module has to be loaded in to the working memory. Not needed modules stay on the hard disc or the software repositories.
Modules
The kernel and any modules included with GhostBSD are files in the directory /boot/kernel.
Third-party modules are located in /boot/modules. Not all modules are loaded by default. If needed, one can load them later.
All files elsewhere on the system or in the ports called the userland, meaning they are intended for users even if they use kernel facilities.
Loading and Unloading Modules on a running System
Loading and unloading kernel modules is done with kldload(8) and kldunload(8).
Loading modules at Boot
Normally you want to load a kernel module automatically at boot . So you have to use /boot/loader.conf.