STRUCT SAMSUNG_PWM_CHIP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct samsung_pwm_chip(9) πŸ’œ

okay bestie, so this is the Kernel API Manual entry for struct samsung_pwm_chip(9) β€” and yes, that (9) means it lives in section 9, the kernel-dev zone, we love a niche queen. ✨


🌸 NAME 🌸

struct samsung_pwm_chip β€” the private data of a PWM chip. literally its own little diary of secrets. no cap. πŸŽ€


✨ SYNOPSIS ✨

struct samsung_pwm_chip {
    struct samsung_pwm_variant variant;
    u8 inverter_mask;
    u8 disabled_mask;
    void __iomem *base;
    struct clk *base_clk;
    struct clk *tclk0;
    struct clk *tclk1;
    struct samsung_pwm_channel channel[SAMSUNG_PWM_NUM];
 };

look at her. iconic. main character energy fr fr. πŸ’…


πŸ¦‹ MEMBERS πŸ¦‹

  • variant β€” a local copy of the hardware variant data. it's giving "screenshot of the hardware's personality so we don't have to keep asking." πŸ’–
  • inverter_mask β€” the inverter status for all channels β€” one bit per channel. yes bestie, one lil' bit each, they're sharing. πŸ“
  • disabled_mask β€” the disabled status for all channels β€” one bit per channel. same deal, one bit per channel, keeping it fair. ✨
  • base β€” base address of the mapped PWM registers. the address of the whole vibe. πŸ“
  • base_clk β€” the base clock used to drive the timers. she's the one keeping time, the group chat's mom friend. ⏰
  • tclk0 β€” external clock 0 (can be ERR_PTR if not present). so like, she might be an error pointer. don't take it personally if she's not around πŸ™ˆ
  • tclk1 β€” external clock 1 (can be ERR_PTR if not present). same energy, clock number two. also can be ERR_PTR, also not personal. πŸ’€
  • channel β€” per channel driver data. and it's an array, channel[SAMSUNG_PWM_NUM], because obviously there's more than one channel, it's a whole squad. πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./drivers/pwm/pwm-samsung.c
  • struct samsung_pwm_channel(9)

go read the source babes, it's right there iykyk 🧚


ngl this struct is just private data of the PWM chip β€” nothing dangerous, nothing deprecated, nothing undefined. she's a calm queen. but bestie, do mind those ERR_PTR clocks, they're a vibe check you actually have to run. πŸ’œ

okay that's the whole page, no gatekeeping πŸ’… β€” this came from ./drivers/pwm, dated October 2026, and the entry is struct samsung_pwm_chip(9). mwah, love u, bye 🫢🌸

πŸ“¦ where this page comes from