From owner-freebsd-net@FreeBSD.ORG Mon Sep 5 02:59:15 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 369D916A41F for ; Mon, 5 Sep 2005 02:59:15 +0000 (GMT) (envelope-from jebc@c4solutions.net) Received: from outbound.mailhop.org (outbound.mailhop.org [63.208.196.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id D401443D45 for ; Mon, 5 Sep 2005 02:59:14 +0000 (GMT) (envelope-from jebc@c4solutions.net) Received: from pcp0012210017pcs.blairblvd.tn.nash.comcast.net ([69.245.61.169] helo=ares.c4solutions.net) by outbound.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.51) id 1EC7CT-0003AE-SA for freebsd-net@freebsd.org; Sun, 04 Sep 2005 22:59:13 -0400 Received: from [10.10.1.115] (jeb-64.internal.c4solutions.net [10.10.1.115]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ares.c4solutions.net (Postfix) with ESMTP id A1E6DADAF7 for ; Sun, 4 Sep 2005 21:59:09 -0500 (CDT) X-Mail-Handler: MailHop Outbound by DynDNS.org X-Originating-IP: 69.245.61.169 X-Report-Abuse-To: abuse@dyndns.org (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: jebutk Message-ID: <431BB480.6030904@c4solutions.net> Date: Sun, 04 Sep 2005 21:59:12 -0500 From: Jeb Campbell User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050816) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Netgraph <-> disk module X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2005 02:59:15 -0000 First let me say that I'm in way over my head on this one (but you have to start somewhere I guess). Anyway, I'm trying to implement ata-over-ethernet (aoe) as a netgraph module -- see http://www.coraid.com for specs and freebsd drivers, or http://aoetools.sf.net for user space code (linux only). As my first kernel programming experience I have completed a netgraph node that splits incoming packets off based off ethernet type and then sorts them based on aoe shelf/slot to the appropriate hook. Now I need to write a node that performs aoe on a device. The disk access is where I'm stuck. Archie mentioned in "All About Netgraph" that netgraph could be used to talk to disks -- well here is the chance. Can anyone point me in the right direction for opening and read/writing a device (/dev/ad0s1a, /dev/gvinum/disk1, etc) from kernel code? I think Google is going to ban my ip from all the searching ;) . Many thanks, Jeb Campbell jebc@c4solutions.net