]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/uuid.h
bcache in userspace; userspace fsck
[bcachefs-tools-debian] / include / linux / uuid.h
1 /*
2  * UUID/GUID definition
3  *
4  * Copyright (C) 2010, 2016 Intel Corp.
5  *      Huang Ying <ying.huang@intel.com>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License version
9  * 2 as published by the Free Software Foundation;
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  */
16 #ifndef _LINUX_UUID_H_
17 #define _LINUX_UUID_H_
18
19 #include <uapi/linux/uuid.h>
20 #include <string.h>
21
22 static inline int uuid_le_cmp(const uuid_le u1, const uuid_le u2)
23 {
24         return memcmp(&u1, &u2, sizeof(uuid_le));
25 }
26
27 #endif