Re: kernel stack size

From: Brian Gerst
Date: Sat Apr 02 2005 - 13:28:02 EST


ooyama eiichi wrote:
Thanks for your reply.


On Sun, Apr 03, 2005 at 02:46:34AM +0900, ooyama eiichi wrote:


How can I know the rest size of the kernel stack.

you can't in a platfork-independant way


in i386 and ia64.


(in my kernel driver)

*why* do you want to do this?



because my driver hungs the machine by an certain ioctl.
and it seems to me there is no bad in the code correspond to the ioctl, except for that it is using large auto variables.
(some functions are useing ~1KB autos)

That's your problem. Use kmalloc instead of large local variables.

--
Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/