edac_mem_repair_get_desc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… edac_mem_repair_get_desc(9)

okay so this is from the Kernel API Manual and it's literally the moment your fave memory repair feature gets its descriptor glow-up ✨ like, this is the function that hands you the EDAC memory repair descriptors, no cap.


🌸 NAME 🌸

edac_mem_repair_get_desc β€” get EDAC memory repair descriptors 🫢


✨ SYNOPSIS ✨

int edac_mem_repair_get_desc (struct device *dev , const struct
       attribute_group **attr_groups , u8 instance );

that's the whole vibe: returns an int, takes three args, slay πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the client device that's rockin' the memory repair feature πŸ’–
  • attr_groups β€” pointer to the attribute group container, bestie, it's holding the groups for you 🧚
  • instance β€” the device's memory repair instance number (u8, keep it cute) ⭐

πŸ”₯ RETURN πŸ”₯

  • 0 β€” success, periodt! πŸŽ‰
  • -EINVAL β€” invalid parameters got passed in πŸ™ˆ like, the vibe check failed
  • -ENOMEM β€” dynamic memory allocation failed 😭 the memory said no

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/edac/mem_repair.c β€” go read it, iykyk πŸ‘‘


k bye that's the whole page, mwah πŸ’‹

sign-off szn: this baby came from ./drivers/edac, dated October 2026 β€” manifesting that energy for you, bestie πŸŒˆπŸ’œ

πŸ“¦ where this page comes from