XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
uuid.h File Reference
#include <linux/string.h>
Include dependency graph for uuid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  guid_t
 
struct  uuid_t
 

Macros

#define UUID_SIZE   16
 
#define GUID_INIT(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)
 
#define UUID_INIT(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)
 
#define UUID_STRING_LEN   36
 

Functions

void generate_random_uuid (unsigned char uuid[16])
 
void generate_random_guid (unsigned char guid[16])
 
void guid_gen (guid_t *u)
 
void uuid_gen (uuid_t *u)
 
bool __must_check uuid_is_valid (const char *uuid)
 
int guid_parse (const char *uuid, guid_t *u)
 
int uuid_parse (const char *uuid, uuid_t *u)
 

Variables

const guid_t guid_null
 
const uuid_t uuid_null
 
const u8 guid_index [16]
 
const u8 uuid_index [16]
 

Macro Definition Documentation

◆ GUID_INIT

#define GUID_INIT (   a,
  b,
  c,
  d0,
  d1,
  d2,
  d3,
  d4,
  d5,
  d6,
  d7 
)
Value:
((guid_t) \
{{ (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> 16) & 0xff, ((a) >> 24) & 0xff, \
(b) & 0xff, ((b) >> 8) & 0xff, \
(c) & 0xff, ((c) >> 8) & 0xff, \
(d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) }})
size_t a
Definition main.cpp:156
size_t b
Definition main.cpp:156
Definition uuid.h:15

◆ UUID_INIT

#define UUID_INIT (   a,
  b,
  c,
  d0,
  d1,
  d2,
  d3,
  d4,
  d5,
  d6,
  d7 
)
Value:
((uuid_t) \
{{ ((a) >> 24) & 0xff, ((a) >> 16) & 0xff, ((a) >> 8) & 0xff, (a) & 0xff, \
((b) >> 8) & 0xff, (b) & 0xff, \
((c) >> 8) & 0xff, (c) & 0xff, \
(d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) }})
Definition uuid.h:19

◆ UUID_SIZE

#define UUID_SIZE   16

◆ UUID_STRING_LEN

#define UUID_STRING_LEN   36

Function Documentation

◆ generate_random_guid()

void generate_random_guid ( unsigned char  guid[16])

◆ generate_random_uuid()

void generate_random_uuid ( unsigned char  uuid[16])

◆ guid_gen()

void guid_gen ( guid_t *  u)
extern

◆ guid_parse()

int guid_parse ( const char *  uuid,
guid_t *  u 
)

◆ uuid_gen()

void uuid_gen ( uuid_t *  u)
extern

◆ uuid_is_valid()

bool __must_check uuid_is_valid ( const char *  uuid)

◆ uuid_parse()

int uuid_parse ( const char *  uuid,
uuid_t *  u 
)

Variable Documentation

◆ guid_index

const u8 guid_index[16]
extern

◆ guid_null

const guid_t guid_null
extern

◆ uuid_index

const u8 uuid_index[16]
extern

◆ uuid_null

const uuid_t uuid_null
extern