---
name: "usb_block_urb"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_block_urb"
---

# usb\_block\_urb(9)

reliably prevent further use of an URB

## NAME

usb\_block\_urb - reliably prevent further use of an URB

## SYNOPSIS

**void usb\_block\_urb(struct urb \*** *urb***);**

## ARGUMENTS

*urb*

pointer to URB to be blocked, may be NULL

## DESCRIPTION

After the routine has run, attempts to resubmit the URB will fail with error -EPERM. Thus even if the URB's completion handler always tries to resubmit, it will not succeed and the URB will become idle.

The URB must not be deallocated while this routine is running. In particular, when a driver calls this routine, it must insure that the completion handler cannot deallocate the URB.

## COPYRIGHT
