usb_gadget_s...emote_wakeup(9)
π
usb_gadget_s...emote_wakeup(9) β like, the remote wakeup switch, bestie
okay so real talk: this is a page from the Kernel API Manual, and the star of the show is usb_gadget_set_remote_wakeup. it's short, it's sweet, it's literally two arguments and a return code. let's get into it β¨
π¦ NAME π¦
usb_gadget_set_remote_wakeup β this one configures the device remote wakeup feature. that's it. that's the whole vibe. π«
πΈ SYNOPSIS πΈ
int usb_gadget_set_remote_wakeup (struct usb_gadget *gadget , int set );
yes queen, that's the entire signature, no cap π
π ARGUMENTS π
gadgetβ the device you're configuring for remote wakeup. it's giving "main character," iykyk π«Άsetβ the value you wanna configure. that's the whole assignment, fr fr.
π DESCRIPTION π
okay so here's the tea, and it's genuinely this simple:
set it to one to enable the remote wakeup feature, and set it to zero to disable it. slay. no in-between, no secret third option. π
and what does it give back? it returns zero on success, else a negative errno. so like, zero = we ate π , negative = something went sideways and you're getting an errno back. periodt.
π₯ SEE ALSO π₯
literally the whole extended friend group, no one left out, everyone invited to the party π
the source file it lives in:
- Kernel file
./drivers/usb/gadget/udc/core.c
the squad:
struct usb_udc(9)usb_ep_set_maxpacket_limit(9)usb_ep_enable(9)usb_ep_disable(9)usb_ep_alloc_request(9)usb_ep_free_request(9)usb_ep_queue(9)usb_ep_dequeue(9)usb_ep_set_halt(9)usb_ep_clear_halt(9)usb_ep_set_wedge(9)usb_ep_fifo_status(9)usb_ep_fifo_flush(9)usb_gadget_frame_number(9)usb_gadget_wakeup(9)usb_gadget_set_selfpowered(9)usb_gadget_clear_selfpowered(9)usb_gadget_vbus_connect(9)usb_gadget_vbus_draw(9)usb_gadget_vbus_disconnect(9)usb_gadget_connect(9)usb_gadget_disconnect(9)usb_gadget_deactivate(9)usb_gadget_activate(9)usb_gadget_giveback_request(9)gadget_find_ep_by_name(9)usb_gadget_check_config(9)usb_udc_vbus_handler(9)usb_gadget_udc_reset(9)usb_gadget_udc_start_locked(9)usb_gadget_udc_stop_locked(9)usb_gadget_udc_set_speed(9)usb_gadget_enable_async_callbacks(9)usb_gadget_disable_async_callbacks(9)usb_udc_release(9)usb_initialize_gadget(9)usb_add_gadget(9)usb_add_gadget_udc_release(9)usb_get_gadget_udc_name(9)usb_add_gadget_udc(9)usb_del_gadget(9)usb_del_gadget_udc(9)
lowkey a reminder:setis anint, and one = on, zero = off. don't overthink it bestie π
and that's the whole page!! mwah π this little icon came from ./drivers/usb/gadget/udc, dated October 2026 β go off, kernel docs, you ate πβπ§
π¦ 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