pwm_enable(9)
Hey bestie π you're reading pwm_enable(9) from the Kernel API Manual β and yes, it's exactly the glow-up you think it is. β¨
πΈ NAME πΈ
pwm_enable - start a PWM output toggling π
π¦ SYNOPSIS π¦
int pwm_enable (struct pwm_device *pwm );
π ARGUMENTS π
pwmβ PWM device. That's the device you're handing over so it can get enabled, bestie. π«Ά
β RETURN β
It returns 0 on success or a negative error code on failure. So: 0 = slay, negative = error code, no cap. πβ¨
π SEE ALSO π
The whole little friend group is chilling around the kernel file ./include/linux/pwm.h, and here's the full squad:
- Kernel file
./include/linux/pwm.h enum pwm_polarity(9)struct pwm_args(9)struct pwm_waveform(9)struct pwm_device(9)pwm_get_state(9)pwm_init_state(9)pwm_get_relative_duty_cycle(9)pwm_set_relative_duty_cycle(9)struct pwm_capture(9)struct pwm_ops(9)struct pwm_chip(9)pwmchip_supports_waveform(9)pwm_config(9)pwm_disable(9)pwm_might_sleep(9)
okay bye bestie π«Ά this cutie comes from the ./include/linux source tree, dated October 2026, and it's filed as pwm_enable(9) β 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