dwc2_hs_pmap_schedule(9)
π
dwc2_hs_pmap_schedule(9) β Kernel API Manual era π
Okay bestie, welcome to the Kernel API Manual page for dwc2_hs_pmap_schedule(9). The vibe is simple: schedule something on the main high speed schedule, keep the bookkeeping cute, and donβt fumble the index. π
β¨ NAME β¨
dwc2_hs_pmap_schedule β schedule in the main high speed schedule π
π SYNOPSIS π
int dwc2_hs_pmap_schedule (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh
, bool only_one_period , int index );
π¦ ARGUMENTS π¦
hsotgβ the HCD state structure for the DWC OTG controller. literally the main character state, no cap.qhβ the QH for the periodic transfer. itβs giving βqueue head bestieβ energy.only_one_periodβ iftrue, we limit ourselves to just looking at one period (aka one100uschunk). this is used if weβve already scheduled something on the low speed schedule and need to find something that matches on the high speed one. so itβs the βjust one little period, pleaseβ switch β¨indexβ the index intoqh->hs_transfersthat weβre working with. keep your eyes on this one, bestie π
πΈ DESCRIPTION πΈ
Okay so this functionβs whole job is to schedule something on the main dwc2 schedule. π
Weβll start looking in qh->hs_transfers[index].start_schedule_us. Weβll update this with the result upon success. We also use the duration from the same structure. thatβs the little bookkeeping moment, and itβs lowkey important π«Ά
π₯ RETURN π₯
0 for success or an error code. Upon success, the dwc2_hs_transfer_time specified by index will be updated. so yes, the index gets its glow-up on the success path π
π SEE ALSO π
- 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_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_reserve(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)
xoxo, your Unix bestie π β source/version: ./drivers/usb/dwc2; date: October 2026; page: dwc2_hs_pmap_schedule(9)
π¦ 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