mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
conf: Add definitions for 'uid' and 'fid' PCI address attributes
Add zPCI definitions in preparation of extending the PCI address with parameters uid (user-defined identifier) and fid (PCI function identifier). Signed-off-by: Yi Min Zhao <zyimin@linux.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com> Reviewed-by: Stefan Zimmermann <stzi@linux.ibm.com> Reviewed-by: Bjoern Walk <bwalk@linux.ibm.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
cfa4b909b3
commit
30522c78c1
1
cfg.mk
1
cfg.mk
@ -472,6 +472,7 @@ sc_prohibit_canonicalize_file_name:
|
||||
# Insist on correct types for [pug]id.
|
||||
sc_correct_id_types:
|
||||
@prohibit='\<(int|long) *[pug]id\>' \
|
||||
exclude='exempt from syntax-check' \
|
||||
halt='use pid_t for pid, uid_t for uid, gid_t for gid' \
|
||||
$(_sc_search_regexp)
|
||||
|
||||
|
@ -37,6 +37,13 @@ typedef virPCIDeviceAddress *virPCIDeviceAddressPtr;
|
||||
typedef struct _virPCIDeviceList virPCIDeviceList;
|
||||
typedef virPCIDeviceList *virPCIDeviceListPtr;
|
||||
|
||||
typedef struct _virZPCIDeviceAddress virZPCIDeviceAddress;
|
||||
typedef virZPCIDeviceAddress *virZPCIDeviceAddressPtr;
|
||||
struct _virZPCIDeviceAddress {
|
||||
unsigned int uid; /* exempt from syntax-check */
|
||||
unsigned int fid;
|
||||
};
|
||||
|
||||
struct _virPCIDeviceAddress {
|
||||
unsigned int domain;
|
||||
unsigned int bus;
|
||||
|
Loading…
x
Reference in New Issue
Block a user