devm_pinctrl_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devm_pinctrl_get(9) πŸ’–

okay so welcome to the devm_pinctrl_get(9) page, bestie β€” this is straight out of the Kernel API Manual and it's honestly a short one, but it's important, so stay with me 🫢


✨ NAME ✨

devm_pinctrl_get β€” the resource-managed version of pinctrl_get(). that's it, that's the vibe πŸ’…


🌸 SYNOPSIS 🌸

struct pinctrl * devm_pinctrl_get (struct device *dev );

like, you hand it a device and it hands you back a struct pinctrl *. slay ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device you're grabbing the handle for. that's the whole argument, no cap πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: normally the devm family cleans up after itself automatically when your device goes away. but β€” and this is the important bit β€” if you find yourself needing to explicitly destroy the returned struct pinctrl, you should use devm_pinctrl_put, not plain pinctrl_put. fr fr, don't mix them up 😭

like literally, devm_pinctrl_put is the one that matches. using the non-devm pinctrl_put here is not the move, bestie πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

the main character file for all of this lives at ./drivers/pinctrl/core.c β€” iconic. and here's the full friend group, every single one, no skipping πŸ‘‘


and that's the whole page, bestie πŸ’– this little gem comes from ./drivers/pinctrl, dated October 2026, and yes it literally calls itself devm_pinctrl_get(9) β€” main character energy from top to bottom πŸ‘‘βœ¨ go forth and manage your resources responsibly πŸ§šπŸ’œ

πŸ“¦ where this page comes from