Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This is NEVER supposed to be called. Inotify marks should either have been* removed from the idr when the watch was removed or in the* fsnotify_destroy_mark_by_group() call when the inotify instance was being* torn down

Proto:static int idr_callback(int id, void *p, void *data)

Type:int

Parameter:

TypeParameterName
intid
void *p
void *data
157  static bool warned = false
159  If warned Then Return 0
162  warned = true
163  fsn_mark = p
164  i_mark = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(fsn_mark, structinotify_inode_mark, fsn_mark)
166  WARN(1, "inotify closing but id=%d for fsn_mark=%p in group=%p still in idr. Probably leaking memory\n", id, p, data)
175  If fsn_mark Then printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
178  Return 0