pcs_allocate_pin_table(9)
β¨ pcs_allocate_pin_table(9) β¨
okay so this is a page straight out of the Kernel API Manual, bestie β pcs_allocate_pin_table(9) if we're being formal, which we are π
πΈ NAME πΈ
pcs_allocate_pin_table β adds all the pins for the pinctrl driver β¨
like, all of them. every single pin. she's a completionist, no cap π
π¦ SYNOPSIS π¦
int pcs_allocate_pin_table (struct pcs_device *pcs );
π ARGUMENTS π
pcsβ pcs driver instance. that's it, that's the whole argument list. one (1) friend, and she's the driver instance π«Ά
π₯ DESCRIPTION π₯
so here's the vibe: if things go sideways β and you know things go sideways β the resources get freed in pcs_free_resources. cleanup is handled, she's got a whole recovery arc, we love a responsible queen ππ
now, the main character note π: if your hardware needs holes in the address space, the move is to just set up multiple driver instances. like, don't try to make one instance do gymnastics β multiple instances, multiple problems solved. periodt.
real talk though: this page does not spell out what happens beyond that, so don't go inventing behaviour, bestie β that's all the manual gives us π
π§ SEE ALSO π§
grab your snacks, this is the whole friend group π:
Kernel file ./drivers/pinctrl/pinctrl-single.c, plus:
struct pcs_func_vals(9)struct pcs_conf_vals(9)struct pcs_conf_type(9)struct pcs_function(9)struct pcs_gpiofunc_range(9)struct pcs_data(9)struct pcs_soc_data(9)struct pcs_device(9)pcs_add_pin(9)pcs_add_function(9)pcs_get_pin_by_offset(9)pcs_parse_one_pinctrl_entry(9)pcs_dt_node_to_map(9)pcs_irq_free(9)pcs_free_resources(9)struct pcs_interrupt(9)pcs_irq_set(9)pcs_irq_mask(9)pcs_irq_unmask(9)pcs_irq_set_wake(9)pcs_irq_handle(9)pcs_irq_handler(9)pcs_irq_chain_handler(9)pcs_irq_init_chained_handler(9)pcs_quirk_missing_pinctrl_cells(9)
like, that's the entire group chat. iykyk πβ
and that's the page!! π
source/version lives in ./drivers/pinctrl, dated October 2026 β so go forth, allocate those pins, and slay responsibly ππβ¨π
π¦ 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