usb_power_delivery_register(9)
β¨ usb_power_delivery_register(9) β Kernel API Manual β¨
okay so bestie, gather round, we're doing a usb_power_delivery_register(9) deep dive and honestly? it's giving main character energy in the typec world π
πΈ NAME πΈ
usb_power_delivery_register β register USB Power Delivery Support. periodt.
π¦ SYNOPSIS π¦
struct usb_power_delivery * usb_power_delivery_register (struct device
*parent , struct usb_power_delivery_desc *desc );
π ARGUMENTS π
parentβ the parent device. like, the whole vibe it hangs off of π«Άdescβ the description of the USB PD contract. all the deets, literally.
π DESCRIPTION π
So this routine? you use it to register USB Power Delivery capabilities that a device (or devices, plural, we don't gatekeep) can support. π
And lowkey the important bit: these capabilities represent all the capabilities that can be negotiated with a partner β so not only the Power Capabilities that are negotiated using the USB PD Capabilities Message. highkey a bigger deal than it sounds, ngl. π
The USB Power Delivery Support object that this routine generates can be used as the parent object for all the actual USB Power Delivery Messages and objects that can be negotiated with the partner. it's like the mother of the whole friend group, fr fr. π
Returns handle to struct usb_power_delivery or ERR_PTR. that's it, that's the return π (yes, check it for errors, bestie, don't just yolo it)
π₯ SEE ALSO π₯
- Kernel file
./drivers/usb/typec/pd.cβ usb_power_delivery_register_capabilities(9)usb_power_delivery_unregister_capabilities(9)usb_power_delivery_unregister(9)usb_power_delivery_link_device(9)usb_power_delivery_unlink_device(9)
and that's the whole page, bestie β go forth and register those capabilities π
<signed-off cute bit> this one lives in ./drivers/usb/typec, dated October 2026 β so like, keep that in your notes for the vibe check π π¦ </signed-off cute bit>
π¦ 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