pdc_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pdc_probe(9) β€” Kernel API Manual πŸ’–

okay so bestie, welcome to pdc_probe, a page from the Kernel API Manual and honestly? it's a whole moment. sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

pdc_probe β€” the probe function for the PDC driver. yep, that's it, that's the vibe. it's the lil "hey, u up?" that the kernel sends when it wants to bring a PDC to life 🫢


🌸 SYNOPSIS 🌸

int pdc_probe (struct platform_device *pdev );

like, that's the whole thing. one function, one arg, one int coming back atcha. iconic behavior honestly πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” the PDC platform device. this is the main character of the whole operation, the device we're about to set up πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's what pdc_probe actually does, and it's honestly doing the most (affectionate):

it reserves and maps the register regions that are defined in the device tree 🌈 β€” like, going and claiming the turf and drawing the map, no cap.

then it allocates and initializes the tx and rx DMA rings ✨ β€” both of them, not just one, because we're not doing half a job in this house.

and finally it initializes a mailbox controller for each PDC πŸ’Œ β€” yes, each one. every single PDC gets its own.


⭐ RETURN ⭐

  • 0 if successful 🌸
  • < 0 if an error πŸ’€

so like, zero means slay, negative means something went sideways. periodt.


πŸ‘‘ SEE ALSO πŸ‘‘

bestie, there is a whole friend group here and i'm obsessed. the kernel file lives at ./drivers/mailbox/bcm-pdc-mailbox.c 🐝 and here's everyone else you should go say hi to:

fr fr, that's the whole squad πŸ§šπŸ’œ


and that's the page!! before u go β€” this one's from ./drivers/mailbox, dated October 2026, and it's the pdc_probe(9) entry in the Kernel API Manual. mwah, go read some kernel source, ily πŸ˜­πŸ’–πŸŽ€

πŸ“¦ where this page comes from