zpci_iov_find_parent_pf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the zpci_iov_find_parent_pf(9) page from the Kernel API Manual πŸ’… this one is literally about finding a parent PF, no cap. let’s get into it 🫢

🌸 NAME 🌸

zpci_iov_find_parent_pf β€” Find the parent PF, if any, of the given function

✨ SYNOPSIS ✨

struct pci_dev * zpci_iov_find_parent_pf (struct zpci_bus *zbus , struct
zpci_dev *zdev );

πŸŽ€ ARGUMENTS πŸŽ€

  • zbus β€” The bus that the PCI function is on, or would be added on.
  • zdev β€” The PCI function.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function finds the parent PF, if it exists and is configured, of the given PCI function β€” and then it increments its refcount. iconic behavior honestly ✨

the PF is searched for on the provided bus, so the caller has to ensure that this is the correct bus to search. lowkey important, bestie πŸ‘€

this function may be used before adding the PCI function to a zbus. yes queen, it works pre-add πŸ’–

🌈 RETURN 🌈

pointer to the struct pci_dev of the parent PF, or NULL if it not found. if the function is not a VF or has no RequesterID information, NULL is returned as well. so yeah β€” no parent PF, no VF, or no RequesterID info means you get NULL 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./arch/s390/pci/pci_iov.c


that’s the whole vibe πŸ’– source: ./arch/s390/pci, dated October 2026. stay slay, bestie πŸ§šπŸ’œ

πŸ“¦ where this page comes from