函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Allocate an empty lock structure.

函数原型:struct file_lock *locks_alloc_lock(void)

返回类型:struct file_lock

参数:

346  fl等于Shortcuts
348  如果fllocks_init_lock_heads(fl)
351  返回:fl
调用者
名称描述
flock_make_lockFill in a file_lock structure with an appropriate FLOCK lock.
lease_allocAllocate a file_lock initialised to this type of lease
flock_lock_inodeTry to create a FLOCK lock on filp
posix_lock_inode
fcntl_getlkReport the first existing lock that would conflict with l.* This implements the F_GETLK command of fcntl().
fcntl_setlkApply the lock described by l to an open file descriptor.* This implements both the F_SETLK and F_SETLKW commands of fcntl().
fcntl_getlk64Report the first existing lock that would conflict with l.* This implements the F_GETLK command of fcntl().
fcntl_setlk64Apply the lock described by l to an open file descriptor.* This implements both the F_SETLK and F_SETLKW commands of fcntl().