-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Miss sample about inode_operations in procfs3.c
#131
Comments
I found the original example including edit: also, the |
Thank @stlaz for the information. Can you submit a pull request for the missing LKM code? |
I looked into this issue a bit and started to update the example from kernel version 2.4. A lot has changed since then, and the way the proc is create was revised multiple times. Back in the days you would pass a our_proc_file = proc_create(PROCFS_NAME, 0644, NULL, &proc_file_fops);
our_proc_file->proc_iops->permission = our_permission; I do not know how save this method is, or whether changing I think in general, section 7 The /proc File System could need some improvements. I find it rather hard to follow. Especially since it tries introduce all the different ways on how to manage the proc. Namely using file operations, inode operations, proc operations, and the seq_file. I i feel that the explanations of the first three methods is pretty mixed up. For example, in the code examples you have
This is followed by example If there is interest I am willing to help with the updating |
In section
Manage /proc file with standard filesystem
, there is some description about inode_operations, but the sampleprocfs3.c
don't contains code about it.The text was updated successfully, but these errors were encountered: