usb_get_urb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to usb_get_urb(9) from the Kernel API Manual β€” this is the little function that bumps a urb’s reference count, and honestly it’s giving quiet-but-essential main character energy πŸ’…

🌸 NAME 🌸

usb_get_urb - increments the reference count of the urb

✨ SYNOPSIS ✨

struct urb * usb_get_urb (struct urb *urb );

πŸŽ€ ARGUMENTS πŸŽ€

  • urb β€” pointer to the urb you wanna modify, and bestie, it may be NULL

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the rule: this must be called whenever a urb is transferred from a device driver to a host controller driver. that’s the whole vibe.

it’s what allows proper reference counting to happen for urbs. no cap, that part matters πŸ’–

πŸ‘‘ RETURN πŸ‘‘

you get back a pointer to the urb with the incremented reference counter. slay.

🌈 SEE ALSO 🌈

the kernel file is ./drivers/usb/core/urb.c, and the whole squad is:


source/version: ./drivers/usb/core πŸ’– date: October 2026 πŸ’– page: usb_get_urb(9) β€” mwah, that’s the whole page, bestie 🫢✨

πŸ“¦ where this page comes from