fops: sh -x is fun

This commit is contained in:
Ciro Santilli
2018-06-29 10:47:35 +01:00
parent 9a4eae50c8
commit 8f21c4f0cb

View File

@@ -3010,6 +3010,14 @@ Sources:
* link:kernel_module/fops.c[]
* link:rootfs_overlay/fops.sh[]
Then give this a try:
....
sh -x /fops.sh
....
We have put printks on each fop, so this allows you to see which system calls are being made for each command.
File operations is the main method of userland driver communication.
`struct file_operations` determines what the kernel will do on filesystem system calls of <<pseudo-filesystems>>.