函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int idr_callback(int id, void *p, void *data)

返回类型:int

参数:

类型参数名称
intid
void *p
void *data
157  static bool warned = false
159  如果warned则返回: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  如果fsn_markprintk - 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  返回:0