diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-19 10:38:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-19 10:38:18 +0000 |
commit | 678392aa6bef5e30cb1b9452978fd0b2ce56c2ee (patch) | |
tree | 26ac06227a6fe6571157a8860bac80506f00c5d7 /doc/rst/util.rst | |
parent | Releasing debian version 1.7.1-1. (diff) | |
download | libnvme-678392aa6bef5e30cb1b9452978fd0b2ce56c2ee.tar.xz libnvme-678392aa6bef5e30cb1b9452978fd0b2ce56c2ee.zip |
Merging upstream version 1.8.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | doc/rst/util.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/rst/util.rst b/doc/rst/util.rst index f45452e..56df0f6 100644 --- a/doc/rst/util.rst +++ b/doc/rst/util.rst @@ -649,6 +649,23 @@ https://www.rfc-editor.org/rfc/rfc4122#section-4.4 Returns error code if generating of random number fails. +.. c:function:: int nvme_uuid_find (struct nvme_id_uuid_list *uuid_list, const unsigned char uuid[NVME_UUID_LEN]) + + Find UUID position on UUID list + +**Parameters** + +``struct nvme_id_uuid_list *uuid_list`` + UUID list returned by identify UUID + +``const unsigned char uuid[NVME_UUID_LEN]`` + Binary encoded input UUID + +**Return** + +The array position where given UUID is present, or -1 on failure with errno set. + + .. c:function:: bool nvme_ipaddrs_eq (const char *addr1, const char *addr2) Check if 2 IP addresses are equal. |