From 2c32712a1b78818c4d3fd6dc814bc505ba78f52c Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 16 Apr 2022 01:26:19 +0200 Subject: [PATCH] Document new filter syntax in man pages --- lspci.man | 8 ++++---- setpci.man | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lspci.man b/lspci.man index c12aaa8..624404e 100644 --- a/lspci.man +++ b/lspci.man @@ -142,10 +142,10 @@ hexadecimal. E.g., "0:" means all devices on bus 0, "0" means all functions of on any bus, "0.3" selects third function of device 0 on all buses and ".4" shows only the fourth function of each device. .TP -.B -d []:[][:] -Show only devices with specified vendor, device and class ID. The ID's are -given in hexadecimal and may be omitted or given as "*", both meaning -"any value". +.B -d []:[][:[:]] +Show only devices with specified vendor, device, class ID, and programming interface. +The ID's are given in hexadecimal and may be omitted or given as "*", both meaning +"any value". The class ID can contain "x" characters which stand for "any digit". .SS Other options .TP diff --git a/setpci.man b/setpci.man index 6fee784..9e4e1d8 100644 --- a/setpci.man +++ b/setpci.man @@ -106,9 +106,10 @@ hexadecimal. E.g., "0:" means all devices on bus 0, "0" means all functions of on any bus, "0.3" selects third function of device 0 on all buses and ".4" matches only the fourth function of each device. .TP -.B -d []:[] -Select devices with specified vendor and device ID. Both ID's are given in -hexadecimal and may be omitted or given as "*", both meaning "any value". +.B -d []:[][:[:]] +Select devices with specified vendor, device, class ID, and programming interface. +The ID's are given in hexadecimal and may be omitted or given as "*", both meaning +"any value". The class ID can contain "x" characters which stand for "any digit". .PP When .B -s -- 2.39.2