usb_devmgr_find_free

usb_devmgr_find_free — device manager: find unclaimed devices

Synopsis

extern int usb_devmgr_find_free( int skip,
   int size,
   int* done,
   struct usbmsg_device_filter** filters,
   struct usbmsg_new_device** newdev);

Arguments

done will be set to a non-zero value if done

Description

device manager: find unclaimed devices this will search the pool of devices and return a list of free devices matching the given specification note, the function returns a negative form of the error codes on failure. Any negative return codes should be considered an error, and therefore any error code should be returned to a positive value before checking against the result codes.

See Also

USB_DEVMGR_RESULT_INVALID_ARGUMENT, USB_DEVMGR_RESULT_OK, USB_DEVMGR_RESULT_NOT_AVAILABLE