p2sb_bar(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to p2sb_bar(9), straight from the Kernel API Manual πŸ’– this little icon gets the Primary to Sideband (P2SB) bridge device BAR, and yes it’s giving very niche-kernel-cute. let’s get into it 🫢

✨ NAME ✨

p2sb_bar β€” Get Primary to Sideband (P2SB) bridge device BAR πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

int p2sb_bar (struct pci_bus *bus , unsigned int devfn , struct resource
*mem );

πŸ’– ARGUMENTS πŸ’–

  • bus β€” PCI bus to communicate with. this is the bus you’re talking to, bestie.
  • devfn β€” PCI slot and function to communicate with. slot plus function combo, iconic.
  • mem β€” memory resource to be filled in. it gets the fill-in, no cap.

🌈 DESCRIPTION 🌈

If bus is NULL, the bus 0 in domain 0 will be used. no cap, that’s the fallback πŸ’…

If devfn is 0, it will be replaced by devfn of the P2SB device β€” the device’s own devfn steps in, periodt.

Caller must provide a valid pointer to mem. like, fr fr: valid pointer or don’t come at it 😭 because it’s filling that memory resource in.

πŸ”₯ RETURN πŸ”₯

0 on success or appropriate errno value on error. that’s it: 0 = slay, errno = the kernel’s way of saying something went sideways πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/platform/x86/p2sb.c β€” go read the source, iykyk πŸ“–βœ¨

xoxo, from ./drivers/platform/x86, October 2026 β€” p2sb_bar(9) πŸ’…πŸŽ€βœ¨

πŸ“¦ where this page comes from