usb_get_gadget_udc_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– usb_get_gadget_udc_name(9) πŸ’–

okay so bestie, welcome to usb_get_gadget_udc_name(9) from the Kernel API Manual β€” this is the little function that grabs the name of the first UDC controller for you. ✨

🌸 NAME 🌸

usb_get_gadget_udc_name β€” get the name of the first UDC controller. This function returns the name of the first UDC controller in the system. Please note that this interface is usefull only for legacy drivers which assume that there is only one UDC controller in the system and they need to get its name before initialization. 🫢 There is no guarantee that the UDC of the returned name will be still available when the gadget driver registers itself β€” no cap, that's the vibe check. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

char * usb_get_gadget_udc_name (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments, bestie πŸ’–

✨ DESCRIPTION ✨

Returns pointer to string with UDC controller name on success, NULL otherwise. Caller should kfree returned string. πŸ‘‘

⚠️ bestie, do not forget: the caller should kfree the returned string. 🧚

🌈 SEE ALSO 🌈


mwah πŸ’‹ β€” source/version: ./drivers/usb/gadget/udc; date: October 2026; page: usb_get_gadget_udc_name(9). πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from