Removing kernel thread stack swapping
scottl at samsco.org
Thu Mar 3 16:34:26 PST 2005
David Xu wrote:
> Brooks Davis wrote:
>> On Thu, Mar 03, 2005 at 09:54:07AM -0500, John Baldwin wrote:
>>> Hence, don't kill this whole feature just because someone is too lazy
>>> to fix a bug.
>> It would be very useful and informative if someone were to write a
>> high level description of the ways in which the kernel is not a POSIX C
>> programming environment.
> when you are importing a POSIX C programmed piece of code into kernel,
> this will be a problem, I always think problem from another side, not just
> stand at my side. :)
The kernel is not a POSIX C environment. It's not just a program that
happens to do special things. I know that Linux goes to great lengths
to support this concept, but it's simply not true. Programming in the
kernel ideally is not much different from other forms of embedded system
programming where resources are finite and expensive and it's the
responibility of the programmer to develop efficient and safe code.
More information about the freebsd-arch