From owner-freebsd-bugs Wed Apr 22 09:18:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA11710 for freebsd-bugs-outgoing; Wed, 22 Apr 1998 09:18:11 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from miller.cs.uwm.edu (miller.cs.uwm.edu [129.89.139.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA11676 for ; Wed, 22 Apr 1998 16:18:08 GMT (envelope-from james@miller.cs.uwm.edu) Received: (from james@localhost) by miller.cs.uwm.edu (8.8.5/8.8.5) id LAA21045; Wed, 22 Apr 1998 11:18:08 -0500 (CDT) Date: Wed, 22 Apr 1998 11:18:08 -0500 (CDT) From: Jim Lowe Message-Id: <199804221618.LAA21045@miller.cs.uwm.edu> To: nash@Mcs.Net Subject: Re: PCI attach of if_ed.c & if_lnc.c Cc: freebsd-bugs@FreeBSD.ORG, jwd@unx.sas.com Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >From: Alex Nash > >No. sizeof(sc) equates to the size of a pointer, not the size of the item >pointed to by the pointer (*sc). In other words: > > sizeof(sc) = size of the pointer, in this case 4 bytes > sizeof(*sc) = size of the softc structure (whatever that is) > Duh! Thanks, I wasn't thinking. I will keep looking. On my system, the lnc PCI driver crashes the machine and I get very poor performance. -Jim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message