mc_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mc_remove(9) πŸ’–

okay so this is a page straight out of the Kernel API Manual bestie, and it's a tiny one β€” like, one-function tiny β€” but we're gonna give it the full main character treatment anyway πŸŽ€


✨ NAME ✨

mc_remove β€” the one whose whole job is unbinding a driver from its controller. that's it. that's the gig πŸ’…


🌸 SYNOPSIS 🌸

void mc_remove (struct platform_device *pdev );

like, that's the entire call. no int return, no flags, no drama. just vibes and a void πŸ¦‹


🫢 ARGUMENTS 🫢

  • pdev β€” the platform device. yes, the platform device. that's the whole description, she's lowkey mysterious like that πŸ™ˆ

⭐ RETURN ⭐

Unconditionally 0. not "0 on success, negative on error" β€” unconditionally. it always comes back 0, no cap. the girl has never known failure and honestly? iconic πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group 🫢 β€” first up, the kernel file this lives in:

  • ./drivers/edac/synopsys_edac.c

and then the crew, in exactly this order:

go read mc_probe(9) next if you wanna see the before of this whole situation β€” the probe/remove pipeline is giving matched set energy πŸ’œ

and that's the page!! short, sweet, void, returns 0, done. this lil number ships from ./drivers/edac and it's dated October 2026, so go forth and unbind responsibly, bestie πŸŒˆπŸ’–βœ¨

πŸ“¦ where this page comes from