STRUCT SOPHGO_VDDIO_CFG_OPS(9)
β¨ struct sophgo_vddio_cfg_ops(9) β¨
okay so bestie, we're in the Kernel API Manual and this page is literally about struct sophgo_vddio_cfg_ops β the pin vddio operations struct π
like, it's the little bundle of function pointers that tells the kernel how to poke at a pin's vddio settings. no cap, that's the whole vibe.
πΈ NAME πΈ
struct sophgo_vddio_cfg_ops β pin vddio operations π«Ά
π¦ SYNOPSIS π¦
okay here's the whole struct, copied exactly, do not touch, do not "clean up", iykyk:
struct sophgo_vddio_cfg_ops {
int (*get_pull_up)(const struct sophgo_pin *pin, const u32 *psmap);
int (*get_pull_down)(const struct sophgo_pin *pin, const u32
*psmap);
int (*get_oc_map)(const struct sophgo_pin *pin, const u32 *psmap,
const u32 **map);
int (*get_schmitt_map)(const struct sophgo_pin *pin, const u32
*psmap, const u32 **map);
};
it's giving "four function pointers and a dream" β
π Members π
get_pull_upβ get resistor for pull up π₯ (yes, that's exactly what it does, she pulls up)get_pull_downβ get resistor for pull down π the down-ier sibling of the one aboveget_oc_mapβ get mapping for typical low level output current value to register value map π§ so like, this one hands you the map that turns a typical low-level output current value into a register value. the map comes back throughmap, which is aconst u32 **β a pointer to a pointer, main character energy fr frget_schmitt_mapβ get mapping for register value to typical schmitt threshold π and this one maps a register value over to a typical schmitt threshold, also via thatconst u32 **mapout-param. obsessed π
π SEE ALSO π
- Kernel file
./drivers/pinctrl/sophgo/pinctrl-sophgo.h struct sophgo_cfg_ops(9)β her cousin, go say hi π¦
bestie reminder: these are all function pointers in a struct, so if one of them is NULL and you just call it anyway, that's on you, not me π
π· that's the whole page!! this one lives in ./drivers/pinctrl/sophgo and it's dated October 2026, page title struct sophgo_vddio_cfg_ops(9), straight outta the Kernel API Manual. slay, you read the whole thing, periodt π
β¨π
π¦ 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