STRUCT SOPHGO_VDDIO_CFG_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 above
  • get_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 through map, which is a const u32 ** β€” a pointer to a pointer, main character energy fr fr
  • get_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 that const u32 **map out-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