pwm_might_sleep(9)
π NAME π
okay so bestie, this page is pwm_might_sleep(9) straight out of the Kernel API Manual, and it's literally just one question in function form: is pwm_apply_atomic() supported? that's the whole vibe check. β¨
β¨ SYNOPSIS β¨
bool pwm_might_sleep (struct pwm_device *pwm );
like, you hand it a PWM device and it hands you back a bool. that's it. that's the whole relationship. π«Ά
π ARGUMENTS π
pwmβ the PWM device in question π like, the actual device you're curious about, not a copy, not a vibe, the real one.
π¦ RETURN π¦
so here's the tea, and pay attention because it's lowkey backwards-feeling: it returns false if pwm_apply_atomic can be called from atomic context.
yes,falseis the good news here. don't @ me, that's just how it is. π read it twice if you have to βfalsemeans atomic context is fine,pwm_apply_atomicis callable from there. no cap.
πΈ SEE ALSO πΈ
the whole friend group lives in the kernel file ./include/linux/pwm.h and honestly you should go say hi to all of them:
- 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_enable(9)pwm_disable(9)
that's the entire squad, no one left behind π
mwah, that's the page!! π this little icon came to you from ./include/linux, dated October 2026 β go forth and check your atomic context responsibly, bestie π¦π
π¦ 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