STRUCT SPEAR_PINGROUP(9)
π struct spear_pingroup β SPEAr pin group configurations π
okay so real talk, bestie β we're deep in the Kernel API Manual today, and this one's a struct from the SPEAr pin controller world. it's giving "small struct, big responsibilities" and honestly? iconic. let's get into it π
β¨ NAME β¨
struct spear_pingroup β SPEAr pin group configurations. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
struct spear_pingroup {
const char *name;
const unsigned *pins;
unsigned npins;
struct spear_modemux *modemuxs;
unsigned nmodemuxs;
};
look at her. five members. no notes. π«Ά
π¦ Members π¦
nameβ the name of the pin group. yes bestie, she has a name and you will be using it πpinsβ an array containing pin numbers. the actual lineup, the cast of characters πnpinsβ size of thepinsarray. gotta know how many icons are on this roster πmodemuxsβ array of modemux configurations for this pin group. the whole mux situation, laid out βnmodemuxsβ size of themodemuxsarray. count 'em, don't lose track π
π Description π
so, what is she? this is a representation of a group of pins in the SPEAr pin controller β like, a little squad of pins that get treated as a unit π§
and here's the important part: each group allows some parameter or parameters to be configured. that's the whole point, periodt. the group is the thing you configure, and the configuration is the "parameters" β
π SEE ALSO π
you know we're linking the whole cinematic universe, bestie β Kernel file ./drivers/pinctrl/spear/pinctrl-spear.h, plus:
struct spear_pmx_mode(9)struct spear_muxreg(9)struct spear_modemux(9)struct spear_function(9)struct spear_pinctrl_machdata(9)struct spear_pmx(9)
go read them all, i'll wait π β¨
and that's the page! π this one comes straight from ./drivers/pinctrl/spear, dated October 2026 β so yes, she's a Scorpio (or a Libra, depending on the day, don't @ me) and she said "no cap, go configure those pin groups." bye bestie, mwah ππ
π¦ 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