sg_get_config --version (return code: 0)
sg_get_config: version: 0.41 20160131
sg_get_config --help (return code: 0)
Usage: sg_get_config [--brief] [--current] [--help] [--hex] [--inner-hex]
[--list] [--raw] [--readonly] [--rt=RT]
[--starting=FC] [--verbose] [--version] DEVICE
where:
--brief|-b only give feature names of DEVICE (don't decode)
--current|-c equivalent to '--rt=1' (show current)
--help|-h print usage message then exit
--hex|-H output response in hex
--inner-hex|-i decode to feature name, then output features in hex
--list|-l list all known features + profiles (ignore DEVICE)
--raw|-R output in binary (to stdout)
--readonly|-q open DEVICE read-only (def: open it read-write)
--rt=RT|-r RT default value is 0
0 -> all feature descriptors (regardless of currency)
1 -> all current feature descriptors
2 -> only feature descriptor matching 'starting'
--starting=FC|-s FC starting from feature code (FC) value
--verbose|-v verbose
--version|-V output version string
Get configuration information for MMC drive and/or media