函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lock_two_nondirectories - take two i_mutexes on non-directory objects* Lock any non-NULL argument that is not a directory.* Zero, one or two objects may be locked by this function.*@inode1: first inode to lock*@inode2: second inode to lock

函数原型:void lock_two_nondirectories(struct inode *inode1, struct inode *inode2)

返回类型:void

参数:

类型参数名称
struct inode *inode1
struct inode *inode2
1026  如果inode1大于inode2swap - swap values of @a and @b*@a: first value*@b: second value(inode1, inode2)
1029  如果inode1且非S_ISDIR(i_mode)则inode_lock(inode1)
1031  如果inode2且非S_ISDIR(i_mode)且inode2不等于inode1inode_lock_nested(inode2, I_MUTEX_NONDIR2)