Subject: Re: Many thanks and a new question...
To: Joshua Dinerstein <>
From: Jeremy Cooper <>
List: tech-kern
Date: 07/21/1997 14:39:37
On Mon, 21 Jul 1997, Joshua Dinerstein wrote:

> 	Is there any way, with the options available inside the kernel, to 
> determine what the available amount of "stack" for the kernel functions 
> is? So that I can tell specifically if I am coming close to the edge.
> 	And if it is the stack is there a way around this problem? To 
> increase the size of the stack in the kernel? Or do I just have MALLOC my 
> own block of temporary space and stuff all of the variables into it?

The correct approach is to malloc().  The 44BSD VM system was designed to
handle these small and frequent allocations for the very reason that large
kernel stack allocation can cause problems.  Don't be afraid to use it,
that's what it's for!