Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:locks_check_ctx_file_list

Proto:static void locks_check_ctx_file_list(struct file *filp, struct list_head *list, char *list_type)

Type:void

Parameter:

TypeParameterName
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  If fl_file == filp Then pr_warn("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)
Caller
NameDescribe
locks_remove_fileThis function is called on the last close of an open file.