diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-31 04:13:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-31 04:13:03 +0000 |
commit | d2082ee94267e4ca59b187c5e37dac03c1d65187 (patch) | |
tree | cd93a882e0726a7df500fedf2263263984406b36 /plugins/ocp/ocp-utils.h | |
parent | Releasing debian version 2.2.1-4. (diff) | |
download | nvme-cli-d2082ee94267e4ca59b187c5e37dac03c1d65187.tar.xz nvme-cli-d2082ee94267e4ca59b187c5e37dac03c1d65187.zip |
Merging upstream version 2.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | plugins/ocp/ocp-utils.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/ocp/ocp-utils.h b/plugins/ocp/ocp-utils.h new file mode 100644 index 0000000..44d0af4 --- /dev/null +++ b/plugins/ocp/ocp-utils.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (c) 2022 Solidigm. + * + * Author: leonardo.da.cunha@solidigm.com + */ + +#include "nvme.h" + +/** + * ocp_get_uuid_index() - Get OCP UUID index + * @dev: nvme device + * @index: integer ponter to here to save the index + * @result: The command completion result from CQE dword0 + * + * Return: Zero if nvme device has UUID list log page, or result of get uuid list otherwise. + */ +int ocp_get_uuid_index(struct nvme_dev *dev, int *index); |