-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add list of strings insted of int value. Add logs Signed-off-by: Maryna Malakhova <[email protected]>
- Loading branch information
1 parent
1f808a8
commit 8557de9
Showing
3 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/mnt # | ||
/mnt # ls -la | ||
total 16 | ||
drwxr-xr-x 2 root root 4096 Mar 18 2021 . | ||
drwxr-xr-x 14 root root 4096 Mar 18 2021 .. | ||
-rw-r--r-- 1 root root 5744 Mar 19 2021 bstructmodule.ko | ||
/mnt # | ||
/mnt # | ||
/mnt # dmesg -c | ||
/mnt # | ||
/mnt # lsmod | ||
/mnt # | ||
/mnt # insmod bstructmodule.ko | ||
/mnt # | ||
/mnt # lsmod | ||
bstructmodule 16384 0 - Live 0xbf018000 (O) | ||
/mnt # | ||
/mnt # dmesg | ||
/mnt # | ||
/mnt # cat /sys/kernel/hello/list | ||
/mnt # | ||
/mnt # echo first > /sys/kernel/hello/list | ||
[15507.266994] bstructmodule: store nodes: Added node = first | ||
/mnt # | ||
/mnt # echo second > /sys/kernel/hello/list | ||
[15518.703747] bstructmodule: store nodes: Added node = second | ||
/mnt # | ||
/mnt # cat /sys/kernel/hello/list | ||
second | ||
first | ||
/mnt # | ||
/mnt # echo third > /sys/kernel/hello/list | ||
[15563.359760] bstructmodule: store nodes: Added node = third | ||
/mnt # | ||
/mnt # cat /sys/kernel/hello/list | ||
third | ||
second | ||
first | ||
/mnt # | ||
/mnt # rmmod bstructmodule.ko | ||
[15586.216674] bstructmodule: remove node: third | ||
[15586.221264] bstructmodule: remove node: second | ||
[15586.226007] bstructmodule: remove node: first | ||
[15586.230584] bstructmodule: module exited | ||
/mnt # | ||
/mnt # dmesg | ||
[15507.266994] bstructmodule: store nodes: Added node = first | ||
[15518.703747] bstructmodule: store nodes: Added node = second | ||
[15563.359760] bstructmodule: store nodes: Added node = third | ||
[15586.216674] bstructmodule: remove node: third | ||
[15586.221264] bstructmodule: remove node: second | ||
[15586.226007] bstructmodule: remove node: first | ||
[15586.230584] bstructmodule: module exited | ||
/mnt # | ||
/mnt # lsmod | ||
/mnt # | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
total: 0 errors, 0 warnings, 100 lines checked | ||
|
||
/home/marynam/Maryna/KernelProCamp21/gl-kernel-training-2021/04_basic_struct/bstructmodule.c has no obvious style problems and is ready for submission. | ||
|