diff options
author | Eric Paris <eparis@redhat.com> | 2009-11-12 18:51:32 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2009-11-18 12:43:38 -0500 |
commit | 983683d94706c7fe7cd8dfd5758785aeaa39fc99 (patch) | |
tree | c575b6706dfe16be2fe826d32ed25b316615f63f /fs/notify | |
parent | 46745ed44e123753cceefa91f539f2ef46bde369 (diff) |
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')
-rw-r--r-- | fs/notify/fanotify/Makefile | 2 | ||||
-rw-r--r-- | fs/notify/fanotify/fanotify_user.c | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/fs/notify/fanotify/Makefile b/fs/notify/fanotify/Makefile index e7d39c05b0fe..0999213e7e6e 100644 --- a/fs/notify/fanotify/Makefile +++ b/fs/notify/fanotify/Makefile @@ -1 +1 @@ -obj-$(CONFIG_FANOTIFY) += fanotify.o +obj-$(CONFIG_FANOTIFY) += fanotify.o fanotify_user.o 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; +} |