From 8f21c4f0cb0a9bbb70c69394d004de6effbcc61c Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Fri, 29 Jun 2018 10:47:35 +0100 Subject: [PATCH] fops: sh -x is fun --- README.adoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.adoc b/README.adoc index c6597ce..79a91dd 100644 --- a/README.adoc +++ b/README.adoc @@ -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 <>.