Unified UUID/GUID definition
authorHuang Ying <ying.huang@intel.com>
Tue, 18 May 2010 06:35:18 +0000 (14:35 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 20 May 2010 02:40:47 +0000 (22:40 -0400)
commitfab1c23242528771a955c475ef23d99156a71a7f
tree2d882ead41cd984628cbfc18c9a2a0a663539602
parent801eab8118f61255d8e2be35939c572042618742
Unified UUID/GUID definition

There are many different UUID/GUID definitions in kernel, such as that
in EFI, many file systems, some drivers, etc. Every kernel components
need UUID/GUID has its own definition. This patch provides a unified
definition for UUID/GUID.

UUID is defined via typedef. This makes that UUID appears more like a
preliminary type, and makes the data type explicit (comparing with
implicit "u8 uuid[16]").

The binary representation of UUID/GUID can be little-endian (used by
EFI, etc) or big-endian (defined by RFC4122), so both is defined.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
include/linux/uuid.h [new file with mode: 0644]
lib/Makefile
lib/uuid.c [new file with mode: 0644]