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_move_blocks

Proto:static void locks_move_blocks(struct file_lock *new, struct file_lock *fl)

Type:void

Parameter:

TypeParameterName
struct file_lock *new
struct file_lock *fl
454  If list_empty - tests whether a list is empty*@head: the list to test. Then Return
456  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)
457  list_splice_init - join two lists and reinitialise the emptied list.*@list: the new list to add.*@head: the place to add it in the first list.* The list at @list is reinitialised
458  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.(f, & list of requests with * ->fl_blocker pointing here, fl_blocked_member)
459  The lock, that is blocking us = new
460  spin_unlock( & 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)
Caller
NameDescribe
flock_lock_inodeTry to create a FLOCK lock on filp
posix_lock_inode