Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Called when a group is being torn down to clean up any outstanding* event notifications.

Proto:void fsnotify_flush_notify(struct fsnotify_group *group)

Type:void

Parameter:

TypeParameterName
struct fsnotify_group *group
181  spin_lock( & protect the notification_list )
182  When Not rn true if the notify queue is empty, false otherwise cycle
183  event = Remove and return the first event from the notification list. It is the* responsibility of the caller to destroy the obtained event
184  spin_unlock( & protect the notification_list )
185  fsnotify_destroy_event(group, event)
186  spin_lock( & protect the notification_list )
188  spin_unlock( & protect the notification_list )
Caller
NameDescribe
fsnotify_destroy_groupTrying 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.