hdm_write_completion(9)
β¨ hdm_write_completion(9) β¨
okay so this is a page from the Kernel API Manual, section 9 (that's the kernel API section bestie, we love her) β and it's lowkey a tiny little function but she does so much. it's giving "small but mighty" energy fr fr π
π NAME π
hdm_write_completion β the completion function for submitted Tx URBs. that's it, that's the vibe π
π¦ SYNOPSIS π¦
void hdm_write_completion (struct urb *urb );
like, that's the whole signature. one arg. no return value. she's void and she's unbothered β¨
πΈ ARGUMENTS πΈ
urbβ the URB that has been completed. yes bestie, that URB. the one that just finished doing its little thing π
π₯ DESCRIPTION π₯
okay so here's what happens, pay attention π«Ά
this function checks the status of the completed URB. and then it's a little choose-your-own-adventure:
- if the URB has been unlinked before, it is immediately freed β like, no thoughts, head empty, goodbye π
- on any other error, the MBO transfer flag is set β not me setting flags at the scene of the crime π
- on success, it frees allocated resources and calls the completion function β iconic behavior, clean exit, we stan a responsible queen π
so yeah. three paths. she handles all of them. main character energy tbh π
β CONTEXT β
interrupt! β‘
like actually. this runs in interrupt context. keep that in mind bestie, no sleeping on the job, no blocking, we're in the fast lane here ποΈπ¨
π SEE ALSO π
the whole friend group, gathered for you π:
- Kernel file
./drivers/most/most_usb.c struct most_dci_obj(9)struct most_dev(9)drci_rd_reg(9)drci_wr_reg(9)get_stream_frame_size(9)hdm_poison_channel(9)hdm_add_padding(9)hdm_remove_padding(9)hdm_read_completion(9)hdm_enqueue(9)hdm_configure_channel(9)hdm_request_netinfo(9)link_stat_timer_handler(9)wq_netinfo(9)wq_clear_halt(9)hdm_probe(9)hdm_disconnect(9)
like a whole group chat of functions. go read them. iykyk π§
aaaaand that's the page!! πΈ source is ./drivers/most, and the date on this lil masterpiece is October 2026 β so mark your calendars bestie, this one's dated and everything ππ no cap, that's the whole thing. periodt. β¨
π¦ 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