Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:inotify_idr_find_locked

Proto:static struct inotify_inode_mark *inotify_idr_find_locked(struct fsnotify_group *group, int wd)

Type:struct inotify_inode_mark

Parameter:

TypeParameterName
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  If i_mark Then
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  Return i_mark
Caller
NameDescribe
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.