函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Create a new fsnotify_group and hold a reference for the group returned.

函数原型:struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)

返回类型:struct fsnotify_group

参数:

类型参数名称
const struct fsnotify_ops *ops
120  group等于分配内存并置零
121  如果非group则返回:错误号
125  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
126  atomic_set( & 1 for each mark and 1 for not being * past the point of no return when freeing * a group , 0)
127  atomic_set( & Number of tasks waiting for user * response , 0)
129  spin_lock_init( & protect the notification_list )
130  初始化链表头
131  init_waitqueue_head( & read() on the notification file blocks on this waitq )
132  maximum events allowed on the list 等于UINT_MAX
134  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & protect marks_list )
135  初始化链表头
137  how this group handles things 等于ops
139  返回:group
调用者
名称描述
audit_watch_init
audit_fsnotify_init
audit_tree_init
dnotify_init
inotify_new_group
SYSCALL_DEFINE2anotify syscalls