STRUCT SAMSUNG_PWM_CHANNEL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct samsung_pwm_channel(9) β€” the Kernel API Manual, but make it make sense πŸ’–

okay bestie, welcome to the little glow-up doc for struct samsung_pwm_channel(9) ✨ this is the glow-up where the kernel API actually gets explained in a way that doesn't make your eyes glaze over. it's all about the private data of a PWM channel β€” yes, private, like it's got a finsta and you don't 🫢


🌸 NAME 🌸

struct samsung_pwm_channel β€” private data of PWM channel πŸ’…

like, this struct is the main character of one single channel's vibes. no cap.

✨ SYNOPSIS ✨

struct samsung_pwm_channel {
    u32 period_ns;
    u32 duty_ns;
    u32 tin_ns;
 };

there she is 😭 three little fields, all u32, all iconic.

πŸŽ€ Members πŸŽ€

okay so let's do a vibe check on every single member, because we do NOT skip details in this house πŸ πŸ’–

  • period_ns β€” current period in nanoseconds programmed to the hardware ⏱️ literally the period, in ns, that's actually been programmed into the hardware. that's it. that's the whole thing.
  • duty_ns β€” current duty time in nanoseconds programmed to the hardware πŸ’… the duty time, in ns, and again β€” programmed to the hardware. we stay factual, we stay fed.
  • tin_ns β€” time of one timer tick in nanoseconds with current timer rate πŸ•°οΈ one timer tick, measured in ns, using the current timer rate. tiny little unit of time, huge little unit of lore.
ngl, this struct is short but it's doing a LOT. every field is u32, every field is in nanoseconds, and every field is lowkey obsessed with the hardware. periodt.

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/pwm/pwm-samsung.c πŸ‘€
  • struct samsung_pwm_chip(9) β€” the sibling, the parent-figure, the one who actually keeps the whole chip together 🫢

iykyk πŸ’œ


okay that's the whole page, bestie 🌈 no notes, no crumbs. this one came straight out of ./drivers/pwm and it's dated October 2026, living its best life as struct samsung_pwm_channel(9) πŸ’– slay, stay hydrated, and go read pwm-samsung.c πŸŽ€

πŸ“¦ where this page comes from