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:Mark mark as detached, remove it from group list

Proto:void fsnotify_detach_mark(struct fsnotify_mark *mark)

Type:void

Parameter:

TypeParameterName
struct fsnotify_mark *mark
373  group = Group this mark is for. Set on mark creation, stable until last ref * is dropped
375  WARN_ON_ONCE(!mutex_is_locked( & protect marks_list ))
376  WARN_ON_ONCE(!srcu_read_lock_held - might we be in SRCU read-side critical section?*@ssp: The srcu_struct structure to check* If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU* read-side critical section && _read - get a refcount's value*@r: the refcount* Return: the refcount's value < 1 + !!( flags [mark->lock] & FSNOTIFY_MARK_FLAG_ATTACHED))
380  spin_lock( & Protects inode / mnt pointers, flags, masks )
382  If Not ( flags [mark->lock] & FSNOTIFY_MARK_FLAG_ATTACHED) Then
383  spin_unlock( & Protects inode / mnt pointers, flags, masks )
384  Return
386  flags [mark->lock] &= ~FSNOTIFY_MARK_FLAG_ATTACHED
387  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
388  spin_unlock( & Protects inode / mnt pointers, flags, masks )
390  atomic_dec( & 1 for each mark and 1 for not being * past the point of no return when freeing * a group )
393  fsnotify_put_mark(mark)
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