edac_ecs_get_desc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 in
  • num_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