pinctrl_generic_free_groups(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to pinctrl_generic_free_groups(9) from the Kernel API Manual ✨ This function is the cleanup moment: it removes all pin groups. No cap.

🌸 SYNOPSIS 🌸

void pinctrl_generic_free_groups (struct pinctrl_dev *pctldev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pctldev β€” pin controller device. That’s the pin controller bestie you’re handing over.

πŸ’… DESCRIPTION πŸ’…

⚠️ Locking is your responsibility, bestie. Note that the caller must take care of locking. The function is not doing that part for you β€” iykyk.

The pinctrl groups are allocated with devm_kzalloc, so no need to free them here. Like, do not come for them in this function β€” devm_kzalloc already has that covered. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/pinctrl/core.c.


xoxo, from ./drivers/pinctrl, October 2026 β€” pinctrl_generic_free_groups(9) signing off πŸ’–πŸ’…

πŸ“¦ where this page comes from