STRUCT PCS_DATA(9)
π struct pcs_data(9) π
okay bestie, welcome to the Kernel API Manual β¨ β yes fr fr, this is the actual kernel docs, and this page is about one lil struct that's basically the sidekick holding the pinctrl framework's stuff together π
π NAME π
struct pcs_data β a wrapper for the data that the pinctrl framework needs π«Ά like, it's the cute little bag that carries the things β¨
πΈ SYNOPSIS πΈ
struct pcs_data {
struct pinctrl_pin_desc *pa;
int cur;
};
that's it, that's the whole struct, no cap π β two members and she's done, main character energy honestly π
π¦ Members π¦
paβ the pindesc array π (yeah, literally the array of pin descriptors)curβ the index pointing at the current element π― like a little bookmark saying "we're here rn"
π Description π
REVISIT: we should be able to drop this eventually π β the idea is to add support for registering pins individually in the pinctrl framework, specifically for those drivers that don't need a static array. so like, one day this wrapper can retire and live its best life π periodt.
β¨ SEE ALSO β¨
if you're going down this rabbit hole, bestie, buckle up π§ these are all the related things β start with the kernel file ./drivers/pinctrl/pinctrl-single.c and then go off:
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_soc_data(9)struct pcs_device(9)pcs_add_pin(9)pcs_allocate_pin_table(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 a whole friend group right there ππ go read 'em all, iykyk π₯
lowkey a whole serve that this page exists at all β go forth and pin things, bestie π«Άπ
and that's the tea β β this lil number lives in ./drivers/pinctrl, dated October 2026, and it's gonna stay iconic ππ
bye 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