aboutsummaryrefslogtreecommitdiff
path: root/pci-arbiter/options.c
Commit message (Collapse)AuthorAgeFilesLines
* pci-arbiter: Fix bug on option parsing.Joan Lledó2020-04-111-10/+48
| | | | | | | | | A misuse of strtol() caused wrong parameters to be interpreted as '0' * pci-arbiter/options.c: * New function parse_number() to handle wrong input * Call parse_number() from all places where strtol was being called Message-Id: <20200411113654.6360-2-jlledom@mailfence.com>
* pci-arbiter: Add --device command line optionJoan Lledó2020-02-231-0/+57
| | | | | | | | | Shortcut for -d, -b, -s and -f Usage: --device [<domain>:]<bus>:<slot>.<func> E.G. --device 00:05.0 is shortcut for -d 0 -b 0 -s 5 -f 0 * pci-arbiter/options.c: Implement --slot option * pci-arbiter/options.h: Add --slot to options list
* pci-arbiter: Rename command line optionsJoan Lledó2020-02-231-11/+7
| | | | | | | | | | | | | | | | Rename some CLI options in order to add the new -D --device arg. Replace -s by -c for subclasses. Replace -D by -d for domains. Domains are optional from now on, default to 0. Replace -d by -s for devices. The formerly called "devices" are now called "slots", and "device" will refer to a combination of Domain + Bus + Slot + Function Only -G and -U options create new permission scopes. * pci-arbiter/options.c: parse_opts(): Rename options * pci-arbiter/options.h: struct argp_option options[]: Likewise
* PCI ArbiterJoan Lledó2018-10-301-0/+282