Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:locks_show

Proto:static int locks_show(struct seq_file *f, void *v)

Type:int

Parameter:

TypeParameterName
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  If 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 Then Return 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  Return 0