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

John-Mark Gurney gurney_j at resnet.uoregon.edu
Wed Nov 24 10:41:27 PST 2004


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."


More information about the freebsd-current mailing list