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:Get mark reference when we found the mark via lockless traversal of object* list. Mark can be already removed from the list by now and on its way to be* destroyed once SRCU period ends.* Also pin the group so it doesn't disappear under us.

Proto:static bool fsnotify_get_mark_safe(struct fsnotify_mark *mark)

Type:bool

Parameter:

TypeParameterName
struct fsnotify_mark *mark
290  If Not mark Then Return true
293  If _inc_not_zero - increment a refcount unless it is 0*@r: the refcount to increment* Similar to atomic_inc_not_zero(), but will saturate at REFCOUNT_SATURATED* and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the Then
294  spin_lock( & Protects inode / mnt pointers, flags, masks )
299  Return true
301  spin_unlock( & Protects inode / mnt pointers, flags, masks )
302  fsnotify_put_mark(mark)
304  Return false
Caller
NameDescribe
fsnotify_prepare_user_wait