mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
kernel module: fix fops... and move its documentation into README
Sometimes I wonder if anyone has ever run this tutorial, otherwise how can such basic bugs persist for so long? test_all.sh: crete
This commit is contained in:
@@ -59,7 +59,8 @@ static int myinit(void)
|
||||
}
|
||||
|
||||
/* Created on the toplevel of the debugfs mount,
|
||||
* and with explicit fops instead of a fixed integer value. */
|
||||
* and with explicit fops instead of a fixed integer value.
|
||||
*/
|
||||
toplevel_file = debugfs_create_file(
|
||||
"lkmc_debugfs_file", S_IWUSR, NULL, NULL, &fops);
|
||||
if (!toplevel_file) {
|
||||
|
||||
Reference in New Issue
Block a user