pwm_request_from_chip(9)
π pwm_request_from_chip(9) π
okay bestie, this is pwm_request_from_chip(9) from the Kernel API Manual β and the whole vibe is request a PWM device relative to a PWM chip. no cap, that's literally the assignment. π
πΈ NAME πΈ
pwm_request_from_chip β request a PWM device relative to a PWM chip. periodt. π
β¨ SYNOPSIS β¨
struct pwm_device * pwm_request_from_chip (struct pwm_chip *chip ,
unsigned int index , const char *label );
π¦ ARGUMENTS π¦
chipβ the PWM chip in question. this is the main-character chip you're asking through. πindexβ per-chip index of the PWM to request. literally the index, bestie, don't fudge it. β¨labelβ a literal description string of this PWM. like a tiny name tag for the PWM. π·οΈ
π₯ RETURN π₯
A pointer to the PWM device at the given index of the given PWM chip. π«Ά
A negative error code is returned if the index is not valid for the specified PWM chip or if the PWM device cannot be requested. π
π SEE ALSO π
Kernel file ./drivers/pwm/core.c is the source-file mention, and here's the whole friend group:
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)of_pwm_get(9)acpi_pwm_get(9)pwm_get(9)pwm_put(9)devm_pwm_get(9)devm_fwnode_pwm_get(9)__pwmchip_add(9)pwmchip_remove(9)pwm_add_table(9)pwm_remove_table(9)
this cutie comes from the ./drivers/pwm source and the October 2026 date, and the page itself is pwm_request_from_chip(9) β 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