STRUCT SAMSUNG_PWM_CHIP(9)
π 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 beERR_PTRif 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 beERR_PTRif not present). same energy, clock number two. also can beERR_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
- 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