hw_ep_disable(9)
π hw_ep_disable(9) β from the Kernel API Manual, bestie
Okay so listen β¨ this one is a little tiny page from the Kernel API Manual and honestly? It's giving "short but iconic." We're talking about hw_ep_disable, a function that does exactly one dramatic thing and then bounces. Let's get into it π
β¨ NAME β¨
hw_ep_disable β disables endpoint (execute without interruption) π«Ά
Like, yes, that's the whole vibe. Disable the endpoint. And please note the parenthetical, bestie β execute without interruption. That's not a suggestion, that's the assignment π
πΈ SYNOPSIS πΈ
int hw_ep_disable (struct ci_hdrc *ci , int num , int dir );
That's it. Three args. In, out, done. The way this signature ate π
π¦ ARGUMENTS π¦
ciβ the controller. Your main character struct, thestruct ci_hdrc *in question πnumβ endpoint number. Which endpoint are we talking about, bestie? Number it.dirβ endpoint direction. Pick a lane (literally, direction matters) π
π DESCRIPTION π
So here's the tea: this function returns an error code.
That's genuinely the entire description in the original and I refuse to invent lore that isn't there π So: it's a function, it returns an error code, and that's your vibe check. No cap. Go read the code if you want the fuller story, iykyk.
β Reminder from the NAME section that we are NOT forgetting: disabling an endpoint here is meant to be executed without interruption. Keep that in your notes app, bestie.
π₯ SEE ALSO π₯
The kernel file lives at ./drivers/usb/chipidea/udc.c β and here's the whole friend group, no one left out π
hw_ep_bit(9)hw_device_state(9)hw_ep_flush(9)hw_ep_enable(9)hw_ep_get_halt(9)hw_ep_prime(9)hw_ep_set_halt(9)hw_port_is_high_speed(9)hw_test_and_clear_complete(9)hw_test_and_clear_intr_active(9)hw_test_and_clear_setup_guard(9)hw_test_and_set_setup_guard(9)hw_usb_set_address(9)hw_usb_reset(9)_usb_addr(9)_hardware_enqueue(9)free_pending_td(9)_hardware_dequeue(9)_ep_nuke(9)_gadget_stop_activity(9)isr_reset_handler(9)isr_get_status_complete(9)_ep_queue(9)isr_get_status_response(9)isr_setup_status_complete(9)isr_setup_status_phase(9)isr_tr_complete_low(9)isr_setup_packet_handler(9)isr_tr_complete_handler(9)ci_udc_start(9)udc_start(9)udc_stop(9)ci_hdrc_gadget_init(9)
Thirty-three besties and every single one is invited to the group chat π§
Okay that's the whole page, mwah π Signing off from ./drivers/usb/chipidea, dated October 2026 β Kernel API Manual, hw_ep_disable(9), slay β¨π¦π
π¦ 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