Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: July 2017
 
 

libusb(3LIB)

Name

libusb - user-space USB device management library

Synopsis

cc [ flag... ] –I/usr/include file... –L/usr/lib \
     –R/usr/lib –lusb [ library... ]
#include <usb.h>

Description

The libusb library contains interfaces for managing USB devices without a kernel driver. It is an open-source API supported on Linux, MacOS X, and NetBSD. See http://libusb.sourceforge.net.

The current implementation is version 0.1.8 of the libusb API.

Complete documentation for this library can be found at /usr/share/doc/libusb/libusb.txt.

INTERFACES

The shared object libusb.so.1 provides the following public interfaces. See Intro(3) for additional information on shared object interfaces.

usb_bulk_read
usb_bulk_write
usb_claim_interface
usb_clear_halt
usb_close
usb_control_msg
usb_find_busses
usb_find_devices
usb_get_busses
usb_get_descriptor_by_endpoint
usb_get_descriptor
usb_get_string
usb_get_string_simple
usb_init
usb_interrupt_read
usb_interrupt_write
usb_open
usb_release_interface
usb_reset
usb_resetep
usb_set_altinterface
usb_set_configuration
usb_set_debug
usb_strerror

Files

/usr/lib/libusb.so.1

shared object

/usr/lib/64/libusb.so.1

64–bit shared object

/usr/libusb_plugins

implementation-specific libusb modules

/usr/bin/libusb-config

script to determine linking environment

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library/usb/libusb, system/library/usb/libusbut, SUNWlibugenusb
Interface Stability
Volatile
MT-Level
Unsafe

See Also

Intro(3), attributes(5)

http://libusb.sourceforge.net