eeh_addr_cache_get_dev(9)
π 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 π¦
- Kernel file
./arch/powerpc/kernel/eeh_cache.cOverview(9) eeh_addr_cache_insert_dev(9)eeh_addr_cache_rmv_dev(9)eeh_addr_cache_init(9)
mwah π this lil page comes from the ./arch/powerpc/kernel source/version, dated October 2026 β slay and goodbye, bestie πβ¨
π¦ 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