函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:locks_show

函数原型:static int locks_show(struct seq_file *f, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *f
void *v
2874  iter等于private
2876  proc_pidns等于s_fs_info
2878  fl等于hlist_entry(v, structfile_lock, fl_link)
2880  如果locks_translate_pid - translate a file_lock's fl_pid number into a namespace*@fl: The file_lock who's fl_pid should be translated*@ns: The namespace into which the pid should be translated* Used to tranlate a fl_pid into a namespace virtual pid number恒等于0则返回:0
2883  lock_get_status(f, fl, li_pos, "")
2885  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.(bfl, & list of requests with * ->fl_blocker pointing here, fl_blocked_member)
2886  lock_get_status(f, bfl, li_pos, " ->")
2888  返回:0