Get a pointer to the memory allocated by the extra parameter
#include <sys/usbdi.h> void *usbd_device_extra( struct usbd_device *device );
libusbdi
You use the usbd_device_extra() function to get a pointer to the additional memory allocated via the extra parameter in usbd_attach().
A pointer to the additional memory, or NULL if no device-specific memory was allocated by usbd_attach().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |