RE: [PATCH 2/4] usb: introduce usb force power off mechanism

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 27 Mar 2013, Lan, Tianyu wrote:

> A small tool to test this patch.
> 
> #include <stdio.h>
> #include <unistd.h>
> #include <fcntl.h>
> #include <errno.h>
> #include <sys/ioctl.h>
> #include <linux/usbdevice_fs.h>
> 
> #define USBDEVFS_POWER_RESET	   _IO('U', 28)
> 
> int main(int argc, char **argv)
> {
> 	const char *filename;
> 	int fd;
> 	int rc;
> 
> 	if (argc != 2) {
> 		fprintf(stderr, "Usage: usbreset device-filename\n");

The name should be usbrepower (or usb-repower, which is more readable).  
Not usbreset -- there's already a different program using that name.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux