]> git.feebdaed.xyz Git - linuxyz.git/commitdiff
add diagram
authorseantywork <seantywork@gmail.com>
Fri, 7 Nov 2025 03:51:37 +0000 (03:51 +0000)
committerseantywork <seantywork@gmail.com>
Fri, 7 Nov 2025 03:51:37 +0000 (03:51 +0000)
kchr-store/2025-1105.xyz.md

index f4002466cdda91acfc1c58f650f2a1b04fdb726a..803335b717da3b596e63f7991f73f09170aef87e 100644 (file)
@@ -37,6 +37,33 @@ static struct file_operations fops = {
 };
 ```
 
+# design
+
+```shell
+
+
++------------------------+
+| user       | user      |
+| main       | thread    |
+|  writes    |  read     |
+|  message   |  message  |
++-----|------------^-----+
+|     |            |     |
+|     V            |     |
+| kernel file_operations |                 
+|       .llseek          |
+|       .read            |
+|       .write           |
+|       .open            |
+|       .release         |
+|                        |
++------------------------+
+
+
+```
+
+
+
 # build kernel module and user prog
 
 ```shell