usb_fill_int_urb(9)
β¨ NAME β¨
Okay bestie, this is the usb_fill_int_urb(9) page from the Kernel API Manual π«Ά β and yes, itβs the macro to help initialize a interrupt urb. Thatβs the whole assignment, no cap. π
π SYNOPSIS π
void usb_fill_int_urb (struct urb *urb , struct usb_device *dev ,
unsigned int pipe , void *transfer_buffer , int buffer_length ,
usb_complete_t complete_fn , void *context , int interval );
Thatβs the full signature β every pointer and int exactly where it belongs. β¨
πΈ ARGUMENTS πΈ
urbβ pointer to the urb to initialize. πdevβ pointer to thestruct usb_devicefor this urb. π¦pipeβ the endpoint pipe. β¨transfer_bufferβ pointer to the transfer buffer. The buffer must be suitable for DMA. πbuffer_lengthβ length of the transfer buffer. πcomplete_fnβ pointer to theusb_complete_tfunction. πcontextβ what to set the urb context to. πΈintervalβ what to set the urb interval to, encoded like the endpoint descriptor'sbIntervalvalue. π§
π¦ DESCRIPTION π¦
It initializes a interrupt urb with the proper information needed to submit it to a device. Literally thatβs the whole point: fill it in right so it can be submitted. β¨
Refer to usb_fill_control_urb for a description of the requirements for transfer_buffer. π
Note that High Speed and SuperSpeed(+) interrupt endpoints use a logarithmic encoding of the endpoint interval, and express polling intervals in microframes (eight per millisecond) rather than in frames (one per millisecond). π§β¨
π SEE ALSO π
The whole see-also squad, no cap: Kernel file ./include/linux/usb.h β 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_urb_dir_in(9), usb_urb_dir_out(9), struct usb_sg_request(9). iykyk π
source/version: ./include/linux Β· October 2026 Β· page: usb_fill_int_urb(9) β byeee bestie, go initialize those interrupt urbs responsibly πβ¨
π¦ 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