convert_to_physical(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– convert_to_physical(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for convert_to_physical, and honestly? it does exactly what it says on the tin: it takes error_data and gives you back a physical address. no cap, that's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

unsigned long convert_to_physical (struct mc_priv *priv , union
ecc_error_info pinf , int controller , int *error_data );

like, look at her. four arguments, one unsigned long coming back at you. main character energy fr fr πŸ’…


🌸 ARGUMENTS 🌸

  • priv β€” the private instance data for the DDR memory controller. it's giving "her personal diary, but for hardware" πŸ¦‹
  • pinf β€” the ECC error info structure. yes, the whole struct, handed over like a lil gift 🎁
  • controller β€” the controller number of the MC5. just. the number. that's her 🫢
  • error_data β€” the DDRMC5 ADEC address decoder register data. say that five times fast, i dare you 😭

⭐ RETURN ⭐

returns the physical address of the DDR memory. that's it. that's the whole return value. iconic, honestly πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/edac/versalnet_edac.c
  • union ecc_error_info(9)
  • struct ecc_status(9)
  • struct mc_priv(9)
  • handle_error(9)

go read those next, i'll wait πŸ’œ


and that's the whole page, bestie! 🌈 this one lives under ./drivers/edac, dated October 2026 β€” so like, future vibes only. mwah, go forth and convert some addresses πŸ’–βœ¨πŸ“

πŸ“¦ where this page comes from