From owner-freebsd-usb@FreeBSD.ORG Thu Aug 9 21:40:11 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC4A816A41A for ; Thu, 9 Aug 2007 21:40:11 +0000 (UTC) (envelope-from sven-freebsd@hazejager.nl) Received: from chainsoftware.nl (hazejager.demon.nl [83.160.136.100]) by mx1.freebsd.org (Postfix) with ESMTP id 2EB2113C4A8 for ; Thu, 9 Aug 2007 21:40:10 +0000 (UTC) (envelope-from sven-freebsd@hazejager.nl) Received: from chainsoftware.nl (localhost [127.0.0.1]) by chainsoftware.nl (8.13.8/8.13.8) with ESMTP id l79LOYU9033658 for ; Thu, 9 Aug 2007 23:24:34 +0200 (CEST) (envelope-from sven-freebsd@hazejager.nl) Received: from localhost (sven@localhost) by chainsoftware.nl (8.13.8/8.13.8/Submit) with ESMTP id l79LOYLc033655 for ; Thu, 9 Aug 2007 23:24:34 +0200 (CEST) (envelope-from sven-freebsd@hazejager.nl) X-Authentication-Warning: proxy.chain.loc: sven owned process doing -bs Date: Thu, 9 Aug 2007 23:24:34 +0200 (CEST) From: Sven Hazejager To: freebsd-usb@freebsd.org Message-ID: <07080923185142.-1077952816@somehost.domainz.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, hits=-3.977 tests=ALL_TRUSTED,BAYES_00,UPPERCASE_25_50 X-Scanned-By: MIMEDefang 2.56 on 192.168.0.1 Subject: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2007 21:40:11 -0000 Hi all, Is there a tool under FreeBSD 6.2 that properly stops a USB device, equivalent to Windows XPs Safely Remove Hardware? I noticed that Windows sends a IRP_MN_REMOVE_DEVICE command, after which my LaCie external HDD spins down. I would like to do this under FreeBSD too. So, the question really is: how to send a IRP_MN_REMOVE_DEVICE command? Thanks, Sven