epf_ntb_find_bar(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME

epf_ntb_find_bar β€” okay bestie, this is the function that Assigns BAR number when no configuration is provided. It finds a BAR, assigns it, and keeps it moving. Periodt. πŸ’…

✨ SYNOPSIS

int epf_ntb_find_bar (struct epf_ntb *ntb , const struct
       pci_epc_features *epc_features , enum epf_ntb_bar bar , enum pci_barno
       barno );

πŸŽ€ ARGUMENTS

  • ntb β€” the NTB device that facilitates communication between HOST and VHOST.
  • epc_features β€” the features provided by the EPC specific to this EPF.
  • bar β€” NTB BAR index.
  • barno β€” Bar start index.

πŸ¦‹ DESCRIPTION

So picture this: the BAR configuration was not provided through the userspace configuration. No config? No problem. This function automatically assigns the BAR exactly as it has been historically done by this endpoint function. It’s giving β€œwe’ve been doing this forever and we’re gonna keep doing it” energy, no cap. ✨

🌸 RETURN

It returns the BAR number found, if any. Otherwise? -1. That’s the whole vibe, bestie. 😭

πŸ‘‘ SEE ALSO

Kernel file: ./drivers/pci/endpoint/functions/pci-epf-vntb.c πŸ’–

Also go say hi to these iconic neighbors:


mwah πŸ’‹ β€” cute little sign-off from the Kernel API Manual: source/version is ./drivers/pci/endpoint/functions, dated October 2026. byeee 🫢

πŸ“¦ where this page comes from