diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-17 21:24:25 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:58:55 -0400 |
commit | 11637e4b7dc098e9a863f0a619d55ebc60f5949e (patch) | |
tree | a32682575f35dfb2bf5dc0012e488b939e56d388 /fs/notify/fanotify/fanotify_user.c | |
parent | 9dced01a0939f3e952eca8c21427ceec1f473dcf (diff) | |
download | lwn-11637e4b7dc098e9a863f0a619d55ebc60f5949e.tar.gz lwn-11637e4b7dc098e9a863f0a619d55ebc60f5949e.zip |
fanotify: fanotify_init syscall declaration
This patch defines a new syscall fanotify_init() of the form:
int sys_fanotify_init(unsigned int flags, unsigned int event_f_flags,
unsigned int priority)
This syscall is used to create and fanotify group. This is very similar to
the inotify_init() syscall.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/fanotify/fanotify_user.c')
-rw-r--r-- | fs/notify/fanotify/fanotify_user.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c new file mode 100644 index 000000000000..cf176fc7086b --- /dev/null +++ b/fs/notify/fanotify/fanotify_user.c @@ -0,0 +1,13 @@ +#include <linux/fcntl.h> +#include <linux/fs.h> +#include <linux/fsnotify_backend.h> +#include <linux/security.h> +#include <linux/syscalls.h> + +#include "fanotify.h" + +SYSCALL_DEFINE3(fanotify_init, unsigned int, flags, unsigned int, event_f_flags, + unsigned int, priority) +{ + return -ENOSYS; +} |