edac_get_owner(9)
π edac_get_owner(9) β the Kernel API Manual, but make it make sense
okay bestie, welcome to edac_get_owner, a tiny little function in the Kernel API Manual that takes zero arguments and tells you exactly one thing. no cap, it's giving "small but mighty" π
β¨ NAME β¨
edac_get_owner β returns the owner's mod_name of EDAC MC π«Ά
like, it's the little function whose whole personality is "whose module is this, actually?" and honestly? respect.
πΈ SYNOPSIS πΈ
const char * edac_get_owner (void );
that's it. that's the whole vibe. a const char * and a void and zero drama β¨
π ARGUMENTS π
voidβ no arguments π literally none. nothing. the void is the point. you show up, you pass nothing, and it's fine. iconique.
π¦ RETURN π¦
so here's what you get back, and there are exactly two (2) outcomes, bestie, keep up π
- a pointer to the
mod_namestring β this happens when EDAC MC is owned π NULLβ this happens otherwise π
that's the whole return contract. no structs, no error codes, no little surprise extras. if it's owned you get the string, if it isn't you get NULL, and you will be checking that NULL before you dereference it because we are not about that segfault life fr fr π
heads up queen: NULL is a real, expected return value here β it is not an error code, it just means "not owned". check before you use it, every single time π
π SEE ALSO π
the whole friend group shows up here, and they all live in the kernel file ./drivers/edac/edac_mc.h π§:
edac_mc_alloc(9)edac_mc_free(9)edac_has_mcs(9)edac_mc_find(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)
go read those next, they're literally the rest of the lore πβ¨
and that's the page, bestie!! π₯³ this one comes from ./drivers/edac, dated October 2026 β so if you're reading it, just know the EDAC girls were serving kernel documentation back in October 2026 and we are still obsessed πππ¦ slay, stay hydrated, and always check your pointers π«Ά
π¦ 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