cdns3_gadget_init(9)
β¨ cdns3_gadget_init(9) β¨
okay so bestie, we're in the Kernel API Manual today (yes, the kernel one, don't panic π) and we're talking about cdns3_gadget_init β the little function that gets the gadget up and running. slay.
πΈ NAME πΈ
cdns3_gadget_init β literally here to initialize the device structure. that's her whole job. iconic behavior, no notes.
π SYNOPSIS π
int cdns3_gadget_init (struct cdns *cdns );
π ARGUMENTS π
cdnsβ yourcdnsinstance. that's it, that's the one (1) argument, and she's carrying the whole vibe π«Ά
π¦ DESCRIPTION π¦
so what does she actually do? she initializes the gadget. periodt. this function sets up the gadget, and if you're in here poking at the cdns3 USB code you already know that's the main character moment of the whole file πβ¨
π SEE ALSO π
the whole squad β every single one of these cuties is related, go say hi π:
- Kernel file
./drivers/usb/cdns3/cdns3-gadget.cβ the source, the origin story πΈ
and now the friend group, in the order the manual lists them:
cdns3_clear_register_bit(9)cdns3_set_register_bit(9)cdns3_ep_addr_to_index(9)cdns3_next_request(9)cdns3_next_align_buf(9)cdns3_next_priv_request(9)cdns3_select_ep(9)cdns3_get_tdl(9)cdns3_allocate_trb_pool(9)cdns3_ep_stall_flush(9)cdns3_hw_reset_eps_config(9)cdns3_ep_inc_trb(9)cdns3_ep_inc_enq(9)cdns3_ep_inc_deq(9)cdns3_allow_enable_l1(9)cdns3_start_all_request(9)cdns3_wa2_descmiss_copy_data(9)cdns3_wa2_descmissing_packet(9)cdns3_gadget_giveback(9)cdns3_ep_run_transfer(9)cdns3_trb_handled(9)cdns3_check_ep_interrupt_proceed(9)cdns3_check_usb_interrupt_proceed(9)cdns3_device_irq_handler(9)cdns3_device_thread_irq_handler(9)cdns3_ep_onchip_buffer_reserve(9)cdns3_ep_config(9)cdns3_gadget_ep_alloc_request(9)cdns3_gadget_ep_free_request(9)cdns3_gadget_ep_enable(9)cdns3_gadget_ep_disable(9)__cdns3_gadget_ep_queue(9)cdns3_gadget_ep_dequeue(9)__cdns3_gadget_ep_set_halt(9)__cdns3_gadget_ep_clear_halt(9)cdns3_gadget_ep_set_halt(9)cdns3_gadget_get_frame(9)cdns3_gadget_udc_start(9)cdns3_gadget_udc_stop(9)cdns3_gadget_check_config(9)cdns3_init_eps(9)
fr fr, that's the entire list, not a single one skipped β i counted, and honestly? commitment. π
and that's the whole page bestie!! π this one lives in ./drivers/usb/cdns3 and it's dated October 2026 β so like, future vibes, we love a timestamp that ate π
β¨ bye mwah π§
π¦ 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