Home
last modified time | relevance | path

Searched refs:uuid (Results 1 – 6 of 6) sorted by relevance

/lib/
Duuid.c33 void generate_random_uuid(unsigned char uuid[16]) in generate_random_uuid()
35 get_random_bytes(uuid, 16); in generate_random_uuid()
37 uuid[6] = (uuid[6] & 0x0F) | 0x40; in generate_random_uuid()
39 uuid[8] = (uuid[8] & 0x3F) | 0x80; in generate_random_uuid()
78 bool uuid_is_valid(const char *uuid) in uuid_is_valid() argument
84 if (uuid[i] != '-') in uuid_is_valid()
86 } else if (!isxdigit(uuid[i])) { in uuid_is_valid()
95 static int __uuid_parse(const char *uuid, __u8 b[16], const u8 ei[16]) in __uuid_parse() argument
100 if (!uuid_is_valid(uuid)) in __uuid_parse()
104 int hi = hex_to_bin(uuid[si[i] + 0]); in __uuid_parse()
[all …]
Dtest_uuid.c13 const char *uuid; member
20 .uuid = "c33f4995-3701-450e-9fbf-206a2e98e576",
25 .uuid = "64b4371c-77c1-48f9-8221-29f054fc023b",
30 .uuid = "0cb4ddff-a545-4401-9d06-688af53e7f84",
70 if (guid_parse(data->uuid, &le)) in test_uuid_test()
71 test_uuid_failed("conversion", false, false, data->uuid, NULL); in test_uuid_test()
76 test_uuid_failed("cmp", false, false, data->uuid, buf); in test_uuid_test()
81 if (uuid_parse(data->uuid, &be)) in test_uuid_test()
82 test_uuid_failed("conversion", false, true, data->uuid, NULL); in test_uuid_test()
87 test_uuid_failed("cmp", false, true, data->uuid, buf); in test_uuid_test()
Dtest_printf.c426 uuid(void) in uuid() function
428 const char uuid[16] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, in uuid() local
431 test("00010203-0405-0607-0809-0a0b0c0d0e0f", "%pUb", uuid); in uuid()
432 test("00010203-0405-0607-0809-0A0B0C0D0E0F", "%pUB", uuid); in uuid()
433 test("03020100-0504-0706-0809-0a0b0c0d0e0f", "%pUl", uuid); in uuid()
434 test("03020100-0504-0706-0809-0A0B0C0D0E0F", "%pUL", uuid); in uuid()
610 uuid(); in test_pointer()
DMakefile45 list_sort.o uuid.o iov_iter.o clz_ctz.o \
Dvsprintf.c1641 char uuid[UUID_STRING_LEN + 1]; in uuid_string() local
1642 char *p = uuid; in uuid_string()
1678 return string_nocheck(buf, end, uuid, spec); in uuid_string()
DKconfig.debug1816 tristate "Test functions located in the uuid module at runtime"