Skip to content

Commit 9b4c198

Browse files
committed

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3687,12 +3687,13 @@ Sources:
36873687

36883688
Bibliography: https://stackoverflow.com/questions/5970595/how-to-create-a-device-node-from-the-init-module-code-of-a-linux-kernel-module/45531867#45531867
36893689

3690-
36913690
=== Pseudo files
36923691

36933692
==== File operations
36943693

3695-
File operations are the main method of userland driver communication. `struct file_operations` determines what the kernel will do on filesystem system calls of <<pseudo-filesystems>>:
3694+
File operations are the main method of userland driver communication. `struct file_operations` determines what the kernel will do on filesystem system calls of <<pseudo-filesystems>>.
3695+
3696+
This example illustrates the most basic system calls: `open`, `read`, `write`, `close` and `lseek`:
36963697

36973698
....
36983699
/fops.sh
@@ -3919,7 +3920,7 @@ This example gets an anonymous inode via <<ioctl>> from a debugfs entry by using
39193920

39203921
Reads to that inode return the sequence: `1`, `10`, `100`, ... `10000000`, `1`, `100`, ...
39213922

3922-
Bibliography: https://stackoverflow.com/questions/4508998/what-is-an-anonymous-inode-in-linux
3923+
Bibliography: https://stackoverflow.com/questions/4508998/what-is-an-anonymous-inode-in-linux/44388030#44388030
39233924

39243925
==== netlink sockets
39253926

0 commit comments

Comments
 (0)