title: How to determine kernel stack size
body: <p>I need to determine the stack size of the running Linux kernel inside a kernel module. I do know that the macro THREAD_SIZE gives the stack size for a given architecture but I cannot use that. Since the compile and the run machines are different. Is there any way I could do this via a proc interface, kernel api or exported symbol?
  Thanks</p>