pwm_might_sleep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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, false is the good news here. don't @ me, that's just how it is. πŸ’€ read it twice if you have to β€” false means atomic context is fine, pwm_apply_atomic is 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:

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