Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/sys
On Tue, Dec 20, 2005 at 08:13:21AM -0800, Jason Thorpe wrote:
> it's pretty annoying that when you change "struct proc" right now,
> random LKMs may break. Moving to opaque types and accessor/mutator
> functions[*] fixes that problem.
Indeed, one of the changes in SVR4 that happened as part of its merge
of SVR3 and the BSD based sunos was that device drives were no longer
allowed to directly access any part of the proc struct or u area.
For an example of on-opaqueness look at all the #defines that linux
exposes to device drivers - not a chance in hell of binary compatibility.
David
[*] of course there are structures you can decide are immuatable...
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index