STRUCT SPRD_PIN(9)
β¨ struct sprd_pin(9) β¨
Okay bestie, gather round π so this is struct sprd_pin from the Kernel API Manual β literally the glow-up of one single pin's whole description. It's giving "mini character sheet for a GPIO" and honestly? Iconic. No cap.
πΈ NAME πΈ
struct sprd_pin β represent one pin's description β¨
Like, one pin. One vibe. She contains multitudes (of fields) π
π¦ SYNOPSIS π¦
struct sprd_pin {
const char *name;
unsigned int number;
enum pin_type type;
unsigned long reg;
unsigned long bit_offset;
unsigned long bit_width;
};
She's small but she's doing the work, periodt π
π Members π
Every field, every detail, we do NOT skip π
nameβ pin name π·οΈ like her whole government name, aconst char *numberβ pin number π’ the numeric ID she clocks in with, anunsigned inttypeβ pin type, can beGLOBAL_CTRL_PIN/COMMON_PIN/MISC_PINπ she's got range, she's anenum pin_typeregβ pin register address π where she actually lives, anunsigned longbit_offsetβ bit offset in pin register π― how far in she's parkedbit_widthβ bit width in pin register π how much register space she's claiming, respectfully
ngl the layout is so clean it's kind of a serve π«Ά
π§ SEE ALSO π§
The friend group π go read these next, iykyk:
- Kernel file
./drivers/pinctrl/sprd/pinctrl-sprd.c struct sprd_pin_group(9)struct sprd_pinctrl_soc_info(9)struct sprd_pinctrl(9)
π Sign-off π
And that's the whole page, bestie β no crumbs left π Straight from ./drivers/pinctrl/sprd, dated October 2026, and honestly? She ate π₯π Go be the main character of your own pinctrl driver β¨π
π¦ 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