From f26f66d866ba1a9f3204e6fdfe2b07e67b5492ad Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 21:41:32 +0200 Subject: Adding upstream version 2.8. Signed-off-by: Daniel Baumann --- nbft.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nbft.h (limited to 'nbft.h') diff --git a/nbft.h b/nbft.h new file mode 100644 index 0000000..0e09733 --- /dev/null +++ b/nbft.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include + +#define NBFT_SYSFS_PATH "/sys/firmware/acpi/tables" + +struct nbft_file_entry { + struct list_node node; + struct nbft_info *nbft; +}; + +int read_nbft_files(struct list_head *nbft_list, char *path); +void free_nbfts(struct list_head *nbft_list); + +extern int discover_from_nbft(nvme_root_t r, char *hostnqn_arg, char *hostid_arg, + char *hostnqn_sys, char *hostid_sys, + const char *desc, bool connect, + const struct nvme_fabrics_config *cfg, char *nbft_path, + enum nvme_print_flags flags, bool verbose); -- cgit v1.2.3