eeh_addr_cache_get_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for eeh_addr_cache_get_dev β€” it's literally β€œget device, given only address.” like, you show up with just an address and it's like say less, here's your device 🫢


✨ SYNOPSIS ✨

struct eeh_dev * eeh_addr_cache_get_dev (unsigned long addr );

that's the whole vibe: you pass an unsigned long addr, and you get back a struct eeh_dev *. iconic.


πŸŽ€ ARGUMENTS πŸŽ€

  • addr β€” the mmio (PIO) phys address or i/o port number. that's the address-ish thing you're trying to look up, bestie πŸ’…

🌸 DESCRIPTION 🌸

so here's the tea: you give this function an mmio phys address, or a port number, and it finds the pci device that implements that address. matching address to device β€” that's the whole quest πŸ”₯

I/O port numbers are assumed to be offset from zero β€” that is, they do not have pci_io_addr added in. important detail, don't skip it πŸ™ˆ

and yes, it is safe to call this function within an interrupt. fr fr, interrupt-safe βœ…


πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ this lil page comes from the ./arch/powerpc/kernel source/version, dated October 2026 β€” slay and goodbye, bestie πŸŽ€βœ¨

πŸ“¦ where this page comes from