Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\inotify\inotify_user.c Create Date:2022-07-28 20:17:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:y syscalls

Proto:static int do_inotify_init(int flags)

Type:int

Parameter:

TypeParameterName
intflags
669  BUILD_BUG_ON - break compile if a condition is true(Flags for sys_inotify_init1. != O_CLOEXEC)
670  BUILD_BUG_ON - break compile if a condition is true(IN_NONBLOCK != O_NONBLOCK)
672  If flags & ~(Flags for sys_inotify_init1. | IN_NONBLOCK) Then Return -EINVAL
676  group = inotify_new_group(configurable via /proc/sys/fs/inotify/ )
677  If IS_ERR(group) Then Return PTR_ERR(group)
680  ret = anon_inode_getfd - creates a new file instance by hooking it up to an* anonymous inode, and a dentry that describe the "class"* of the file*@name: [in] name of the "class" of the new file*@fops: [in] file operations for the new file*@priv: [in] private
682  If ret < 0 Then Trying to get rid of a group. Remove all marks, flush all events and release* the group reference.* Note that another thread calling fsnotify_clear_marks_by_group() may still* hold a ref to the group.
685  Return ret
Caller
NameDescribe
SYSCALL_DEFINE1
sys_inotify_init