Re: may b a minor error
Re: may b a minor error
- Subject: Re: may b a minor error
- From: Andrew Gallatin <email@hidden>
- Date: Thu, 15 Jun 2006 16:49:45 -0400 (EDT)
Terry Lambert writes:
> On Jun 15, 2006, at 6:12 AM, Andrew Gallatin wrote:
>
> > sugumaran narayanan writes:
> >> Hi
> >> I am quite new to the Mac world...I am trying to
> >> write(using xcode on tiger) a simple character
> >> driver(openbsd.org example) and am facing few
> >> problems...
> >>
> >> During compile, struct uio is not recognized and I
> >> get a dereferencing pointer to incomplete type
> >> error...can somebody help...maybe I am not including
> >> the correct libraries...
> >
> > <....>
> >
> > MacOSX does not allow access to core kernel structures like
> > uio on the theory that Apple may want to change them some day,
> > and does not want to break binary drivers when the structure
> > changes.
>
> More than a theory; I've personally made kernel changes in this area
I honestly wasn't trying to bait you, but since you seem to be baiting
me...
> for 64 bit support in the Tiger release that would break code that was
> using promiscuous knowledge of the structure contents, instead of
> using an accessor/mutator. The idea is to replace data interfaces
This would not be required if you had a 64-bit kernel.
> with accessor/mutator functions to insulate the underlying
> implementation from necessary data structure changes.
>
> This is actually a fundamental Computer Science concept for object
> oriented programming. There's a good Wikipedia article on it at:
>
> <http://en.wikipedia.org/wiki/Accessor>
>
> Look in the second section, or seqrch in the page for "accessor".
Is it found right between "slow" and "inefficent" ? :)
Solaris has a much, much more stable driver ABI than you
guys do (drivers compiled before MacOSX even existed still
work) and it allows direct access to structures (like uio).
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden