]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virhostdev.c: add virHostdevIsPCIDevice() helper
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 4 Jan 2021 12:54:38 +0000 (09:54 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 1 Mar 2021 15:25:33 +0000 (12:25 -0300)
commita8017c688275f7bfee5eb70e03bc9549c746ccdd
tree3291f6447eeb9c5577ca89b7d5309be6684df18e
parent953be56eea9675086333a4f1b270b75d9d807b8e
virhostdev.c: add virHostdevIsPCIDevice() helper

Add a helper to quickly determine if a hostdev is a PCI device,
instead of doing a tedious 'if' check with hostdev mode and
subsys type.

Reviewed-by: Laine Stump <laine@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/hypervisor/virhostdev.c
src/hypervisor/virhostdev.h
src/libvirt_private.syms