lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200703101736.35386.m.kozlowski@tuxland.pl>
Date:	Sat, 10 Mar 2007 17:36:34 +0100
From:	Mariusz Kozlowski <m.kozlowski@...land.pl>
To:	Alan Stern <stern@...land.harvard.edu>
Cc:	Jiri Kosina <jkosina@...e.cz>, Greg KH <greg@...ah.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org, linux-usb-devel@...ts.sourceforge.net
Subject: Re: [linux-usb-devel] 2.6.21-rc3-mm1

Hello,

> > Right. Can't be 100% sure but without the patch it would have probably
> > failed by now so I guess the patch is ok. Not sure how to make usb mouse
> > plugging/unplugging process automatic ;-)
> 
> 	echo FOO >/sys/bus/usb/drivers/usbhid/unbind
> 
> to simulate an unplug (actually, to do an unbind), and
> 
> 	echo FOO >/sys/bus/usb/drivers/usbhid/unbind
                                              ^^^^^^ bind I guess

> to do a bind, where FOO is the name of the USB mouse device link present
> in the /sys/bus/usb/drivers/usbhid directory.

# ls -al /sys/bus/usb/drivers/usbhid
total 0
drwxr-xr-x 2 root root    0 Mar 10 17:30 .
drwxr-xr-x 8 root root    0 Mar 10 17:14 ..
lrwxrwxrwx 1 root root    0 Mar 10 17:30 2-2:1.0 -> ../../../../devices/pci0000:00/0000:00:0c.0/usb2/2-2/2-2:1.0
--w------- 1 root root 4096 Mar 10 17:17 bind
lrwxrwxrwx 1 root root    0 Mar 10 17:17 module -> ../../../../module/usbhid
--w------- 1 root root 4096 Mar 10 17:17 new_id
--w------- 1 root root    0 Mar 10 17:22 unbind

# echo "2-2:1.0" > /sys/bus/usb/drivers/usbhid/unbind
bash: echo: write error: No such device

Any thoughts?

Regards,

	Mariusz Kozlowski
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ