summaryrefslogtreecommitdiff
path: root/lib/uuid.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-02-24 18:37:49 +0300
committerDavid Sterba <dsterba@suse.com>2020-03-23 19:01:46 +0300
commitd01cd62400b3a42d012069518614d944c35f9c99 (patch)
treef408863a263a368987777c6773f637a073c82489 /lib/uuid.c
parentb3ff8f1d380e65dddd772542aa9bff6c86bf715a (diff)
downloadlinux-d01cd62400b3a42d012069518614d944c35f9c99.tar.xz
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>
Diffstat (limited to 'lib/uuid.c')
0 files changed, 0 insertions, 0 deletions