函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\mark.c Create Date:2022-07-29 10:48:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static bool fsnotify_get_mark_safe(struct fsnotify_mark *mark)

返回类型:bool

参数:

类型参数名称
struct fsnotify_mark *mark
290  如果非mark则返回:true
293  如果_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
294  加自旋锁
299  返回:true
301  自旋锁解锁
302  fsnotify_put_mark(mark)
304  返回:false
调用者
名称描述
fsnotify_prepare_user_wait