usb_urb_dir_in(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🫢


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