From: Bart Van Assche Date: Mon, 18 Apr 2011 10:37:56 +0000 (+0000) Subject: Linux/syswrap: add support for USBDEVFS_RESET (patch contributed by Brad Hards ). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11702 --- diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c index df5654a024..4d3dca9092 100644 --- a/coregrind/m_syswrap/syswrap-linux.c +++ b/coregrind/m_syswrap/syswrap-linux.c @@ -4778,6 +4778,8 @@ PRE(sys_ioctl) } } break; + case VKI_USBDEVFS_RESET: + break; /* I2C (/dev/i2c-*) ioctls */ case VKI_I2C_SLAVE: diff --git a/include/vki/vki-linux.h b/include/vki/vki-linux.h index cfd47680fa..eee044d564 100644 --- a/include/vki/vki-linux.h +++ b/include/vki/vki-linux.h @@ -2394,6 +2394,7 @@ struct vki_usbdevfs_ioctl { #define VKI_USBDEVFS_REAPURBNDELAY _VKI_IOW('U', 13, void *) #define VKI_USBDEVFS_CONNECTINFO _VKI_IOW('U', 17, struct vki_usbdevfs_connectinfo) #define VKI_USBDEVFS_IOCTL _VKI_IOWR('U', 18, struct vki_usbdevfs_ioctl) +#define VKI_USBDEVFS_RESET _VKI_IO('U', 20) #define VKI_USBDEVFS_URB_TYPE_ISO 0 #define VKI_USBDEVFS_URB_TYPE_INTERRUPT 1