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_remove_from_mask

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

Type:__u32

Parameter:

TypeParameterName
struct fsnotify_mark *fsn_mark
__u32mask
unsigned intflags
int *destroy
589  oldmask = 0
591  spin_lock( & Protects inode / mnt pointers, flags, masks )
592  If Not (flags & FAN_MARK_MOUNT is 0x00000010 ) Then
593  oldmask = Mask this mark is for [mark->lock, group->mark_mutex]
594  Mask this mark is for [mark->lock, group->mark_mutex] &= ~mask
595  Else
596  Events types to ignore [mark->lock, group->mark_mutex] &= ~mask
598  destroy = Not ( Mask this mark is for [mark->lock, group->mark_mutex] | Events types to ignore [mark->lock, group->mark_mutex] )
599  spin_unlock( & Protects inode / mnt pointers, flags, masks )
601  Return mask & oldmask
Caller
NameDescribe
fanotify_remove_mark