From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 2 10:24:20 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E120516A47C for ; Mon, 2 Oct 2006 10:24:20 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C4C843D86 for ; Mon, 2 Oct 2006 10:24:08 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (cpbkhw2zv215ntzt@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id k92AO5I6057384; Mon, 2 Oct 2006 03:24:05 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id k92AO4mj057383; Mon, 2 Oct 2006 03:24:04 -0700 (PDT) (envelope-from jmg) Date: Mon, 2 Oct 2006 03:24:04 -0700 From: John-Mark Gurney To: Ekkehard Morgenstern Message-ID: <20061002102404.GD80527@funkthat.com> Mail-Followup-To: Ekkehard Morgenstern , freebsd-hackers@freebsd.org References: <200610021121.57756.ekkehard.morgenstern@onlinehome.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200610021121.57756.ekkehard.morgenstern@onlinehome.de> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-hackers@freebsd.org Subject: Re: Systems programming on FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Oct 2006 10:24:21 -0000 Ekkehard Morgenstern wrote this message on Mon, Oct 02, 2006 at 11:21 +0200: > I would like to have some info regarding systems programming on FreeBSD. I > have already looked at the available documentation (the handbooks, manpages), > but there's some areas I cannot find any information about. > > For instance, ioctl(). Where do I find information about device-specific > ioctls? Do I always have to read the driver source? It can't be that this is > all undocumented, or is it? Many aren't documented, but section 4 of the manpages is the place where they are suppose to be documented... if you look at netintro(4), you'll see a few for network devices.. A few others like agp(4), bpf(4) and meteor(4) have ioctl's described... For the others, often the definitions in the header file is usually enough, as they sometimes also contains comments describing them... Good luck... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."