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_init_lock

Proto:void locks_init_lock(struct file_lock *fl)

Type:void

Parameter:

TypeParameterName
struct file_lock *fl
401  memset(fl, 0, sizeof(structfile_lock))
402  locks_init_lock_heads(fl)
Caller
NameDescribe
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.