iPXE
|
Universally unique IDs. More...
Go to the source code of this file.
Data Structures | |
union | uuid |
A universally unique ID. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static void | uuid_mangle (union uuid *uuid) |
Change UUID endianness. More... | |
const char * | uuid_ntoa (const union uuid *uuid) |
Convert UUID to printable string. More... | |
Universally unique IDs.
Definition in file uuid.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Change UUID endianness.
uuid | UUID |
RFC4122 defines UUIDs as being encoded in network byte order, but leaves some wriggle room for "explicit application or presentation protocol specification to the contrary". PXE, EFI and SMBIOS (versions 2.6 and above) treat the first three fields as being little-endian.
Definition at line 43 of file uuid.h.
References uuid::a, uuid::b, uuid::c, and uuid::canonical.
Referenced by dhcp_create_request(), efi_guid_ntoa(), format_uuid_setting(), smbios_fetch(), and vmbus_probe_channels().
const char* uuid_ntoa | ( | const union uuid * | uuid | ) |
Convert UUID to printable string.
uuid | UUID |
string | UUID in canonical form |
Definition at line 43 of file uuid.c.
References uuid::a, uuid::b, be16_to_cpu, be32_to_cpu, uuid::c, uuid::canonical, uuid::d, uuid::e, and sprintf.
Referenced by efi_guid_ntoa(), format_uuid_setting(), iscsi_fetch_settings(), peerdisc_create(), vmbus_probe_channels(), and vmbus_reset_channels().