Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/sys




On Dec 20, 2005, at 12:17 AM, Hubert Feyrer wrote:

I don't see how this is "baggage", really - two lines further you'll probably access the struct anyways, and need the full definition then.

The struct? We're talking about opaque types, here... I said before "I would really like to see NetBSD move towards opaque types." Among other things, opaque types are really helpful for supporting LKMs ... 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.

[*] Yes, and for things build in the kernel proper, it is still possible to expose the guts for speed, if necessary.

-- thorpej




Home | Main Index | Thread Index | Old Index