usb_enable_endpoint(9)
π NAME π
usb_enable_endpoint β bestie, this is the one that turns an endpoint ON for USB communications β¨
So this page lives in the Kernel API Manual, and ngl it's a tiny little function with a big job: getting your endpoint ready to actually talk. π«Ά
πΈ SYNOPSIS πΈ
void usb_enable_endpoint (struct usb_device *dev , struct usb_host_endpoint *ep , bool reset_ep );
π ARGUMENTS π
devβ the device whose interface is being enabled π like, the whole device, the main character hereepβ the endpoint, i.e. the actual thing we're enabling πreset_epβ a flag that says whether to reset the endpoint state π yes or no, that's the vibe check
π¦ DESCRIPTION π¦
Okay so here's the tea: it resets the endpoint state if you asked it to (that's reset_ep doing its thing), and then it sets the dev->ep_{in,out} pointers. π
And for control endpoints, it handles both the input and the output sides β no picking favorites, both get loved on πβ¨
π SEE ALSO π
Kernel file ./drivers/usb/core/message.c β and literally all of these besties:
usb_control_msg(9)usb_control_msg_send(9)usb_control_msg_recv(9)usb_interrupt_msg(9)usb_bulk_msg(9)usb_bulk_msg_killable(9)usb_sg_init(9)usb_sg_wait(9)usb_sg_cancel(9)usb_get_descriptor(9)usb_get_string(9)usb_string(9)usb_cache_string(9)usb_get_status(9)usb_clear_halt(9)usb_disable_endpoint(9)usb_reset_endpoint(9)usb_disable_interface(9)usb_disable_device(9)usb_enable_interface(9)usb_set_interface(9)usb_reset_configuration(9)usb_set_wireless_status(9)usb_driver_set_configuration(9)cdc_parse_cdc_header(9)
π lowkey important: this page is from./drivers/usb/core, dated October 2026, and it's theusb_enable_endpoint(9)page β periodt. That's the whole footer, bestie, no cap ππ«Άβ¨
π¦ 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