1#ifndef __VSF_LINUX_UUID_H__
2#define __VSF_LINUX_UUID_H__
14#define UUID_INIT(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) \
16 ((a) >> 24) & 0xff, ((a) >> 16) & 0xff, ((a) >> 8) & 0xff, (a) & 0xff, \
17 ((b) >> 8) & 0xff, (b) & 0xff, \
18 ((c) >> 8) & 0xff, (c) & 0xff, \
19 (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) \
22#define UUID_STRING_LEN 36
28#define GUID_INIT(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) \
30 (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> 16) & 0xff, ((a) >> 24) & 0xff, \
31 (b) & 0xff, ((b) >> 8) & 0xff, \
32 (c) & 0xff, ((c) >> 8) & 0xff, \
33 (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7), \
39static inline bool guid_equal(
const guid_t *u1,
const guid_t *u2)
44static inline void guid_copy(
guid_t *dst,
const guid_t *src)
49static inline void import_guid(
guid_t *dst,
const __u8 *src)
54static inline void export_guid(
__u8 *dst,
const guid_t *src)
59static inline bool guid_is_null(
const guid_t *guid)
64static inline bool uuid_equal(
const uuid_t *u1,
const uuid_t *u2)
69static inline void uuid_copy(
uuid_t *dst,
const uuid_t *src)
74static inline void import_uuid(
uuid_t *dst,
const __u8 *src)
79static inline void export_uuid(
__u8 *dst,
const uuid_t *src)
84static inline bool uuid_is_null(
const uuid_t *uuid)
uint8_t __u8
Definition types.h:51
void * memcpy(void *dest, const void *src, size_t n)
int memcmp(const void *str1, const void *str2, size_t n)
#define UUID_SIZE
Definition uuid.h:10
const guid_t guid_null
Definition vsf_linux_core.c:716
const uuid_t uuid_null
Definition vsf_linux_core.c:717