usb_power_de...capabilities(9)
π usb_power_delivery_register_capabilities(9) β Kernel API Manual energy π
πΈ NAME πΈ
usb_power_delivery_register_capabilities β Register a set of capabilities. periodt. π
β¨ SYNOPSIS β¨
struct usb_power_delivery_capabilities *
usb_power_delivery_register_capabilities (struct usb_power_delivery *pd
, struct usb_power_delivery_capabilities_desc *desc );
π ARGUMENTS π
pdβ The USB PD instance that the capabilities belong to. Like, this is the USB PD home base for these capabilities, bestie. πdescβ Description of the Capabilities Message. This is where the Capabilities Message gets described. π
π¦ DESCRIPTION π¦
Okay so this function registers a Capabilities Message described in desc. The capabilities will have their own sub-directory under pd in sysfs. Itβs giving organized little folder moment. ποΈ
The function returns pointer to struct usb_power_delivery_capabilities, or ERR_PRT(errno). Yes, ERR_PRT(errno) β that spelling is straight from the page, bestie, no autocorrect, no cap. π
π SEE ALSO π
- Kernel file
./drivers/usb/typec/pd.c usb_power_delivery_unregister_capabilities(9)usb_power_delivery_register(9)usb_power_delivery_unregister(9)usb_power_delivery_link_device(9)usb_power_delivery_unlink_device(9)
xoxo, bestie π«Ά source/version: ./drivers/usb/typec Β· date: October 2026 Β· Kernel API Manual, already folded in at the top like a good little header π
π¦ 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