Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Given a list of marks, find the mark associated with given group. If found* take a reference to that mark and return it, else return NULL.

Proto:struct fsnotify_mark *fsnotify_find_mark(fsnotify_connp_t *connp, struct fsnotify_group *group)

Type:struct fsnotify_mark

Parameter:

TypeParameterName
fsnotify_connp_t *connp
struct fsnotify_group *group
702  conn = Get mark connector, make sure it is alive and return with its lock held.* This is for users that get connector pointer from inode or mount. Users that* hold reference to a mark on the list may directly lock connector->lock as
703  If Not conn Then Return NULL
707  If Group this mark is for. Set on mark creation, stable until last ref * is dropped == group && flags [mark->lock] & FSNOTIFY_MARK_FLAG_ATTACHED Then
709  fsnotify_get_mark(mark)
710  spin_unlock( & lock)
711  Return mark
714  spin_unlock( & lock)
715  Return NULL
Caller
NameDescribe
audit_find_parentFind and return the audit_parent on the given inode. If found a reference* is taken on this parent.
tag_chunkhe first tagged inode becomes root of tree
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.
inotify_update_existing_watch
fanotify_remove_mark
fanotify_add_mark