usb_urb_dir_out(9)
β¨ usb_urb_dir_out(9) β the vibe check for URBs β¨
okay so bestie, picture this: you're deep in Kernel API Manual territory, surrounded by USB structs, and you just need to know one thing β is this URB going out or not? That's literally it. That's the whole function. And it slays at it. π
πΈ NAME πΈ
usb_urb_dir_out β check if an URB describes an OUT transfer
π SYNOPSIS π
int usb_urb_dir_out (struct urb *urb );
π¦ ARGUMENTS π¦
urbβ the URB to be checked. yes bestie, this URB. the one you're holding. give it a look π
β RETURN β
1 if urb describes an OUT transfer (host-to-device), otherwise 0.
like, that's it. one or zero. no cap, no in-between, no β¨mysteryβ¨ third value. it's giving binary icon behavior. π₯
heads up: the 0 is "otherwise" β so literally anything that isn't an OUT transfer (host-to-device) lands there. don't go reading extra meaning into it, fr fr. π
π SEE ALSO π
ok so this is the part where the manpage just. keeps going. and going. and honestly? we love a thorough queen. π«Ά everything below lives in the Kernel file ./include/linux/usb.h:
struct usb_host_endpoint(9)struct usb_interface(9)usb_set_intfdata(9)struct usb_interface_cache(9)struct usb_host_config(9)struct usb_device(9)usb_hub_for_each_child(9)usb_interface_claimed(9)usb_make_path(9)USB_DEVICE(9)USB_DEVICE_VER(9)USB_DEVICE_INTERFACE_CLASS(9)USB_DEVICE_INTERFACE_PROTOCOL(9)USB_DEVICE_INTERFACE_NUMBER(9)USB_DEVICE_INFO(9)USB_INTERFACE_INFO(9)USB_DEVICE_AND_INTERFACE_INFO(9)USB_VENDOR_AND_INTERFACE_INFO(9)struct usb_driver(9)struct usb_device_driver(9)struct usb_class_driver(9)module_usb_driver(9)struct urb(9)usb_fill_control_urb(9)usb_fill_bulk_urb(9)usb_fill_int_urb(9)usb_urb_dir_in(9)struct usb_sg_request(9)
and yeah β usb_urb_dir_in(9) is right there at the end, the sibling, the counterpart, the other direction. iykyk. π
that's the whole page bestie, you ate it up, no crumbs π
this little love letter to USB lives under ./include/linux, dated October 2026, in the Kernel API Manual β mwah, go check your URBs, ily, bye! πππ§
π¦ 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