logic_pio_trans_hwaddr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

logic_pio_trans_hwaddr β€” bestie, this is the little function that takes a hardware address and translates it into a logical PIO address πŸ’… (it's a section 9 kernel API manual page, iykyk 🫢).


🌸 SYNOPSIS 🌸

unsigned long logic_pio_trans_hwaddr (const struct fwnode_handle *fwnode
, resource_size_t addr , resource_size_t size );

That's the whole vibe ✨ β€” one function, three args, one unsigned long coming back to you πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • fwnode β€” the FW node reference for the host, like the little fingerprint that says which host we're talking about πŸ”
  • addr β€” the host-relative HW address, aka the address as that host sees it πŸ’–
  • size β€” the size you want translated, periodt πŸ“

πŸ’œ DESCRIPTION πŸ’œ

The way this works is so straightforward it's giving main character energy πŸ‘‘: it returns the Logical PIO value if it's successful πŸŽ‰, and ~0UL otherwise 😭 no in-between, no drama, fr fr.

Heads up: ~0UL is the "nope, didn't work" answer here β€” if you see that come back, the translation did not slay πŸ’€

⭐ SEE ALSO ⭐

Kernel file ./lib/logic_pio.c, plus these absolute icons, go check them out bestie 🌈:


That's the whole page, bestie 🫢 β€” brought to you from ./lib, dated October 2026, and honestly? iconic πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from