usb_urb_dir_in(9)
β¨ usb_urb_dir_in(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this one's a tiny little legend and it's lowkey iconic for how much mileage it gets out of a single int. Let's get into it π
πΈ NAME πΈ
usb_urb_dir_in β the vibe check that tells you whether an URB is describing an IN transfer π
π¦ SYNOPSIS π¦
int usb_urb_dir_in (struct urb *urb );
π ARGUMENTS π
urbβ the URB we're checking, bestie. that's the one, that's the whole input π
π₯ RETURN π₯
1 if urb describes an IN transfer (device-to-host), otherwise 0. that's it. that's the whole answer β no cap, no edge cases, just a clean little 1 or 0 β¨
π SEE ALSO π
so this function rolls deep β it lives in the kernel file ./include/linux/usb.h and here's the whole friend group, every single one of them, no skips π«Ά
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_out(9)struct usb_sg_request(9)
and that's the whole page, bestie π short, sweet, and serving exactly one boolean β¨
file this one under ./include/linux β it's the October 2026 girlies' edition of usb_urb_dir_in(9) and honestly? she ate ππ mwah, go check your URBs ππ§β
π¦ 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