misc commands

This commit is contained in:
Andriy Petrov 2024-04-17 12:13:15 +02:00
parent 859ca1d5a2
commit 298edf8587

View File

@ -117,28 +117,24 @@ In order for module to use any externally declared symbol module must:
2. Add another entry to the `__versions` section 2. Add another entry to the `__versions` section
# Misc # Misc commands
## Module loading
* Module loading
```bash ```bash
insmod module_name.ko insmod module_name.ko
``` ```
## List loaded modules * List loaded modules
```bash ```bash
lsmod lsmod
``` ```
## Logs * Logs
```bash ```bash
dmesg | grep insmod dmesg | grep insmod
``` ```
## Module unloading * Module unloading
```bash ```bash
rmmod MODULE_NAME # from .gnu.linkonce.this_module section rmmod MODULE_NAME # from .gnu.linkonce.this_module section
``` ```