Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fanotify_mark_add_to_mask

Proto:static __u32 fanotify_mark_add_to_mask(struct fsnotify_mark *fsn_mark, __u32 mask, unsigned int flags)

Type:__u32

Parameter:

TypeParameterName
struct fsnotify_mark *fsn_mark
__u32mask
unsigned intflags
661  oldmask = -1
663  spin_lock( & Protects inode / mnt pointers, flags, masks )
664  If Not (flags & FAN_MARK_MOUNT is 0x00000010 ) Then
665  oldmask = Mask this mark is for [mark->lock, group->mark_mutex]
666  Mask this mark is for [mark->lock, group->mark_mutex] |= mask
667  Else
668  Events types to ignore [mark->lock, group->mark_mutex] |= mask
669  If flags & FAN_MARK_IGNORED_SURV_MODIFY Then flags [mark->lock] |= FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY
672  spin_unlock( & Protects inode / mnt pointers, flags, masks )
674  Return mask & ~oldmask
Caller
NameDescribe
fanotify_add_mark