From owner-freebsd-hackers Thu Sep 25 00:38:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA02824 for hackers-outgoing; Thu, 25 Sep 1997 00:38:51 -0700 (PDT) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA02819 for ; Thu, 25 Sep 1997 00:38:46 -0700 (PDT) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id AAA11071; Thu, 25 Sep 1997 00:38:45 -0700 (PDT) Message-ID: <19970925003845.29319@hydrogen.nike.efn.org> Date: Thu, 25 Sep 1997 00:38:45 -0700 From: John-Mark Gurney To: FreeBSD Hackers Subject: how to put to structures in one memory area... Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE 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/ Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk well.. I was thinking about the design of the generic bus code.. and wanted to have the generic structure, and then the private bus data... what is the way that you guys suggest it be done? struct bothstructs{ struct generic; struct specific; }; or struct generic { union { struct busa *a; struct busb *b; }bus; }; or struct generic { }; ISAPRIVATE(generic)->specific) or would simply making two allocations be fine?? I don't like the idea of splitting the specific bus data so far away from the generic when it's likely that you will use both... -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking Live in Peace, destroy Micro$oft, support free software, run FreeBSD