zynqmp_pinct..._func_groups(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… zynqmp_pinct..._func_groups(9) โ€” like, the Kernel API Manual page, bestie ๐ŸŽ€

okay so. hi. you found the manpage for zynqmp_pinctrl_prepare_func_groups, from the Kernel API Manual, and honestly? it's a little baddie. it's the โœจ setup โœจ step โ€” the get-ready-with-me of the pinctrl world. let's get into it ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

zynqmp_pinctrl_prepare_func_groups โ€” prepares the function and groups data. that's it. that's the whole vibe. it's giving backstage-pass energy ๐Ÿ’…


โญ SYNOPSIS โญ

int zynqmp_pinctrl_prepare_func_groups (struct device *dev , u32 fid ,
       struct zynqmp_pmux_function *func , struct zynqmp_pctrl_group *groups );

she takes four things and returns an int. iconic signature, no notes ๐Ÿ”ฅ


๐Ÿฆ‹ ARGUMENTS ๐Ÿฆ‹

  • dev โ€” Device pointer. the device in question. she's the main character ๐ŸŒˆ
  • fid โ€” Function ID. literally just which function we're talking about, as a u32 ๐Ÿ“
  • func โ€” Function data. the function's whole deal gets written into here โœจ
  • groups โ€” Groups data. the group names land in here too, bestie ๐Ÿ‘‘

๐Ÿ’– DESCRIPTION ๐Ÿ’–

So here's the tea โ˜•: this function queries the firmware to get the group IDs for each function. firmwares out here handing back group IDs like it's nothing, and we're like "slay, thank you."

Then, based on the group index for the function, the group names inside the function get stored. Example time, because examples ate:

the first group in the "eth0" function is named "eth0_0", and the second group is named "eth0_1", and so on. fr fr. it just keeps going. "eth0_2", "eth0_3"โ€ฆ you get the pattern ๐Ÿ’€

And based on the group ID received from the firmware, the function stores the name of the group for that group ID. another example, because we're generous:

if the "eth0" first group ID is x, then groups[x]'s name will be stored as "eth0_0". yes. groups[x]. not groups[0]. groups[x]. iykyk ๐ŸŒธ

Once this is done for each function, every function has its group names, and every group also has its own name. mutual naming. everyone's got a name tag. it's a whole party ๐ŸŽ‰

lowkey the cutest part is that it's just bookkeeping โ€” no cap, it's setting everything up so the actual pinmuxing later doesn't have to guess who's who ๐Ÿงš


๐Ÿ‘‘ RETURN ๐Ÿ‘‘

0 on success, else an error code. that's the whole return section. go off, king ๐Ÿ’œ

โš ๏ธ heads up: 0 means it worked. anything else is the universe telling you something went sideways โ€” check the error code, bestie.

๐Ÿ”ฎ SEE ALSO ๐Ÿ”ฎ

like, the whole friend group is linked. go say hi ๐Ÿ’•


and that's the page!! mwah ๐Ÿ’‹ this one came to you from the ./drivers/pinctrl source, dated October 2026, and zynqmp_pinct..._func_groups(9) is out here living her best life in the Kernel API Manual. periodt. ๐ŸŽ€โœจ

๐Ÿ“ฆ where this page comes from