usb_get_urb(9)
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 beNULL
π¦ 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:
usb_init_urb(9)usb_alloc_urb(9)usb_free_urb(9)usb_anchor_urb(9)usb_unanchor_urb(9)usb_pipe_type_check(9)usb_urb_ep_type_check(9)usb_submit_urb(9)usb_unlink_urb(9)usb_kill_urb(9)usb_poison_urb(9)usb_block_urb(9)usb_kill_anchored_urbs(9)usb_poison_anchored_urbs(9)usb_unpoison_anchored_urbs(9)usb_anchor_suspend_wakeups(9)usb_anchor_resume_wakeups(9)usb_wait_anchor_empty_timeout(9)usb_get_from_anchor(9)usb_scuttle_anchored_urbs(9)usb_anchor_empty(9)
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
- 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