函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\uuid.c Create Date:2022-07-27 07:17:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:bool uuid_is_valid(const char *uuid)

返回类型:bool

参数:

类型参数名称
const char *uuid
82 i小于The length of a UUID string ("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")* not including trailing NUL.循环
83  如果i恒等于8或i恒等于13或i恒等于18或i恒等于23则
84  如果uuid[i]不等于'-'则返回:false
86  否则如果非isxdigit(uuid[i])则
87  返回:false
91  返回:true
调用者
名称描述
__uuid_parse
kobject_action_args