epf_ntb_db_mw_bar_clear(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ epf_ntb_db_mw_bar_clear β€” kernel API manual, section 9 πŸŽ€

okay bestie so this is epf_ntb_db_mw_bar_clear from section 9 of the kernel API manual, and honestly? it's a little cleanup icon. let's get into it πŸ’…


✨ NAME ✨

epf_ntb_db_mw_bar_clear β€” clear doorbell and memory BAR


πŸ¦‹ SYNOPSIS πŸ¦‹

void epf_ntb_db_mw_bar_clear (struct epf_ntb_epc *ntb_epc );

like. that's the whole vibe. one argument, returns nothing, does its little task. periodt 🌸


πŸ’– ARGUMENTS πŸ’–

  • ntb_epc β€” the EPC that's associated with one of the HOSTs, specifically the one that holds the peer's outbound address. yeah, that one. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

okay so first of all, here is the diagram, and it is a lot, but you need it, so enjoy:

       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
       β”‚ BAR0           Doorbell 1   +-----------> MSI   X ADDRESS 1 β”‚
       β”‚ BAR1           Doorbell 2   +---------+                     β”‚
       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       |       BAR2      |          |   Doorbell 3   +-------+ |
       +-----------------+ |       BAR3      |    |     |   Doorbell 4
       +-----+ |   +-----------------+ |       BAR4      |    |     |
       |     | |   +-----------------+ |       BAR5      |    |     |
       |   | |     +-----------------+ EP CONTROLLER 1            |
       |   | |     +-----------------+ |                |   | +---->+ MSI|X
       ADDRESS 4 | (A)      EP CONTROLLER 2     |       |                 | (OB
       SPACE)        |       |                 | +------->      MW1        | |
       | |                 | (B)     +-----------------+ |                 | |
       | |                 | |                 | |                 | PCI
       Address Space (Managed by HOST2)

so what this function does, bestie, is it clears the doorbell and memory BARs β€” which is the fancy way of saying it removes the inbound ATU configuration. that's the whole thing. no cap.

and if you look at the diagram up there (yes, the messy one, love her), it clears BAR2 TO BAR5 of EP CONTROLLER 1. that means:

  • the Doorbell BAR
  • the MW1 BAR
  • the MW2 BAR
  • the MW3 BAR
  • and the MW4 BAR

all of them. cleared. bye. πŸ‘‹βœ¨


🌈 SEE ALSO 🌈

the kernel file itself lives here, go read it:

  • ./drivers/pci/endpoint/functions/pci-epf-ntb.c

and then the whole friend group of related calls, all of them, in the order the page gives them:


bestie heads up β€” this page comes from ./drivers/pci/endpoint/functions and it's dated October 2026, so that's the source, the version and the date all in one cute little bow πŸŽ€

k that's the page!! go clear those BARs, you're gonna slay πŸ’œπŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from