edac_mc_find_csrow_by_page(9)
π edac_mc_find_csrow_by_page(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're in kernel-land today, and no you don't need to be scared, because this page is literally just one lil helper function and it's giving "small but mighty" π¦
β¨ NAME β¨
edac_mc_find_csrow_by_page β the ancillary routine that figures out which csrow a memory page lives in. that's it. that's the whole gig. she's a lookup girlie and she's iconic for it π
πΈ SYNOPSIS πΈ
int edac_mc_find_csrow_by_page (struct mem_ctl_info *mci , unsigned long
page );
look at her go. two arguments, one int coming back at you. short, sweet, slays π₯
π ARGUMENTS π
mciβ pointer to astruct mem_ctl_infostructure. yep, that's your memory controller info bestie, she's the one doing the knowing πpageβ the memory page we're trying to find. go find her!! π
β RETURN β
on success, it returns the csrow. and if it's a flop and nothing matches? you get -1. no cap, that's the whole return contract π
heads up bestie: -1 means not found, so don't go treating it like a valid csrow, m'kay? π
π¦ 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)edac_mc_find(9)find_mci_by_dev(9)edac_mc_del_mc(9)edac_raw_mc_handle_error(9)edac_mc_handle_error(9)
like, the whole EDAC squad is here. group chat is popping off π«Ά
mwah π β this page lives in ./drivers/edac, dropped October 2026, and it's signed edac_mc_find_csrow_by_page(9) π§ββοΈβ¨ go find those csrows bestie, you got this π
π¦ 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