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:Clear any marks in a group with given type mask

Proto:void fsnotify_clear_marks_by_group(struct fsnotify_group *group, unsigned int type_mask)

Type:void

Parameter:

TypeParameterName
struct fsnotify_group *group
unsigned inttype_mask
724  LIST_HEAD(to_free)
725  head = to_free
728  If type_mask == FSNOTIFY_OBJ_ALL_TYPES_MASK Then
729  head = all inode marks for this group
730  Go to clear
741  mutex_lock_nested( & protect marks_list , For trivial one-depth nesting of a lock-class, the following* global define can be used. (Subsystems with multiple levels* of nesting should define their own lock-nesting subclasses.))
743  If 1U << Type of object [lock] & type_mask Then list_move - delete from one list and add as another's head*@list: the entry to move*@head: the head that will precede our entry
746  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
748  clear :
749  When 1 cycle
750  mutex_lock_nested( & protect marks_list , For trivial one-depth nesting of a lock-class, the following* global define can be used. (Subsystems with multiple levels* of nesting should define their own lock-nesting subclasses.))
753  Break
755  mark = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.(head, structfsnotify_mark, g_list)
756  fsnotify_get_mark(mark)
757  Mark mark as detached, remove it from group list
758  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
759  Free fsnotify mark
760  fsnotify_put_mark(mark)
Caller
NameDescribe
fsnotify_destroy_groupTrying to get rid of a group. Remove all marks, flush all events and release* the group reference.* Note that another thread calling fsnotify_clear_marks_by_group() may still* hold a ref to the group.