pci_epc_write_header(9)
π pci_epc_write_header β NAME π
okay bestie, listen up: pci_epc_write_header is literally the function that writes the standard configuration header. that's it, that's the whole vibe. β¨
(this is from the Kernel API Manual, if you were wondering π)
πΈ SYNOPSIS πΈ
int pci_epc_write_header (struct pci_epc *epc , u8 func_no , u8 vfunc_no
, struct pci_epf_header *header );
like, that's the whole signature. no cap. π«Ά
π¦ ARGUMENTS π¦
epcβ the EPC device that the configuration header should get written to. it's giving "main character" of this whole operation πfunc_noβ the physical endpoint function number in the EPC device. yes, physical. keep track of which one you mean π₯vfunc_noβ the virtual endpoint function number in the physical function. virtual bestie, not the same as the physical one, ok?? πheaderβ the standard configuration header fields. all the actual header content lives here π
β DESCRIPTION β
so you invoke this when you want to write the configuration header to the endpoint controller. every single endpoint controller has its own dedicated location where the standard configuration header gets written β like its own little spot, super iconic. π
and the callback function? it should write the header fields to that dedicated location. periodt. π
π« SEE ALSO π«
- Kernel file
./drivers/pci/endpoint/pci-epc-core.c pci_epc_put(9)pci_epc_get(9)pci_epc_get_first_free_bar(9)pci_epc_get_next_free_bar(9)pci_epc_get_features(9)pci_epc_get_aux_resources_count(9)pci_epc_get_aux_resources(9)pci_epc_stop(9)pci_epc_start(9)pci_epc_raise_irq(9)pci_epc_map_msi_irq(9)pci_epc_get_msi(9)pci_epc_set_msi(9)pci_epc_get_msix(9)pci_epc_set_msix(9)pci_epc_unmap_addr(9)pci_epc_map_addr(9)pci_epc_mem_map(9)pci_epc_mem_unmap(9)pci_epc_clear_bar(9)pci_epc_set_bar(9)pci_epc_bar_size_to_rebar_cap(9)pci_epc_add_epf(9)pci_epc_remove_epf(9)pci_epc_linkup(9)pci_epc_linkdown(9)pci_epc_init_notify(9)pci_epc_notify_pending_init(9)pci_epc_deinit_notify(9)pci_epc_bus_master_enable_notify(9)pci_epc_destroy(9)__pci_epc_create(9)__devm_pci_epc_create(9)
and that's the whole page, bestie π«Ά this one came from ./drivers/pci/endpoint, dated October 2026 β slay, go read the other endpoint pages, ily, bye πβ¨π
π¦ 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