[room] Fwd: "Safely remove hardware" for USB

Andrey Rahmatullin wrar на altlinux.ru
Вт Сен 29 13:47:15 UTC 2009


----- Forwarded message from Alan Stern <stern на rowland.harvard.edu> -----

Date: Mon, 28 Sep 2009 02:19:57 -0400 (EDT)
From: Alan Stern <stern на rowland.harvard.edu>
To: David Zeuthen <davidz на redhat.com>
cc: USB list <linux-usb на vger.kernel.org>
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".  
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 -----

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

 * Lost[work] .oO(Форма граблеводного эксгибиционизма - наступить на очередные
   грабли и хвалиться очередной шишкой на лбу)
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : отсутствует
Тип     : application/pgp-signature
Размер  : 490 байтов
Описание: Digital signature
Url     : <http://lists.altlinux.org/pipermail/smoke-room/attachments/20090929/0213c3d6/attachment.bin>


Подробная информация о списке рассылки smoke-room