kstrto: move doc to README

This commit is contained in:
Ciro Santilli
2018-07-05 02:01:17 +01:00
parent 6c241279a6
commit 237b27869e
5 changed files with 60 additions and 24 deletions

View File

@@ -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: