libusb.3 (f6ac23919b16d00845b5e8b3b66662b90b7cb2e6) libusb.3 (f1b5fa6e496ae0eb2a3a60ecd613ff92d432e5b9)
1.\"
2.\" Copyright (c) 2009 Sylvestre Gallon
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 217 unchanged lines hidden (view full) ---

226.Fn libusb_reset_device "libusb_device_handle *devh"
227Perform an USB port reset for an usb device. Returns 0 on success,
228LIBUSB_ERROR_NOT_FOUND if re-enumeration is required or if the device has
229been disconnected and a LIBUSB_ERROR code on failure.
230.
231.Pp
232.
233.Ft int
1.\"
2.\" Copyright (c) 2009 Sylvestre Gallon
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 217 unchanged lines hidden (view full) ---

226.Fn libusb_reset_device "libusb_device_handle *devh"
227Perform an USB port reset for an usb device. Returns 0 on success,
228LIBUSB_ERROR_NOT_FOUND if re-enumeration is required or if the device has
229been disconnected and a LIBUSB_ERROR code on failure.
230.
231.Pp
232.
233.Ft int
234.Fn libusb_check_connected "libusb_device_handle *devh"
235Test if USB device is still connected. Returns 0 on success,
236LIBUSB_ERROR_NO_DEVICE if has been disconnected and a LIBUSB_ERROR
237code on failure.
238.
239.Pp
240.
241.Ft int
234.Fn libusb_kernel_driver_active "libusb_device_handle *devh" "int interface"
235Determine if a driver is active on a interface. Returns 0 if no kernel driver
236is active, returns 1 if a kernel driver is active, returns LIBUSB_ERROR_NO_DEVICE
237if the device has been disconnected and return a LIBUSB_ERROR code on failure.
238.
239.Pp
240.
241.Ft int

--- 241 unchanged lines hidden (view full) ---

483.Fn usb_reset
484.Fn usb_strerror
485.Fn usb_init
486.Fn usb_set_debug
487.Fn usb_find_busses
488.Fn usb_find_devices
489.Fn usb_device
490.Fn usb_get_busses
242.Fn libusb_kernel_driver_active "libusb_device_handle *devh" "int interface"
243Determine if a driver is active on a interface. Returns 0 if no kernel driver
244is active, returns 1 if a kernel driver is active, returns LIBUSB_ERROR_NO_DEVICE
245if the device has been disconnected and return a LIBUSB_ERROR code on failure.
246.
247.Pp
248.
249.Ft int

--- 241 unchanged lines hidden (view full) ---

491.Fn usb_reset
492.Fn usb_strerror
493.Fn usb_init
494.Fn usb_set_debug
495.Fn usb_find_busses
496.Fn usb_find_devices
497.Fn usb_device
498.Fn usb_get_busses
499.Fn usb_check_connected
491.
492.Sh SEE ALSO
493.Xr libusb20 3 ,
494.Xr usb 4 ,
495.Xr usbconfig 8
496.Pp
497.Pa http://libusb.sourceforge.net/
498.
499.Sh HISTORY
500.
501.Nm
502support first appeared in
503.Fx 8.0 .
500.
501.Sh SEE ALSO
502.Xr libusb20 3 ,
503.Xr usb 4 ,
504.Xr usbconfig 8
505.Pp
506.Pa http://libusb.sourceforge.net/
507.
508.Sh HISTORY
509.
510.Nm
511support first appeared in
512.Fx 8.0 .