最終更新:2015-02-02 (月) 19:44:23 (3364d)  

libusb_claim_interface
Top / libusb_claim_interface

Claim an interface on a given device handle.

http://libusb.sourceforge.net/api-1.0/group__dev.html#ga32fabedf5f13fdecf1cb33acdb19b57a

実装

  • usbi_backend->claim_interface

Linux

メモ

  • You must claim the interface you wish to use before you can perform I/O on any of its endpoints.
  • It is legal to attempt to claim an already-claimed interface, in which case libusb just returns 0 without doing anything.
  • If auto_detach_kernel_driver is set to 1 for dev, the kernel driver will be detached if necessary, on failure the detach error is returned.
  • Claiming of interfaces is a purely logical operation; it does not cause any requests to be sent over the bus. Interface claiming is used to instruct the underlying operating system that your application wishes to take ownership of the interface.
  • This is a non-blocking function.

メモ

  • Automatic kernel driver detachment is disabled on newly opened device handles by default.