xudc_epconfig(9)
π xudc_epconfig β Kernel API Manual π
ok so bestie, welcome to the Kernel API Manual, the corner of the kernel where the USB gadget girlies live. this one's short and sweet, so let's get into it β¨
πΈ NAME πΈ
xudc_epconfig β configures the given endpoint. that's it. that's the whole job π«Ά
β¨ SYNOPSIS β¨
void xudc_epconfig (struct xusb_ep *ep , struct xusb_udc *udc );
yes the spacing is a little quirky, no we are not fixing it, it's canon π
π¦ ARGUMENTS π¦
epβ pointer to the usb device endpoint structure. your actual endpoint, the main character of this whole operation πudcβ pointer to the usb peripheral controller structure. the controller vibe-check partner in crime π
both of these are pointers, both of these are required, do not come to this function empty-handed π
π DESCRIPTION π
okay so here's the tea: this function configures a specific endpoint with the given configuration data. that's the whole bit. it takes your endpoint (ep) and your peripheral controller (udc) and makes the endpoint, like, actually configured with the configuration data it's supposed to have β¨
no cap, that's exactly as much detail as the page gives us β she's a short one, lowkey iconic for it π
π SEE ALSO π
Kernel file ./drivers/usb/gadget/udc/udc-xilinx.c β go read the source, it's giving β¨main character fileβ¨
the struct crew π§
struct xusb_req(9)struct xusb_ep(9)struct xusb_udc(9)
the register / status girlies π
the dma + fifo squad π₯
xudc_start_dma(9)xudc_dma_send(9)xudc_dma_receive(9)xudc_eptxrx(9)xudc_done(9)xudc_read_fifo(9)xudc_write_fifo(9)xudc_nuke(9)
the endpoint besties π
xudc_ep_set_halt(9)__xudc_ep_enable(9)xudc_ep_enable(9)xudc_ep_disable(9)xudc_ep_alloc_request(9)xudc_free_request(9)__xudc_ep0_queue(9)xudc_ep0_queue(9)xudc_ep_queue(9)xudc_ep_dequeue(9)xudc_ep0_enable(9)xudc_ep0_disable(9)
the whole-lifecycle crew πΈ
xudc_get_frame(9)xudc_wakeup(9)xudc_pullup(9)xudc_eps_init(9)xudc_stop_activity(9)xudc_start(9)xudc_stop(9)xudc_clear_stall_all_ep(9)xudc_startup_handler(9)
the control + irq + probe girlies π
xudc_ep0_stall(9)xudc_setaddress(9)xudc_getstatus(9)xudc_set_clear_feature(9)xudc_handle_setup(9)xudc_ep0_out(9)xudc_ep0_in(9)xudc_ctrl_ep_handler(9)xudc_nonctrl_ep_handler(9)xudc_irq(9)xudc_probe(9)xudc_remove(9)
ngl there's no WARNINGS, no BUGS, no RETURN VALUE section here β this function returns void and the page says nothing else about it, so don't @ me for details that aren't on the page π
okay that's the whole page bestie, you ate that π«Ά from ./drivers/usb/gadget/udc, dated October 2026, and it's xudc_epconfig(9) β iykyk πβ¨
π¦ 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