edac_scrub_get_desc(9)
π edac_scrub_get_desc(9) β Kernel API Manual β¨
okay so bestie, welcome to the edac_scrub_get_desc(9) page β yes it's a real kernel API manual page, no I'm not kidding, and yes we're gonna get through it together π«Ά
πΈ NAME πΈ
edac_scrub_get_desc β the function that gets you your EDAC scrub descriptors. that's literally it. that's the whole vibe. it's giving "fetch the descriptor" energy and honestly? iconic π
π SYNOPSIS π
int edac_scrub_get_desc (struct device *scrub_dev , const struct
attribute_group **attr_groups , u8 instance );
so it hands back an int (keep an eye on that, it's the receipts later), and it takes three things β a struct device * called scrub_dev, a const struct attribute_group ** called attr_groups, and a u8 called instance. put some respect on that u8, it's doing its best π
π¦ ARGUMENTS π¦
scrub_devβ the client device, the one that actually has scrub support. this is the main character of the argument list ngl β¨attr_groupsβ a pointer to the attribute group container. it's the container. it holds the attribute groups. we love a container πinstanceβ the device's scrub instance number. like a little name tag but make it a number π
π₯ RETURN π₯
here's where the drama lives, bestie β this is what you get back:
0β Success. we ate. π-EINVALβ Invalid parameters passed. something you handed over was Not It π-ENOMEMβ Dynamic memory allocation failed. the memory said "no <3" π
fr fr check that return value. 0 is the slay, the negatives are the "go fix your arguments or free some memory" vibes. no cap.
π SEE ALSO π
- Kernel file
./drivers/edac/scrub.cβ go read the source, iykyk πβ¨
and that's the page!! periodt π§ββοΈ
this cute little sign-off is brought to you by ./drivers/edac β October 2026 β edac_scrub_get_desc(9). mwah ππΈ take care of your descriptors babes π«Άβ
π¦ 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