This is a test kernel module
1.- Master Jedi Iván Chavero
2.- DA: Adrian González y Danna Corral
3.- Kylo Ren: Adolfo Escobar
4.- Helado Oscuro: Efraín Domínguez, Julián Lozoya, Ángel Torres, Jesús González
5.- Jar Jar Blinks: Carlos Aguilar, Said Gonzalez, Majo Ramirez
6.- Halcón Milenario: Damián López
On a Fedora system install the Development Tools
and the C Development Tools and Libraries
.
~$ sudo dnf groupinstall -y 'Development Tools' 'C Development Tools and Libraries'
~$ sudo dnf install -y kernel-headers kernel-devel
On Debian based systems:
~$ sudo apt install -y build-essential linux-headers-$(uname -r)
Enter the module directory
~$ cd test_kernel_module/kernel_module
The Makefile defines how to build the module, execute the make
command to compile the module.
kernel_module $ make
Load the module using the insmod
command.
~$ sudo insmod super_module.ko
~$ journalctl -f | grep kernel
The major number is needed for creating the device that is used to interact with the module
~$ journalctl | grep mknod
Remove the module using the rmmod
command
~$ sudo rmmod super_module
This module registers a device major number but it does not create the device. Create the /dev/super_module
device manually.
~$ sudo mknod /dev/super_module c <device_major_number> 0
~$ cat /dev/super_module
Clone this repository
~$ git clone git@github.com:Sistemas-Operativos-I-UACH/test_kernel_module.git
Use a branch other than main
~$ git checkout *yourbranch*
Add a file to next commit
Add the README.md
file to the commit:
~$ git add README.md
Commit a the changes
~$ git commit -m 'commit message'
or to open your favorite editor and add a more extense commit message:
~$ git commit
Push changes to our public github repository
This team is using github.com as the public repository and the Master Jedi repository as the main one.
~$ git push
Get and integrate the latest changes of the current branch from the public git repository
~$ git pull
Get all changes in all the branches
~$ git fetch --all
Once you get the changes you must pull them to integrate them in the branch
~$ git checkout your_branch
~$ git pull
Be happy