edac_mc_find(9)
π edac_mc_find β honestly a whole vibe
okay bestie, so this is a page from the Kernel API Manual (yes, the kernel has lore too π§), and it's about one little function that goes hunting for a mem_ctl_info structure by index. short page, but we're gonna give it the main character energy it deserves β¨
β¨ NAME β¨
edac_mc_find β search for a mem_ctl_info structure whose index is @idx. that's it, that's the job π
πΈ SYNOPSIS πΈ
struct mem_ctl_info * edac_mc_find (int idx );
look at her go π returning a pointer and everything. iconic.
π¦ ARGUMENTS π¦
idxβ the index to be seek π (yes, "to be seek", we're keeping the original wording fr fr, it's giving old-school kernel charm)
π DESCRIPTION π
so here's the tea: if it's found, it returns a pointer to the structure. π«Ά
else? it returns NULL. π no drama, no notes, just NULL.
that's literally the whole description and honestly? respect. she said what she said and dipped.
ngl bestie, NULL means not found here β don't go dereferencing it, that's not the vibe check you want to fail π
π SEE ALSO π
kernel file ./drivers/edac/edac_mc.h and her whole friend group:
edac_mc_alloc(9)edac_get_owner(9)edac_mc_free(9)edac_has_mcs(9)find_mci_by_dev(9)edac_mc_del_mc(9)edac_mc_find_csrow_by_page(9)edac_raw_mc_handle_error(9)edac_mc_handle_error(9)
a full squad, no cap π₯ go read them too, iykyk π
π and that's the page!! brought to you by ./drivers/edac, dated October 2026, and the same edac_mc_find(9) energy we started with β slay, bye bestie π
π
π¦ 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