Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Nov 2001 14:32:18 -0500 
From:      Jim McGrath <jmcgrath@sitaranetworks.com>
To:        "'Luigi Rizzo'" <rizzo@aciri.org>, Jim McGrath <jmcgrath@sitaranetworks.com>
Cc:        net@FreeBSD.ORG, mjacob@feral.com
Subject:   RE: softc, ifnet and arpcom overlay
Message-ID:  <31269226357BD211979E00A0C9866DAB01BE79AD@rios.sitaranetworks.com>

next in thread | raw e-mail | index | archive | help
It makes the assumption that the ifnet/arpcom structure is at the beginning
of the softc structure.  In needs to do this to maintain media independence.
Also see http://www.freebsd.org/cgi/query-pr.cgi?pr=29249

Jim

-----Original Message-----
From: 'Luigi Rizzo' [mailto:rizzo@aciri.org]
Sent: Saturday, November 03, 2001 2:06 PM
To: Jim McGrath
Cc: net@FreeBSD.ORG; mjacob@feral.com
Subject: Re: softc, ifnet and arpcom overlay


On Sat, Nov 03, 2001 at 01:17:24PM -0500, Jim McGrath wrote:
> Check mii.c, miibus_attach()

I don't see anything strange there, the access is through
device_get_softc(dev) which presumably does the right thing
and makes no assumption on structure layout.

	cheers
	luigi
----------------------------------+-----------------------------------------
 Luigi RIZZO, luigi@iet.unipi.it  . ACIRI/ICSI (on leave from Univ. di Pisa)
 http://www.iet.unipi.it/~luigi/  . 1947 Center St, Berkeley CA 94704
 Phone: (510) 666 2927
----------------------------------+-----------------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31269226357BD211979E00A0C9866DAB01BE79AD>