Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-28 20:25:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:flock_translate_cmd

Proto:static inline int flock_translate_cmd(int cmd)

Type:int

Parameter:

TypeParameterName
intcmd
464  If cmd & LOCK_MAND Then Return cmd & (LOCK_MAND | LOCK_RW)
467  Case cmd == LOCK_SH
468  Return F_RDLCK
469  Case cmd == LOCK_EX
470  Return F_WRLCK
471  Case cmd == LOCK_UN
472  Return F_UNLCK
474  Return -EINVAL
Caller
NameDescribe
flock_make_lockFill in a file_lock structure with an appropriate FLOCK lock.