]> xenbits.xensource.com Git - xen.git/commit
drivers/pci: Get next capability without passing caps
authorJiqian Chen <Jiqian.Chen@amd.com>
Wed, 23 Apr 2025 07:42:08 +0000 (09:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Apr 2025 07:42:08 +0000 (09:42 +0200)
commitfcc44f8548b89a649003c4348702e04e0c20b205
treeb35b68bcb738612f297aa4eaf828878e390516a6
parent16d69b2870ce7dacf47565673992131eafd03644
drivers/pci: Get next capability without passing caps

Modify function pci_find_next_cap_ttl to support returning position
of next capability when size "n" is zero.

That can help caller to get next capability offset if caller just
has a information of current capability offset.

That will be used in a follow-on change.

Signed-off-by: Jiqian Chen <Jiqian.Chen@amd.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/pci/pci.c