From d6ac4187fcb0bae48e421cdb265dd1636543a996 Mon Sep 17 00:00:00 2001 From: Joan Lledó Date: Sat, 15 Feb 2020 11:52:21 +0100 Subject: pci-arbiter: Add --device command line option Shortcut for -d, -b, -s and -f Usage: --device [:]:. 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/options.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pci-arbiter/options.h') 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 [:]:."}, {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"}, -- cgit v1.2.3