dwc2_do_reserve(9)
π
dwc2_do_reserve(9) β Kernel API Manual π
okay so bestie, welcome to the kernel API manual page for dwc2_do_reserve(9). it's a whole thing, but i gotchu π«Ά
β¨ NAME β¨
dwc2_do_reserve β Make a periodic reservation π
like, reserving a slot. in a schedule. for USB stuff. iconic behavior honestly.
πΈ SYNOPSIS πΈ
int dwc2_do_reserve (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
she takes two args and returns an int. that's the whole vibe check β
π¦ ARGUMENTS π¦
hsotgβ the HCD state structure for the DWC OTG controller. yes it's a whole struct, no you don't get to skip it πqhβ the QH for the periodic transfer. our main character for this function fr fr π
π DESCRIPTION π
so what does she actually do? she tries to allocate space in the periodic schedule β¨
and here's the fun part β depending on the parameters, this might use the microframe scheduler or the dumb scheduler. two schedulers. two vibes. iykyk π
ngl the name "dumb scheduler" is sending me but it's literally what the manpage says so we're keeping it π
β RETURN β
0upon success π- error upon failure π
that's it. that's the return section. slay.
π SEE ALSO π
buckle up bestie, this list is long β but she ate and we're listing every single one π
- the kernel file
./drivers/usb/dwc2/hcd_queue.c dwc2_periodic_channel_available(9)dwc2_check_periodic_bandwidth(9)pmap_schedule(9)pmap_unschedule(9)dwc2_get_ls_map(9)dwc2_qh_print(9)dwc2_qh_schedule_print(9)dwc2_ls_pmap_schedule(9)dwc2_ls_pmap_unschedule(9)dwc2_hs_pmap_schedule(9)dwc2_hs_pmap_unschedule(9)dwc2_uframe_schedule_split(9)dwc2_uframe_schedule_hs(9)dwc2_uframe_schedule_ls(9)dwc2_uframe_schedule(9)dwc2_uframe_unschedule(9)dwc2_pick_first_frame(9)dwc2_do_unreserve(9)dwc2_unreserve_timer_fn(9)dwc2_check_max_xfer_size(9)dwc2_schedule_periodic(9)dwc2_deschedule_periodic(9)dwc2_wait_timer_fn(9)dwc2_qh_init(9)dwc2_hcd_qh_create(9)dwc2_hcd_qh_free(9)dwc2_hcd_qh_add(9)dwc2_hcd_qh_unlink(9)dwc2_next_for_periodic_split(9)dwc2_next_periodic_start(9)dwc2_hcd_qtd_init(9)dwc2_hcd_qtd_add(9)
like i said. all of them. no cap π§
okay that's the whole page bestie!! π this one lives in ./drivers/usb/dwc2 and it's dated October 2026 β so yeah, from the future (or at least from the dwc2 docs), mwah π see you in the next SEE ALSO rabbit hole π¦β¨
π¦ 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