Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__uuid_parse

Proto:static int __uuid_parse(const char *uuid, __u8 b[16], const u8 ei[16])

Type:int

Parameter:

TypeParameterName
const char *uuid
__u8b
const u8ei
97  static const u8 si[16] = {0, 2, 4, 6, 9, 11, 14, 16, 19, 21, 24, 26, 28, 30, 32, 34}
100  If Not d_is_valid - checks if a UUID string is valid*@uuid: UUID string to check* Description:* It checks if the UUID string is following the format:* xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx* where x is a hex digit.* Return: true if input is valid UUID string. Then Return -EINVAL
103  When i < 16 cycle
104  hi = hex_to_bin(uuid[si[i] + 0])
105  lo = hex_to_bin(uuid[si[i] + 1])
107  b[ei[i]] = hi << 4 | lo
110  Return 0
Caller
NameDescribe
guid_parse
uuid_parse