debugfs.c: extend example with toplevel file, fop and kstrtoull_from_user

This commit is contained in:
Ciro Santilli
2018-04-13 07:56:32 +01:00
parent c1c517a1c7
commit 42e634ffd1
3 changed files with 49 additions and 6 deletions

View File

@@ -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;
}