• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef _UAPI_LINUX_UUID_H_
7 #define _UAPI_LINUX_UUID_H_
8 #include <linux/types.h>
9 typedef struct {
10 	__u8 b[16];
11 } guid_t;
12 #define GUID_INIT(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)			\
13 ((guid_t)								\
14 {{ (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> 16) & 0xff, ((a) >> 24) & 0xff, \
15    (b) & 0xff, ((b) >> 8) & 0xff,					\
16    (c) & 0xff, ((c) >> 8) & 0xff,					\
17    (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) }})
18 typedef guid_t uuid_le;
19 #define UUID_LE(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)		\
20 	GUID_INIT(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)
21 #define NULL_UUID_LE							\
22 	UUID_LE(0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00,	\
23 	     0x00, 0x00, 0x00, 0x00)
24 #endif
25