pxa27x_udc_stop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pxa27x_udc_stop(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so picture this: you're deep in the kernel, the USB gadget stuff is humming, and you need to shut it down properly. That's this function. It's lowkey the "ok we're done here, wrap it up" of the PXA27x UDC world, and it lives in the Kernel API Manual. Let's go ✨


🌸 NAME 🌸

pxa27x_udc_stop β€” unregister the gadget driver. That's it. That's the whole vibe. Iconic, brief, does what it says πŸ’…


✨ SYNOPSIS ✨

int pxa27x_udc_stop (struct usb_gadget *g );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • g β€” the gadget. That's the whole description, bestie, the manpage said "gadget" and honestly? Respect for the brevity 🫢 It's a struct usb_gadget *, and it's the one getting unregistered.

πŸ’– DESCRIPTION πŸ’–

So here's the tea: this bad boy returns 0 if there's no error, and -ENODEV or -EINVAL otherwise. That's the entire documented contract β€” no more, no less, no cap. Success is 0, and if something's off you get one of those two errno values, periodt.

ngl, this is the short king of manpages. Don't go inventing behaviour that isn't written down πŸ“

πŸ”₯ SEE ALSO πŸ”₯

bestie. sit down. this list is long and every single one of these is a real reference, so we're getting through all of them, iykyk 😭 They all live in the kernel file ./drivers/usb/gadget/udc/pxa27x_udc.c:

is_match_usb_pxa(9), find_pxa_ep(9), update_pxa_ep_matches(9), pio_irq_enable(9), pio_irq_disable(9), udc_set_mask_UDCCR(9), udc_clear_mask_UDCCR(9), ep_write_UDCCSR(9), ep_count_bytes_remain(9), ep_is_empty(9), ep_is_full(9), epout_has_pkt(9), set_ep0state(9), ep0_idle(9), inc_ep_stats_reqs(9), inc_ep_stats_bytes(9), pxa_ep_setup(9), pxa_eps_setup(9), pxa_ep_alloc_request(9), pxa_ep_free_request(9), ep_add_request(9), ep_del_request(9), req_done(9), ep_end_out_req(9), ep0_end_out_req(9), ep_end_in_req(9), ep0_end_in_req(9), nuke(9)

read_packet(9), write_packet(9), read_fifo(9), write_fifo(9), read_ep0_fifo(9), write_ep0_fifo(9), pxa_ep_queue(9), pxa_ep_dequeue(9), pxa_ep_set_halt(9), pxa_ep_fifo_status(9), pxa_ep_fifo_flush(9), pxa_ep_enable(9), pxa_ep_disable(9), dplus_pullup(9), pxa_udc_get_frame(9), pxa_udc_wakeup(9), should_enable_udc(9), should_disable_udc(9), pxa_udc_pullup(9), pxa_udc_vbus_session(9), pxa_udc_vbus_draw(9), pxa_udc_phy_event(9), udc_disable(9), udc_init_data(9), udc_enable(9), pxa27x_udc_start(9), stop_activity(9)

handle_ep0_ctrl_req(9), handle_ep0(9), handle_ep(9), pxa27x_change_configuration(9), pxa27x_change_interface(9), irq_udc_suspend(9), irq_udc_resume(9), irq_udc_reconfig(9), irq_udc_reset(9), pxa_udc_irq(9), pxa_udc_probe(9), pxa_udc_remove(9), pxa_udc_suspend(9), pxa_udc_resume(9)

yeah. that's all of them. no skipping, no summarising, we ate that list up πŸ’€πŸ‘‘


okay that's the page!! it's from ./drivers/usb/gadget/udc and it's dated October 2026 β€” so mark your calendar bestie, this drop is from the future 🌈⭐ and that's the whole sign-off, mwah πŸ’œπŸ§š

πŸ“¦ where this page comes from