From owner-freebsd-drivers@FreeBSD.ORG Thu Aug 17 04:29:44 2006 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BDC016A4DD for ; Thu, 17 Aug 2006 04:29:44 +0000 (UTC) (envelope-from herriojr@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AB2143D6A for ; Thu, 17 Aug 2006 04:29:43 +0000 (GMT) (envelope-from herriojr@gmail.com) Received: by py-out-1112.google.com with SMTP id c59so613169pyc for ; Wed, 16 Aug 2006 21:29:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=XipD4aywYy3LfCHvn/IH3wbFwMjqs/ERQ5GIfuGed81EaJ0YvvuVRI5YOdBJ9oh+6OU9Flo1IIoXV50gEDB8WXOIWvu8KOidLm99XkpkQn1Q9bcVnBEt+Dh9FB4yydU7lMhgYRD8PMnKWXw+Xn+YFGlPz4h3BxloOa4V1sv/H1c= Received: by 10.35.20.14 with SMTP id x14mr2850995pyi; Wed, 16 Aug 2006 21:29:42 -0700 (PDT) Received: by 10.35.67.2 with HTTP; Wed, 16 Aug 2006 21:29:42 -0700 (PDT) Message-ID: <6a56d69c0608162129h9e3e085i4ad1f4034833724f@mail.gmail.com> Date: Thu, 17 Aug 2006 00:29:42 -0400 From: "Jonathan Herriott" To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Newbie Question to Device driver writing X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 04:29:44 -0000 Hi! I've been interested in learning how to write device drivers for quite some time, but I had never had the time to devote to it until now. I was reading through the FreeBSD architecture handbook and came across the example echo character driver. To make sure I understand all that's going on, I'm searching though all the header files to understand what each thing is such as the cdevsw structure and cdev structure. I've come to the conclusion that the cdev structure is what is used to store the information about the actual device I open with make_dev. I was wondering if there is a place in which I can find a good explanation of the different attributes of the structure. The header files don't provide much insight for a newbie, so I was wondering if there might be some other location. On a side note, is there a good irc channel for FreeBSD driver writing discussion? Thanks in advance! Jon