Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Sorting function for lists of fsnotify marks.* Fanotify supports different notification classes (reflected as priority of* notification group). Events shall be passed to notification groups in* decreasing priority order

Proto:int fsnotify_compare_groups(struct fsnotify_group *a, struct fsnotify_group *b)

Type:int

Parameter:

TypeParameterName
struct fsnotify_group *a
struct fsnotify_group *b
457  If a == b Then Return 0
459  If Not a Then Return 1
461  If Not b Then Return -1
463  If priority < priority Then Return 1
465  If priority > priority Then Return -1
467  If a < b Then Return 1
469  Return -1
Caller
NameDescribe
fsnotify_iter_select_report_typesr_info is a multi head priority queue of marks.* Pick a subset of marks from queue heads, all with the* same group and set the report_mask for selected subset.* Returns the report_mask of the selected subset.
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