函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:locks_move_blocks

函数原型:static void locks_move_blocks(struct file_lock *new, struct file_lock *fl)

返回类型:void

参数:

类型参数名称
struct file_lock *new
struct file_lock *fl
454  如果链表为空则返回
456  加自旋锁
457  加入二个链表项并重新初始化
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  自旋锁解锁
调用者
名称描述
flock_lock_inodeTry to create a FLOCK lock on filp
posix_lock_inode