diff options
author | Joan Lledó <jlledom@member.fsf.org> | 2020-02-15 11:52:21 +0100 |
---|---|---|
committer | Joan Lledó <jlledom@member.fsf.org> | 2020-02-23 17:47:42 +0100 |
commit | d6ac4187fcb0bae48e421cdb265dd1636543a996 (patch) | |
tree | 7ea9a1a95f9858325cf5609f1981d924840977f9 /pci-arbiter/options.h | |
parent | b264dbd27739600955a365725f66ceae47e8a456 (diff) | |
download | hurd-d6ac4187fcb0bae48e421cdb265dd1636543a996.tar.gz hurd-d6ac4187fcb0bae48e421cdb265dd1636543a996.tar.bz2 hurd-d6ac4187fcb0bae48e421cdb265dd1636543a996.zip |
pci-arbiter: Add --device command line option
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
Diffstat (limited to 'pci-arbiter/options.h')
-rw-r--r-- | pci-arbiter/options.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pci-arbiter/options.h b/pci-arbiter/options.h index 9a25c603..8e5a9da4 100644 --- a/pci-arbiter/options.h +++ b/pci-arbiter/options.h @@ -57,6 +57,8 @@ static const struct argp_option options[] = { {"bus", 'b', "BUS", 0, "Device bus in hexadecimal"}, {"slot", 's', "SLOT", 0, "Device slot in hexadecimal, requires -b"}, {"func", 'f', "FUNC", 0, "Device func in hexadecimal, requires -s"}, + {"device", 'D', "DEVICE", 0, + "Device address in format [<domain>:]<bus>:<slot>.<func>"}, {0, 0, 0, 0, "These apply to a given permission scope:", 2}, {"uid", 'U', "UID", 0, "User ID to give permissions to"}, {"gid", 'G', "GID", 0, "Group ID to give permissions to"}, |