----- Forwarded message from Alan Stern <st...@rowland.harvard.edu> -----

Date: Mon, 28 Sep 2009 02:19:57 -0400 (EDT)
From: Alan Stern <st...@rowland.harvard.edu>
To: David Zeuthen <dav...@redhat.com>
cc: USB list <linux-...@vger.kernel.org>
Subject: "Safely remove hardware" for USB
X-Mailing-List: linux-...@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".  
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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

----- End forwarded message -----

-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):

 * Lost[work] .oO(Форма граблеводного эксгибиционизма - наступить на очередные
   грабли и хвалиться очередной шишкой на лбу)

Attachment: signature.asc
Description: Digital signature

_______________________________________________
smoke-room mailing list
smoke-room@lists.altlinux.org
https://lists.altlinux.org/mailman/listinfo/smoke-room

Ответить