]> git.baikalelectronics.ru Git - kernel.git/commit
uuid: Add inline helpers to import / export UUIDs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Feb 2020 15:37:49 +0000 (17:37 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:46 +0000 (17:01 +0100)
commitb0e779c8f828728bb5af7f25e584b463c63f3718
treef408863a263a368987777c6773f637a073c82489
parentce06ef0128aa9d1640dd6b5de51e25316861e50a
uuid: Add inline helpers to import / export UUIDs

Sometimes we may need to import UUID from or export to the raw buffer,
which is provided outside of kernel and can't be declared as UUID type.
With current API this operation will require an explicit casting
to one of UUID types and length, that is always a constant derived as sizeof
the certain UUID type.

Provide a helpful set of inline helpers to minimize developer's effort
in the cases when raw buffers are involved.

Suggested-by: David Sterba <dsterba@suse.cz>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David Sterba <dsterba@suse.com>
include/linux/uuid.h