poll sketch

This commit is contained in:
Ciro Santilli
2017-05-24 09:57:49 +01:00
parent 6c028f9398
commit 3eaac95c0f
7 changed files with 126 additions and 3 deletions

View File

@@ -5,6 +5,8 @@ Usage:
/fops.sh
The buffer can be written and read from. If data overflows, data is thrown away.
No, there ain't no official docs:
http://stackoverflow.com/questions/15213932/what-are-the-struct-file-operations-arguments
@@ -25,7 +27,7 @@ Here we use debugfs.
MODULE_LICENSE("GPL");
static struct dentry *dir = 0;
static struct dentry *dir;
static char data[] = {'a', 'b', 'c', 'd'};