Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Free fsnotify mark

Proto:void fsnotify_free_mark(struct fsnotify_mark *mark)

Type:void

Parameter:

TypeParameterName
struct fsnotify_mark *mark
406  group = Group this mark is for. Set on mark creation, stable until last ref * is dropped
408  spin_lock( & Protects inode / mnt pointers, flags, masks )
410  If Not ( flags [mark->lock] & FSNOTIFY_MARK_FLAG_ALIVE) Then
411  spin_unlock( & Protects inode / mnt pointers, flags, masks )
412  Return
414  flags [mark->lock] &= ~FSNOTIFY_MARK_FLAG_ALIVE
415  spin_unlock( & Protects inode / mnt pointers, flags, masks )
422  If called when a mark is being destroyed for some reason. The group Then called when a mark is being destroyed for some reason. The group(mark, group)
Caller
NameDescribe
untag_chunk
create_chunkCall with group->mark_mutex held, releases it
fsnotify_destroy_mark
fsnotify_clear_marks_by_groupClear any marks in a group with given type mask
dnotify_flushCalled every time a file is closed. Looks first for a dnotify mark on the* inode. If one is found run all of the ->dn structures attached to that* mark for one relevant to this process closing the file and remove that* dnotify_struct
fcntl_dirnotifyWhen a process calls fcntl to attach a dnotify watch to a directory it ends* up here. Allocate both a mark for fsnotify to add and a dnotify_struct to be* attached to the fsnotify_mark.
fanotify_remove_mark