函数逻辑报告

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

函数名称: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.

函数原型:void fsnotify_destroy_group(struct fsnotify_group *group)

返回类型:void

参数:

类型参数名称
struct fsnotify_group *group
57  Stop queueing new events for this group. Once this function returns* fsnotify_add_event() will not add any new events to the group's queue.
60  Clear any marks in a group with given type mask
67  wait_event - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the*@condition evaluates to true( read() on the notification file blocks on this waitq , !atomic_read( & Number of tasks waiting for user * response ))
75  Wait for all marks queued for destruction to be actually destroyed
83  Called when a group is being torn down to clean up any outstanding* event notifications.
89  如果 Event we queue when the * notification list is too * full free_event( Event we queue when the * notification list is too * full )
92  Drop a reference to a group. Free it if it's through.
调用者
名称描述
inotify_release
inotify_new_group
do_inotify_inity syscalls
fanotify_release
SYSCALL_DEFINE2anotify syscalls