https://github.com/scompo/kernel-modules
Kernel modules developmement stuff.
https://github.com/scompo/kernel-modules
Last synced: over 1 year ago
JSON representation
Kernel modules developmement stuff.
- Host: GitHub
- URL: https://github.com/scompo/kernel-modules
- Owner: scompo
- Created: 2016-12-04T18:18:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-05T23:18:33.000Z (over 9 years ago)
- Last Synced: 2025-01-21T00:19:09.374Z (over 1 year ago)
- Language: C
- Homepage: http://www.tldp.org/LDP/lkmpg/2.6/html/lkmpg.html
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kernel-modules
Kernel modules developmement stuff.
It's based on [http://www.tldp.org/LDP/lkmpg/2.6/html/lkmpg.html](http://www.tldp.org/LDP/lkmpg/2.6/html/lkmpg.html).
## Commands
A quick description and use examples of useful commands.
### modinfo
_modinfo_ shows informations about a module.
> Note that kernel 2.6 introduces a new file naming convention:
> kernel modules now have a .ko extension (in place of the old .o extension)
> which easily distinguishes them from conventional object files.
> The reason for this is that they contain an additional .modinfo section
> that's where additional information about the module is kept.
#### Usage
```
$ modinfo hello-4.ko
filename: /home/mscomparin/kernel-modules/hello-4.ko
description: A sample driver
author: Mauro Scomparin
license: GPL
srcversion: CB6A81B2EACBE20AE4800CF
depends:
vermagic: 4.8.0-28-generic SMP mod_unload modversions
```
### insmod
_insmod_ installs the specified module in the system.
This command should be run as root.
#### Usage
```
# insmod hello-4.ko
```
### rmmod
_rmmod_ removes the specified module from the system.
This command should be run as root.
#### Usage
```
# rmmod hello-4.ko
```
### dmesg
_dmesg_ writes system log messages to the console.
#### Usage
```
$ dmesg | grep "my-module"
a lot of stuff!
```