dwc3_gadget_dctl_write_safe(9)
β¨ NAME β¨
dwc3_gadget_dctl_write_safe β write to DCTL safe from link state change π
Okay bestie, welcome to the dwc3_gadget_dctl_write_safe(9) page in the Kernel API Manual β this is the lowkey iconic helper for writing to DCTL without sending a link state change request. It's giving "read-modify-write but make it not chaotic" energy, fr fr. π¦
πΈ SYNOPSIS πΈ
void dwc3_gadget_dctl_write_safe (struct dwc3 *dwc , u32 value );
π ARGUMENTS π
dwcβ pointer to our context structure. Like, the main characterstruct dwc3 *you're working with. π«Άvalueβ value to write to DCTL. Literally the thing going into DCTL. β¨
π¦ DESCRIPTION π¦
Use this function when you're doing a read-modify-write to DCTL. That's the whole vibe. π―
It will not send a link state change request. No cap β that's the important part, and the way that this helper just quietly handles your DCTL read-modify-write is honestly so slay. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/usb/dwc3/gadget.h next_request(9)dwc3_gadget_move_started_request(9)dwc3_gadget_move_cancelled_request(9)dwc3_gadget_ep_get_transfer_index(9)
Mwah π this cutie little page comes from the Kernel API Manual, source path ./drivers/usb/dwc3, dated October 2026, and its footer is dwc3_gadget_dctl_write_safe(9) β periodt. π«Άβ¨
π¦ 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