zynqmp_pinconf_cfg_set(9)
β¨ zynqmp_pinconf_cfg_set(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for zynqmp_pinconf_cfg_set β the little function that goes "yes ma'am" and actually pushes your pin config to the firmware π
πΈ NAME πΈ
zynqmp_pinconf_cfg_set β sets the config you asked for on the pin. that's it. that's the whole job. and she does it flawlessly π
π¦ SYNOPSIS π¦
int zynqmp_pinconf_cfg_set (struct pinctrl_dev *pctldev , unsigned int
pin , unsigned long *configs , unsigned int num_configs );
like, look at her. four args, returns an int, no drama β¨
π ARGUMENTS π
pctldevβ the pincontrol device pointer. your main character device, basically πpinβ the pin number. which pin are we talking about, bestie? this one πconfigsβ the configuration to set. the actual vibes we're applying π«num_configsβ how many configurations there are. gotta know how long the list is π’
π DESCRIPTION π
so what she does is: she loops through all of the configurations and calls the firmware API to set the requested configurations for the pin π«Ά
that's the whole flow, no cap. loop, then firmware API, then you're done. it's giving "trust the process" β¨
β RETURN β
0on success π- otherwise, an error error code π (so like, always check, bestie)
π§ SEE ALSO π§
the kernel file ./drivers/pinctrl/pinctrl-zynqmp.c β go read her, she's iconic π
and the whole friend group π:
struct zynqmp_pmux_function(9)struct zynqmp_pinctrl(9)struct zynqmp_pctrl_group(9)zynqmp_pmux_get_function_groups(9)zynqmp_pinmux_set_mux(9)zynqmp_pinconf_cfg_get(9)zynqmp_pinconf_group_set(9)zynqmp_pinctrl_prepare_func_groups(9)zynqmp_pinctrl_create_pin_groups(9)zynqmp_pinctrl_prepare_group_pins(9)zynqmp_pinctrl_prepare_function_info(9)zynqmp_pinctrl_prepare_pin_desc(9)
fr fr, if you're touching pinconf on ZynqMP, the whole squad above is required reading. no skipping π
okay that's the page!! this one lives in ./drivers/pinctrl, dated October 2026, from the Kernel API Manual β mwah, go set some configs bestie π
ππ₯
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms