函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\inotify\inotify_user.c Create Date:2022-07-29 10:49:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:y syscalls

函数原型:static int do_inotify_init(int flags)

返回类型:int

参数:

类型参数名称
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  如果flags按位与Flags for sys_inotify_init1. 按位或IN_NONBLOCK的值的反则返回:负EINVAL
676  group等于inotify_new_group(configurable via /proc/sys/fs/inotify/ )
677  如果是错误则返回:错误
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  如果ret小于0则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  返回:ret
调用者
名称描述
SYSCALL_DEFINE1
sys_inotify_init