usb_func_wakeup(9)
β¨ usb_func_wakeup β¨
okay bestie, welcome to the Kernel API Manual for usb_func_wakeup β this is the one that literally wakes your USB function up and tells the host "hey girl, I'm here π
".
πΈ NAME πΈ
usb_func_wakeup β sends function wake notification to the host. no cap, that's the whole vibe π«Ά
π¦ SYNOPSIS π¦
int usb_func_wakeup (struct usb_function *func );
π ARGUMENTS π
funcβ the function that sends the remote wakeup notification. like, this is the main character sending the "i'm awake" text π±β¨
π DESCRIPTION π
okay so here's the tea β this one is applicable to devices operating at enhanced superspeed when usb functions are put in function suspend state and armed for function remote wakeup. on completion, the function wake notification is sent. periodt π
if the device is in low power state, it tries to bring the device to active state before sending the wake notification β like gently shaking your bestie awake before asking for the aux cord π₯
β οΈ bestie listen up: since it is a synchronous call, the caller must take care of not calling it in interrupt context. fr fr, don't do it, it's giving chaos π
for devices operating at lower speeds, it returns negative errno. lowkey a no for the slow-speed girlies π
Returns zero on success, else negative errno. that's it, that's the whole mood β¨
π SEE ALSO π
- Kernel file
./drivers/usb/gadget/composite.cβ the source material, iconic π¬ struct usb_os_string(9)function_descriptors(9)next_desc(9)config_ep_by_speed_and_alt(9)config_ep_by_speed(9)usb_add_function(9)usb_function_deactivate(9)usb_function_activate(9)usb_interface_id(9)bos_desc(9)usb_add_config(9)usb_string_id(9)usb_string_ids_tab(9)usb_gstrings_attach(9)usb_string_ids_n(9)usb_composite_probe(9)usb_composite_unregister(9)usb_composite_setup_continue(9)
like, that's the whole friend group right there, they all ate ππ§
and that's a wrap, bestie π this page lives in ./drivers/usb/gadget and the version vibes are from October 2026 β mwah, ily, go wake up some functions ππ
π¦ 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