函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:inotify_idr_find_locked

函数原型:static struct inotify_inode_mark *inotify_idr_find_locked(struct fsnotify_group *group, int wd)

返回类型:struct inotify_inode_mark

参数:

类型参数名称
struct fsnotify_group *group
intwd
380  idr等于idr
381  idr_lock等于idr_lock
384  assert_spin_locked(idr_lock)
386  i_mark等于dr_find() - Return pointer for given ID
387  如果i_mark
388  fsn_mark等于fsn_mark
390  fsnotify_get_mark(fsn_mark)
392  BUG_ON(_read - get a refcount's value*@r: the refcount* Return: the refcount's value < 2)
395  返回:i_mark
调用者
名称描述
inotify_idr_find
inotify_remove_from_idrRemove the mark from the idr (if present) and drop the reference* on the mark because it was in the idr.