Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:build_locking_range

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

Type:int

Parameter:

TypeParameterName
u8 *buffer
size_tlength
u8lr
646  If length > OPAL_UID_LENGTH Then
647  pr_debug("Can't build locking range. Length OOB\n")
648  Return -ERANGE
651  memcpy(buffer, opaluid[OPAL_LOCKINGRANGE_GLOBAL], OPAL_UID_LENGTH)
653  If lr == 0 Then Return 0
656  buffer[5] = LOCKING_RANGE_NON_GLOBAL
657  buffer[7] = lr
659  Return 0
Caller
NameDescribe
get_active_key
setup_locking_range
erase_locking_range
lock_unlock_locking_range
lock_unlock_locking_range_sum
activate_lsp