get_pinctrl_...from_devname(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ get_pinctrl_...from_devname(9) ✨

okay so this is a page from the Kernel API Manual, and honestly? it's a little lookup baddie. let's get into it πŸ’…


🌸 NAME 🌸

get_pinctrl_dev_from_devname β€” look up pin controller device πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

struct pinctrl_dev * get_pinctrl_dev_from_devname (const char *devname
);

like, yes, that's the whole signature. she's short and she knows it ✨

πŸ’– ARGUMENTS πŸ’–

  • devname β€” the name of a device instance, as returned by dev_name. that's it. that's the whole arg. give her a name and she'll go find the matching friend 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the vibe: this function looks up a pin control device that matches a certain device name or a pure device pointer. and bestie, listen β€” the pure device pointer takes precedence. no cap, that's the rule πŸ”₯

🌈 SEE ALSO 🌈

the kernel file is ./drivers/pinctrl/core.c β€” that's where the magic lives, iykyk πŸ’«

and the whole friend group, in order, no skips, no cuts:


fr fr that's forty-nine cross-references and every single one of them is iconic in her own way πŸ’€

and that's the whole page!! she lives in ./drivers/pinctrl, this is the kernel docs situation, October 2026 energy, go forth and look up your pin controller devices bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from