函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:locks_check_ctx_file_list

函数原型:static void locks_check_ctx_file_list(struct file *filp, struct list_head *list, char *list_type)

返回类型:void

参数:

类型参数名称
struct file *filp
struct list_head *list
char *list_type
312  inode等于locks_inode(filp)
314  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(fl, list, fl_list)
315  如果fl_file恒等于filp打印警告信息("Leaked %s lock on dev=0x%x:0x%x ino=0x%lx fl_owner=%p fl_flags=0x%x fl_type=0x%x fl_pid=%u\n", list_type, MAJOR(s_dev), MINOR(s_dev), Stat data, not accessed from path walking , fl_owner, fl_flags, fl_type, fl_pid)
调用者
名称描述
locks_remove_fileThis function is called on the last close of an open file.