Hello, I want to change the stack size of kernel threads (from the default 8K)
on a per-thread basis. I am using the following APIs to create kernel threads from within a
kernel module - kernel_thread(), or kthread_create() Neither of the above APIs takes a stack size parameter. The API do_fork() does take a stack size, but the parameter is unused when copy_process() is called within the API (for MIPS
architecture implementation). Any pointers on how to set the stack size on a per-thread basis would
be appreciated. I do not want to change the default stack size and affect all
threads. Thanks, Sarthak Ray |