epf_ntb_find_bar(9)
π 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:
epf_ntb_link_up(9)epf_ntb_configure_mw(9)epf_ntb_teardown_mw(9)epf_ntb_cmd_handler(9)epf_ntb_config_sspad_bar_clear(9)epf_ntb_config_sspad_bar_set(9)epf_ntb_config_spad_bar_free(9)epf_ntb_config_spad_bar_alloc(9)epf_ntb_configure_interrupt(9)epf_ntb_db_bar_init(9)epf_ntb_db_bar_clear(9)epf_ntb_mw_bar_init(9)epf_ntb_mw_bar_clear(9)epf_ntb_is_bar_used(9)epf_ntb_init_epc_bar(9)epf_ntb_epc_init(9)epf_ntb_epc_cleanup(9)epf_ntb_add_cfs(9)epf_ntb_bind(9)epf_ntb_unbind(9)epf_ntb_probe(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms