From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 14 13:23:26 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14580106564A for ; Wed, 14 Apr 2010 13:23:26 +0000 (UTC) (envelope-from samrobb@averesystems.com) Received: from zimbra.averesystems.com (75-149-8-243-Pennsylvania.hfc.comcastbusiness.net [75.149.8.243]) by mx1.freebsd.org (Postfix) with ESMTP id DD3F08FC16 for ; Wed, 14 Apr 2010 13:23:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.averesystems.com (Postfix) with ESMTP id 8824E8BC044 for ; Wed, 14 Apr 2010 09:06:22 -0400 (EDT) X-Virus-Scanned: amavisd-new at averesystems.com Received: from zimbra.averesystems.com ([127.0.0.1]) by localhost (zimbra.averesystems.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fx3hRSgug9w5 for ; Wed, 14 Apr 2010 09:06:21 -0400 (EDT) Received: from [10.1.10.168] (173-13-47-90-Pennsylvania.hfc.comcastbusiness.net [173.13.47.90]) by zimbra.averesystems.com (Postfix) with ESMTPSA id C3D118BC042 for ; Wed, 14 Apr 2010 09:06:21 -0400 (EDT) From: Sam Robb Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 14 Apr 2010 09:08:50 -0400 Message-Id: <1DF133F5-6B00-4F06-8837-946702226A54@averesystems.com> To: freebsd-hackers@freebsd.org Mime-Version: 1.0 (Apple Message framework v1078) X-Mailer: Apple Mail (2.1078) Subject: Going from struct disk to a fh? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2010 13:23:26 -0000 In the kernel, given a struct disk, is there a way to turn that into = something that can be used to read/write from the disk? Or is my best = bet in this situation to figure out the device path for the disk, and = just use kern_open() to access it? -Samrobb=