This commit is contained in:
Ciro Santilli
2018-04-13 08:37:00 +01:00
parent 42e634ffd1
commit 2427a322fc
5 changed files with 67 additions and 0 deletions

View File

@@ -21,6 +21,8 @@ Only the more basic fops can be implemented in debugfs, e.g. mmap is never calle
static struct dentry *dir, *toplevel_file;
static u32 value = 42;
/* This basically re-implents the write operation of debugfs_create_u32,
* it is just an excuse to illustrate a fop. */
static ssize_t write(struct file *filp, const char __user *buf, size_t len, loff_t *off)
{
int ret;