edac_ecs_get_desc(9)
π edac_ecs_get_desc(9) π
okay so bestie, welcome to the Kernel API Manual β bucket list moment, we're literally in the kernel docs π this one's all about pulling in your EDAC ECS descriptors and honestly? iconic.
β¨ NAME β¨
edac_ecs_get_desc β get EDAC ECS descriptors π¦
no cap, that's the whole vibe: it gets you the descriptors.
πΈ SYNOPSIS πΈ
int edac_ecs_get_desc (struct device *ecs_dev , const struct attribute_group **attr_groups , u16 num_media_frus );
like yes, that's three arguments, don't panic, we're getting to each one π
π ARGUMENTS π
ecs_devβ the client device, and bestie it supports ECS feature β that's the whole point, that's its main character trait β¨attr_groupsβ pointer to attribute group container π§ it's the lil basket your groups live innum_media_frusβ number of media FRUs in the device π₯ count 'em, that's how many you got
π RETURN π
the function hands you back an int, and here's the vibe check on what it means:
0β Success. slay. we ate. π-EINVALβ Invalid parameters passed π something you handed over was not it-ENOMEMβ Dynamic memory allocation failed π the allocator said no ma'am
fr fr, check that return value β a 0 is the only one that's giving happy ending π
π«Ά SEE ALSO π«Ά
- Kernel file
./drivers/edac/ecs.cβ go read it, iykyk, the source is right there πΈ
and that's the whole page, bestie!! this lil beauty lives in ./drivers/edac and it's dated October 2026 β so yeah, future vibes only π« mwah, go forth and get those descriptors π§π
π¦ 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