2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 13:13:57 +08:00
linux-next/fs/notify
Eric Paris 52c923dd07 fanotify: fanotify_init syscall implementation
NAME
	fanotify_init - initialize an fanotify group

SYNOPSIS
	int fanotify_init(unsigned int flags, unsigned int event_f_flags, int priority);

DESCRIPTION
	fanotify_init() initializes a new fanotify instance and returns a file
	descriptor associated with the new fanotify event queue.

	The following values can be OR'd into the flags field:

	FAN_NONBLOCK Set the O_NONBLOCK file status flag on the new open file description.
		Using this flag saves extra calls to fcntl(2) to achieve the same
		result.

	FAN_CLOEXEC Set the close-on-exec (FD_CLOEXEC) flag on the new file descriptor.
		See the description of the O_CLOEXEC flag in open(2) for reasons why
		this may be useful.

	The event_f_flags argument is unused and must be set to 0

	The priority argument is unused and must be set to 0

RETURN VALUE
	On success, this system call return a new file descriptor. On error, -1 is
	returned, and errno is set to indicate the error.

ERRORS
	EINVAL An invalid value was specified in flags.

	EINVAL A non-zero valid was passed in event_f_flags or in priority

	ENFILE The system limit on the total number of file descriptors has been reached.

	ENOMEM Insufficient kernel memory is available.

CONFORMING TO
	These system calls are Linux-specific.

Signed-off-by: Eric Paris <eparis@redhat.com>
2010-07-28 09:58:55 -04:00
..
dnotify fsnotify: take inode->i_lock inside fsnotify_find_mark_entry() 2010-07-28 09:58:54 -04:00
fanotify fanotify: fanotify_init syscall implementation 2010-07-28 09:58:55 -04:00
inotify fsnotify: take inode->i_lock inside fsnotify_find_mark_entry() 2010-07-28 09:58:54 -04:00
fsnotify.c fsnotify: kill FSNOTIFY_EVENT_FILE 2010-07-28 09:58:53 -04:00
fsnotify.h fsnotify: mount point listeners list and global mask 2010-07-28 09:58:52 -04:00
group.c fsnotify: rename mark_entry to just mark 2010-07-28 09:58:53 -04:00
inode_mark.c fsnotify: take inode->i_lock inside fsnotify_find_mark_entry() 2010-07-28 09:58:54 -04:00
Kconfig fanotify: fscking all notification system 2010-07-28 09:58:54 -04:00
Makefile fanotify: fscking all notification system 2010-07-28 09:58:54 -04:00
notification.c fsnotify: kill FSNOTIFY_EVENT_FILE 2010-07-28 09:58:53 -04:00