Begin work on rust versions of modules
This commit is contained in:
parent
1f2cc50f26
commit
91f8ca7f49
23 changed files with 53 additions and 9 deletions
|
@ -1,31 +0,0 @@
|
|||
## Additionnal informations
|
||||
|
||||
To test character device, your need create the device.
|
||||
|
||||
Step 1: Get major number of your module device
|
||||
|
||||
```bash
|
||||
cat /proc/devices | grep flodev
|
||||
```
|
||||
|
||||
Step 2: Create device (as root)
|
||||
|
||||
```bash
|
||||
mknod /dev/[wanted name] -c <major_number> 0
|
||||
```
|
||||
|
||||
Exemple (as root):
|
||||
|
||||
```bash
|
||||
cat /proc/devices | grep flodev # => 236 flodev
|
||||
mknod /dev/flodev0 c 236 0
|
||||
echo "Salut" >> /dev/flodev0
|
||||
dmesg | tail # =>
|
||||
# flodev - Ouverture du périphérique
|
||||
# flodev - Message reçu: Salut
|
||||
# flodev - Fermeture du périphérique
|
||||
rm /dev/flodev0
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue