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: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

Proto:static struct fsnotify_mark_connector *fsnotify_grab_connector(fsnotify_connp_t *connp)

Type:struct fsnotify_mark_connector

Parameter:

TypeParameterName
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  If Not conn Then Go to out
526  spin_lock( & lock)
527  If Type of object [lock] == FSNOTIFY_OBJ_TYPE_DETACHED Then
528  spin_unlock( & lock)
529  srcu_read_unlock - unregister a old reader from an SRCU-protected structure.*@ssp: srcu_struct in which to unregister the old reader.*@idx: return value from corresponding srcu_read_lock().* Exit an SRCU read-side critical section.
530  Return NULL
532  out :
533  srcu_read_unlock - unregister a old reader from an SRCU-protected structure.*@ssp: srcu_struct in which to unregister the old reader.*@idx: return value from corresponding srcu_read_lock().* Exit an SRCU read-side critical section.
534  Return conn
Caller
NameDescribe
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