summaryrefslogtreecommitdiffstats
path: root/sbin/nvmecontrol/nvmecontrol.h
diff options
context:
space:
mode:
authorjimharris <jimharris@FreeBSD.org>2013-06-26 23:11:20 +0000
committerjimharris <jimharris@FreeBSD.org>2013-06-26 23:11:20 +0000
commit57728d033757510c81668f7054bc1ccc5945933e (patch)
tree00bbcb9f49d7b842ba297eb80c53dfdd86562f59 /sbin/nvmecontrol/nvmecontrol.h
parent80f07df07fecb98013650d346f36fba697638bc9 (diff)
downloadFreeBSD-src-57728d033757510c81668f7054bc1ccc5945933e.zip
FreeBSD-src-57728d033757510c81668f7054bc1ccc5945933e.tar.gz
Add an nvme_function structure array, defining the name, C function and
usage message for each nvmecontrol command. This helps reduce some code clutter both now and for future commits which will add logpage and firmware support to nvmecontrol(8). Also move helper function prototypes to the end of the header file, after the per-command functions. Sponsored by: Intel MFC after: 3 days
Diffstat (limited to 'sbin/nvmecontrol/nvmecontrol.h')
-rw-r--r--sbin/nvmecontrol/nvmecontrol.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/nvmecontrol/nvmecontrol.h b/sbin/nvmecontrol/nvmecontrol.h
index 74430f9..ec61e95 100644
--- a/sbin/nvmecontrol/nvmecontrol.h
+++ b/sbin/nvmecontrol/nvmecontrol.h
@@ -46,14 +46,14 @@
#define RESET_USAGE \
" nvmecontrol reset <controller id>\n"
-int open_dev(const char *str, int *fd, int show_error, int exit_on_error);
-void read_controller_data(int fd, struct nvme_controller_data *cdata);
-void read_namespace_data(int fd, int nsid, struct nvme_namespace_data *nsdata);
-
void devlist(int argc, char *argv[]);
void identify(int argc, char *argv[]);
void perftest(int argc, char *argv[]);
void reset(int argc, char *argv[]);
+int open_dev(const char *str, int *fd, int show_error, int exit_on_error);
+void read_controller_data(int fd, struct nvme_controller_data *cdata);
+void read_namespace_data(int fd, int nsid, struct nvme_namespace_data *nsdata);
+
#endif
OpenPOWER on IntegriCloud