Change stack size of kernel threads on a per-thread basis

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux