函数逻辑报告

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_init_lock

函数原型:void locks_init_lock(struct file_lock *fl)

返回类型:void

参数:

类型参数名称
struct file_lock *fl
401  memset(fl, 0, sizeof(structfile_lock))
402  locks_init_lock_heads(fl)
调用者
名称描述
flock_make_lockFill in a file_lock structure with an appropriate FLOCK lock.
locks_remove_posixThis function is called when the file is being removed* from the task's fd array. POSIX locks belonging to this task* are deleted at this time.