函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static struct fsnotify_mark_connector *fsnotify_grab_connector(fsnotify_connp_t *connp)

返回类型:struct fsnotify_mark_connector

参数:

类型参数名称
fsnotify_connp_t *connp
522  idx等于srcu_read_lock - register a new reader for an SRCU-protected structure
523  conn等于srcu_dereference - fetch SRCU-protected pointer for later dereferencing*@p: the pointer to fetch and protect for later dereferencing*@ssp: pointer to the srcu_struct, which is used to check that we* really are in an SRCU read-side critical section.( * connp, & fsnotify_mark_srcu)
524  如果非conn则转到:out
526  加自旋锁
527  如果 Type of object [lock] 恒等于FSNOTIFY_OBJ_TYPE_DETACHED
528  自旋锁解锁
529  注销过期读锁
530  返回:NULL
532  out :
533  注销过期读锁
534  返回:conn
调用者
名称描述
fsnotify_add_mark_listAdd mark into proper place in given list of marks. These marks may be used* for the fsnotify backend to determine which event types should be delivered* to which group and for which inodes. These marks are ordered according to
fsnotify_find_markGiven 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.
fsnotify_destroy_marksDestroy all marks attached to an object via connector