mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
debugfs.c: extend example with toplevel file, fop and kstrtoull_from_user
This commit is contained in:
@@ -14,6 +14,9 @@ Hello world module.
|
||||
static int myinit(void)
|
||||
{
|
||||
pr_info("hello init\n");
|
||||
/* 0 for success, any negative value means failure,
|
||||
* E* consts if you want to specify failure cause.
|
||||
* https://www.linux.com/learn/kernel-newbie-corner-loadable-kernel-modules-coming-and-going */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user