1
0
mirror of https://github.com/orhun/kmon synced 2024-07-08 20:06:03 +00:00

doc: Adding reload command to docs (help text, man page and README.md)

This commit is contained in:
Thomas Piekarski 2020-04-13 13:59:21 +02:00
parent cd1af0b47d
commit c766dd7fd1
3 changed files with 18 additions and 1 deletions

View File

@ -86,6 +86,7 @@ kmon is written in [Rust](https://www.rust-lang.org/) and uses [tui-rs](https://
- [Searching a module](#searching-a-module)
- [Loading a module](#loading-a-module)
- [Unloading a module](#unloading-a-module)
- [Reloading a module](#reloading-a-module)
- [Blacklisting a module](#blacklisting-a-module)
- [Clearing the ring buffer](#clearing-the-ring-buffer)
- [Copy & Paste](#copy--paste)
@ -256,6 +257,7 @@ FLAGS:
| `[/], s, enter` | Search a kernel module |
| `[+], i, insert` | Load a kernel module |
| `[-], u, backspace` | Unload the kernel module |
| `r` | Reload the kernel module |
| `[x], b, delete` | Blacklist the kernel module |
| `y/n` | Execute/cancel the command |
| `c/v` | Copy/paste |
@ -336,6 +338,18 @@ The command that used for removing a module:
modprobe -r <module_name>
```
### Reloading a module
Use `r` key to reload the selected module.
![Reloading a module](https://dummyimage.com/900x497/000/dddddd&text=Placeholder+for+reloading+modules)
The command that used for removing a module:
```
modprobe -r <module_name> && modprobe <module_name>
```
### Blacklisting a module
[Blacklisting](https://wiki.archlinux.org/index.php/Kernel_module#Blacklisting) is a mechanism to prevent the kernel module from loading. To blacklist the selected module, use one of the `x, b, delete` keys and confirm the execution.

View File

@ -78,6 +78,9 @@ Load a kernel module
.B [-], u, backspace
Unload the kernel module
.TP
.B r
Reload the kernel module
.TP
.B [x], b, delete
Blacklist the kernel module
.TP

View File

@ -25,7 +25,7 @@ pub const KEY_BINDINGS: &[(&str, &str)] = &[
("/, s, enter", "search a kernel module"),
("+, i, insert", "load a kernel module"),
("-, u, backspace", "unload the kernel module"),
("r", "reload a kernel module"),
("r", "reload the kernel module"),
("x, b, delete", "blacklist the kernel module"),
("y/n", "execute/cancel the command"),
("c/v", "copy/paste"),