summaryrefslogtreecommitdiffstats
path: root/plugins/solidigm/solidigm-util.c
blob: 0171a494be608a0f183c00be9ef0ab42c5915d17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (c) 2023 Solidigm.
 *
 * Author: leonardo.da.cunha@solidigm.com
 */

#include "plugins/ocp/ocp-utils.h"
#include "solidigm-util.h"

__u8 solidigm_get_vu_uuid_index(struct nvme_dev *dev)
{
	int ocp_uuid_index = 0;

	if (ocp_get_uuid_index(dev, &ocp_uuid_index) == 0)
		if (ocp_uuid_index == 2)
			return 1;

	return 0;
}