usb_func_wakeup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘‘

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