mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
kstrto: move doc to README
This commit is contained in:
24
README.adoc
24
README.adoc
@@ -4076,6 +4076,30 @@ The module also shows which handlers are registered for each IRQ, as we have obs
|
||||
|
||||
When in text mode, we can also observe interrupt line 4 with handler `ttyS0` increase continuously as IO goes through the UART.
|
||||
|
||||
=== Linux kernel utility functions
|
||||
|
||||
==== kstrto
|
||||
|
||||
Convert a string to an integer:
|
||||
|
||||
....
|
||||
/kstrto.sh
|
||||
echo $?
|
||||
....
|
||||
|
||||
Outcome: the test passes:
|
||||
|
||||
....
|
||||
0
|
||||
....
|
||||
|
||||
Sources:
|
||||
|
||||
* link:kernel_module/kstrto.c[]
|
||||
* link:rootfs_overlay/kstrto.sh[]
|
||||
|
||||
Bibliography: https://stackoverflow.com/questions/6139493/how-convert-char-to-int-in-linux-kernel/49811658#49811658
|
||||
|
||||
=== Linux kernel tracing
|
||||
|
||||
Good overviews:
|
||||
|
||||
Reference in New Issue
Block a user