uuid
__u8 uuid[16];
uuid_t uuid;
fChecksumSeed = calculate_crc32c(0xffffffff, (uint8*)superblock.uuid,
sizeof(superblock.uuid));
uint8 uuid[16];
uint16 checksum = calculate_crc(0xffff, fSuperBlock.uuid,
sizeof(fSuperBlock.uuid));
fChecksumSeed = calculate_crc32c(0xffffffff, (uint8*)fSuperBlock.uuid,
sizeof(fSuperBlock.uuid));
uint8 uuid[16];
return fData.uuid;
uuid_t uuid;
uuid_t uuid;
return fData.info.uuid;
return fData.info.uuid;
return fData.info.uuid;
uint8 uuid[16];
uuid_t uuid;
uuid_generate_random(uuid);
memcpy((uint8*)&fHeader.disk_guid, uuid, sizeof(guid_t));
uuid_t uuid;
uuid_generate_random(uuid);
memcpy((uint8*)&entry.unique_guid, uuid, sizeof(guid_t));
static uint8 uuid[] = {
obj[0].buffer.length = sizeof(uuid);
obj[0].buffer.buffer = uuid;
struct uuid uuid1, uuid2;
struct uuid uu;
THREAD_LOCAL struct uuid uu;
struct uuid uu;
void uuid_pack(const struct uuid *uu, uuid_t ptr)
struct uuid uuid;
uuid.time_low = strtoul(in, NULL, 16);
uuid.time_mid = strtoul(in+9, NULL, 16);
uuid.time_hi_and_version = strtoul(in+14, NULL, 16);
uuid.clock_seq = strtoul(in+19, NULL, 16);
uuid.node[i] = strtoul(buf, NULL, 16);
uuid_pack(&uuid, uu);
static int test_uuid(const char * uuid, int isValid)
parsedOk = uuid_parse(uuid, uuidBits) == 0;
printf("%s is %s", uuid, validStr[isValid]);
void uuid_unpack(const uuid_t in, struct uuid *uu)
struct uuid uuid;
uuid_unpack(uu, &uuid);
uuid.time_low, uuid.time_mid, uuid.time_hi_and_version,
uuid.clock_seq >> 8, uuid.clock_seq & 0xFF,
uuid.node[0], uuid.node[1], uuid.node[2],
uuid.node[3], uuid.node[4], uuid.node[5]);
void uuid_pack(const struct uuid *uu, uuid_t ptr);
void uuid_unpack(const uuid_t in, struct uuid *uu);
struct uuid uuid;
uuid_unpack(uu, &uuid);
high = uuid.time_mid | ((uuid.time_hi_and_version & 0xFFF) << 16);
clock_reg = uuid.time_low | ((uint64_t) high << 32);
struct uuid uuid;
uuid_unpack(uu, &uuid);
return ((uuid.time_hi_and_version >> 12) & 0xF);
struct uuid uuid;
uuid_unpack(uu, &uuid);
var = uuid.clock_seq;
is_valid_uuid(const char *uuid)
if (!uuid[i])
if (uuid[i] != '-')
if (strchr(kHex, uuid[i]) == NULL)
return uuid[36] == '\0';
const char *uuid = NULL;
uuid = optarg;
if (!is_valid_uuid(uuid)) {
if (uuid == NULL) {
if (uuid == NULL) {
sprintf(desc + strlen(desc), "ddb.uuid.image=\"%s\"\n", uuid);