Re: Transparent bridges (a. k. a. HUB-to-PCI bridges)?

From: John-Mark Gurney <gurney_j_at_resnet.uoregon.edu>
Date: Wed, 24 Nov 2004 10:41:24 -0800
Chuck Swiger wrote this message on Wed, Nov 24, 2004 at 00:06 -0500:
> Wilkinson, Alex wrote:
> >2. OOPish device object (device_t) ? 
> 
> True OOP involves encapsulation, polymorphism, and inheritence, and 
> requires language support which is not really available in pure C.  That 
> being said, careful programming in C lets you create several 
> closely-related structs for different types of "objects" which can all be 
> utilized by a common set of functions.

You should read up on KOBJ's which is how device_t's are implemented
in FreeBSD...  kobj's are a loop more OOP that you think...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
Received on Wed Nov 24 2004 - 17:41:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:23 UTC