From owner-freebsd-net Mon Jun 1 11:23:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA28958 for freebsd-net-outgoing; Mon, 1 Jun 1998 11:23:29 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from vorbis.noc.easynet.net (qmailr@vorbis.noc.easynet.net [195.40.1.254]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA28924 for ; Mon, 1 Jun 1998 11:23:16 -0700 (PDT) (envelope-from chrisy@vorbis.noc.easynet.net) Received: (qmail 29533 invoked by uid 1943); 1 Jun 1998 18:23:02 -0000 Message-ID: <19980601192301.42902@flix.net> Date: Mon, 1 Jun 1998 19:23:01 +0100 From: Chrisy Luke To: Jacques Vidrine Cc: Claude Tardif , freebsd-net@FreeBSD.ORG Subject: Re: Unknown abbreviations References: <35721ACA.A51B7BD4@cam.org> <199806010458.XAA27364@cerebus.nectar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <199806010458.XAA27364@cerebus.nectar.com>; from Jacques Vidrine on Sun, May 31, 1998 at 11:58:02PM -0500 Organization: The Flirble Internet Exchange X-URL: http://www.flix.net/ X-FTP: ftp://ftp.flirble.org/ Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Claude Tardif wrote (on Jun 01): >> I do have TCP/IP Illustrated Vol.2, please indicate on which page I can find > the meaning for the softc and protosw abbreviations.Thanks, For protosw, the page opposite the inside-cover, right hand column and 5 down says "protosw...188". So look on page 188. :@) Jacques Vidrine wrote (on Jun 01): > softc = (I don't know, but would like to) As for softc, it's a generic name given to a structure that exists in almost every kernel driver. In the case of network devices they contain the state of the driver, more or less. The network code makes more use of the idea than most of the other drivers in the kernel. Note that struct ifnet points to it via a "void *if_softc" - because each device has it's own definition, but that each _softc also has a pointer back to it's ifnet. ifnet deals with the more uniforn details, like "device name" etc while softc has the more specific. For some idea, the le_softc is described on page 80. This is also listed inside the cover... :-) Chris. -- == chris@easynet.net, chrisy@flix.net, chrisy@flirble.org. == Head of Systems for Easynet Group PLC. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message