函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\mark.c Create Date:2022-07-29 10:48:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:struct fsnotify_mark *fsnotify_find_mark(fsnotify_connp_t *connp, struct fsnotify_group *group)

返回类型:struct fsnotify_mark

参数:

类型参数名称
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  如果非conn则返回:NULL
707  如果 Group this mark is for. Set on mark creation, stable until last ref * is dropped 恒等于group flags [mark->lock] 按位与FSNOTIFY_MARK_FLAG_ATTACHED
709  fsnotify_get_mark(mark)
710  自旋锁解锁
711  返回:mark
714  自旋锁解锁
715  返回:NULL
调用者
名称描述
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