pwm_put(9)
π pwm_put(9) β like, the Kernel API Manual page, bestie
okay so real talk, this is a page from the Kernel API Manual, and it is short but it is important. we're talking about letting go of a PWM device β the graceful exit, the "thanks for everything, you can go now" moment. no cap, everybody who grabs a PWM has to give it back, and pwm_put is literally the function that does it. β¨
π NAME π
pwm_put β release a PWM device
like... you're done with it. you're releasing it. that's the whole vibe check. π¦
β¨ SYNOPSIS β¨
void pwm_put (struct pwm_device *pwm );
that's it. that's the whole signature. she's simple, she's clean, she's iconic. π
πΈ ARGUMENTS πΈ
pwmβ a PWM device. that's the one you're releasing, bestie. hand it over, let it go, main character energy only. π
π«Ά SEE ALSO π«Ά
okay this is the part where the page just name-drops the entire friend group, and honestly? obsessed. π first off, the kernel file itself:
- Kernel file
./drivers/pwm/core.c
and then the whole squad β every single one, no skipping, fr fr:
pwm_round_waveform_might_sleep(9)pwm_get_waveform_might_sleep(9)pwm_set_waveform_might_sleep(9)pwm_apply_might_sleep(9)pwm_apply_atomic(9)pwm_get_state_hw(9)pwm_adjust_config(9)pwm_capture(9)pwm_request_from_chip(9)of_pwm_get(9)acpi_pwm_get(9)pwm_get(9)devm_pwm_get(9)devm_fwnode_pwm_get(9)__pwmchip_add(9)pwmchip_remove(9)pwm_add_table(9)pwm_remove_table(9)
π reminder:pwm_putis literally the release call. you got a PWM device from somewhere in that list above? you give it back withpwm_put. that's the circle of life, iykyk.
and that's the page!! π super short, super sweet, super kernel. this masterpiece of documentation lives down in ./drivers/pwm, dated October 2026, and yes the page name at the bottom is still pwm_put(9) because consistency is also iconic. mwah ππ§ββοΈπ
π¦ 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