Re: Recursion in kernel threads

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

 



well I'm fairly noobish, but it seems to me that we would need to know
the size of the arguments, and the return values of the function, but
I really doubt that a 4 deep recursion would cause a stack overflow
unless you were returning some data that was 1k long or something.

~Jake B


On Mon, 20 Dec 2004 11:31:43 +0530, Nilanjan Roychowdhury
<nilanjan@xxxxxxxx> wrote:
>  
>  
>  
> 
> I am calling a function recursively in the context of a kernel thread.  Max
> no of recursion is 4. Is there any chance of stack overflow??? I am not sure
> of the stack allocated to my kernel thread. I only know the size of the
> total kernel stack which is 8k. 
> 
> Please help. 
> 
> Nilanjan

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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