diff options
author | Alexander Motin <mav@FreeBSD.org> | 2014-07-05 03:34:52 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2014-07-05 03:34:52 +0000 |
commit | 43fb3a65e3aebe25328eca1cd5bd6350acab1d34 (patch) | |
tree | 38f868c37f0b3951d20a3023aaa7d4b3a8ca116b /sys/cam/ctl/ctl.h | |
parent | fa3fb62bffe81dcb0adb05240575348e83103738 (diff) | |
download | src-43fb3a65e3aebe25328eca1cd5bd6350acab1d34.tar.gz src-43fb3a65e3aebe25328eca1cd5bd6350acab1d34.zip |
Make options KPI more generic to allow it to be used for ports too,
not only for LUNs.
Notes
Notes:
svn path=/head/; revision=268280
Diffstat (limited to 'sys/cam/ctl/ctl.h')
-rw-r--r-- | sys/cam/ctl/ctl.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl.h b/sys/cam/ctl/ctl.h index 99fadc85a479..71c37ca4d1a4 100644 --- a/sys/cam/ctl/ctl.h +++ b/sys/cam/ctl/ctl.h @@ -186,6 +186,22 @@ void ctl_config_write_done(union ctl_io *io); void ctl_portDB_changed(int portnum); void ctl_init_isc_msg(void); +/* + * KPI to manipulate LUN/port options + */ + +struct ctl_option { + STAILQ_ENTRY(ctl_option) links; + char *name; + char *value; +}; +typedef STAILQ_HEAD(ctl_options, ctl_option) ctl_options_t; + +struct ctl_be_arg; +void ctl_init_opts(ctl_options_t *opts, int num_args, struct ctl_be_arg *args); +void ctl_free_opts(ctl_options_t *opts); +char * ctl_get_opt(ctl_options_t *opts, const char *name); + #endif /* _KERNEL */ #endif /* _CTL_H_ */ |