Skip to content

Commit 8f21c4f

Browse files
committed
fops: sh -x is fun
1 parent 9a4eae5 commit 8f21c4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,6 +3010,14 @@ Sources:
30103010
* link:kernel_module/fops.c[]
30113011
* link:rootfs_overlay/fops.sh[]
30123012

3013+
Then give this a try:
3014+
3015+
....
3016+
sh -x /fops.sh
3017+
....
3018+
3019+
We have put printks on each fop, so this allows you to see which system calls are being made for each command.
3020+
30133021
File operations is the main method of userland driver communication.
30143022

30153023
`struct file_operations` determines what the kernel will do on filesystem system calls of <<pseudo-filesystems>>.

0 commit comments

Comments
 (0)