edac_dev_register(9)
π 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
- 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