Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\sed-opal.c Create Date:2022-07-28 18:10:25
Last Modify:2020-03-17 23:36:33 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:build_locking_user

Proto:static int build_locking_user(u8 *buffer, size_t length, u8 lr)

Type:int

Parameter:

TypeParameterName
u8 *buffer
size_tlength
u8lr
664  If length > OPAL_UID_LENGTH Then
665  pr_debug("Can't build locking range user. Length OOB\n")
666  Return -ERANGE
669  memcpy(buffer, opaluid[OPAL_USER1_UID], OPAL_UID_LENGTH)
671  buffer[7] = lr + 1
673  Return 0
Caller
NameDescribe
start_auth_opal_session