edac_dev_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… edac_dev_register(9) β€” from the Kernel API Manual, bestie 🫢

okay so real talk: this is a function from the Kernel API Manual, and it's the one that literally registers your device for RAS features with EDAC. no cap, it's giving "let me introduce you to the grown-ups" energy ✨

πŸŽ€ NAME πŸŽ€

edac_dev_register β€” register device for RAS features with EDAC πŸ”₯

⭐ SYNOPSIS ⭐

int edac_dev_register (struct device *parent , char *name , void
*private , int num_features , const struct edac_dev_feature
*ras_features );

🌸 ARGUMENTS 🌸

  • parent β€” the parent device. like, the actual device's device πŸ’–
  • name β€” the name for the folder in the /sys/bus/edac/devices/, and it's derived from the parent device. for e.g. /sys/bus/edac/devices/cxl_mem0/ β€” iconic path tbh πŸ¦‹
  • private β€” the parent driver's data to store in the context, if any. lowkey optional, highkey useful πŸ™ˆ
  • num_features β€” number of RAS features to register. count 'em, bestie πŸ”’
  • ras_features β€” list of RAS features to register. the whole lineup, main character energy πŸ‘‘

πŸ’œ RETURN πŸ’œ

  • 0 β€” Success. slay, it worked πŸŽ‰
  • -EINVAL β€” Invalid parameters passed. not me getting bad args 😭 double-check those params fr fr
  • -ENOMEM β€” Dynamic memory allocation failed. the malloc said no πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/edac/edac_device.c β€” go read it, iykyk πŸ“–βœ¨


and that's the whole page, bestie πŸŽ€ this one lives in ./drivers/edac and it's dated October 2026 β€” so mark your calendar, periodt πŸ’…πŸŒŸ

πŸ“¦ where this page comes from