From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Date: Tue, 29 Sep 2009 19:47:15 +0600 From: Andrey Rahmatullin To: smoke-room@lists.altlinux.org Message-ID: <20090929134714.GO6196@wrars-comp.wrarsdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cnn+CxJy/uys8v1I" Content-Disposition: inline X-Operating-System: ALT Linux Sisyphus X-Jabber-Id: wrar@altlinux.org User-Agent: Mutt/1.5.20 (2009-06-23) Subject: [room] Fwd: "Safely remove hardware" for USB X-BeenThere: smoke-room@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: =?koi8-r?b?69XM2NTV0s7ZyiDPxtTP0MnL?= List-Id: =?koi8-r?b?69XM2NTV0s7ZyiDPxtTP0MnL?= List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2009 13:49:51 -0000 Archived-At: List-Archive: --cnn+CxJy/uys8v1I Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ----- Forwarded message from Alan Stern ----- Date: Mon, 28 Sep 2009 02:19:57 -0400 (EDT) =46rom: Alan Stern To: David Zeuthen cc: USB list Subject: "Safely remove hardware" for USB X-Mailing-List: linux-usb@vger.kernel.org David: Below is a patch for 2.6.31 which should do what we discussed. It creates a sysfs file in each USB device's directory named "remove". =20 Any write to this file will cause the device's port to be disabled, and the port will remain disabled until the device is unplugged and either it or another device is plugged in. This is what Windows does when you click on the "Safely remove hardware" control. Alan Stern [...] -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ----- End forwarded message ----- --=20 WBR, wRAR (ALT Linux Team) Powered by the ALT Linux fortune(6): * Lost[work] .oO(=E6=CF=D2=CD=C1 =C7=D2=C1=C2=CC=C5=D7=CF=C4=CE=CF=C7=CF = =DC=CB=D3=C7=C9=C2=C9=C3=C9=CF=CE=C9=DA=CD=C1 - =CE=C1=D3=D4=D5=D0=C9=D4=D8= =CE=C1 =CF=DE=C5=D2=C5=C4=CE=D9=C5 =C7=D2=C1=C2=CC=C9 =C9 =C8=D7=C1=CC=C9=D4=D8=D3=D1 =CF=DE=C5=D2=C5=C4=CE= =CF=CA =DB=C9=DB=CB=CF=CA =CE=C1 =CC=C2=D5) --cnn+CxJy/uys8v1I Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBCAAGBQJKwg/iAAoJEOih81koZvPBFUIH/3LnsmPVakJmpIRf3fn6tdwH WkbE5eabE1JjKZ1MD/o2TrTHhf7nXm35VpKVmprPy90x4k+jxKoYQSIPL/QwmOAx Dpw+ZzJO5ufHt6wd+45/Z57JOFF98eSMQl4FEsGgFrExIocB2QERwmvBgc4KMNgW /IX2ft5rA+EFlM21V4/sO6K+YEq65bBS+SWuKyBonADGCeKQ5Y/nmEm2sD/8V/A1 7AaPg6GvktUcgoOYmBUELvvBF+3tTrBrSnEEm1oUDoV/UuNrYyud4uKTnd7DZa5w b0HdBVh/B7IEdNEU/jsB1wKlgbyn8amGMSaHN6qbTR7LxkMI4Tz0ghkdgxPqK6U= =oZ19 -----END PGP SIGNATURE----- --cnn+CxJy/uys8v1I--