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_start

Proto:static void *locks_start(struct seq_file *f, loff_t *pos)__acquires(&blocked_lock_lock)

Type:void

Parameter:

TypeParameterName
struct seq_file *f
loff_t *pos
2932  iter = private
2934  li_pos = pos + 1
2935  percpu_down_write( & file_rwsem)
2936  spin_lock( & This lock protects the blocked_hash. Generally, if you're accessing it, you* want to be holding this lock.* In addition, it also protects the fl->fl_blocked_requests list, and the* fl->fl_blocker pointer for file_lock structures that are acting as lock)
2937  Return seq_hlist_start_precpu - start an iteration of a percpu hlist array*@head: pointer to percpu array of struct hlist_heads*@cpu: pointer to cpu "cursor"*@pos: start position of sequence* Called at seq_file->op->start().