lkml.org 
[lkml]   [1999]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: how much stack space can I use

On Sat, 23 Oct 1999, Manfred Spraul wrote:

> SEMMSL and SEMOPM are limited by stack space:
>
> sys_semctl() needs sizeof(short)*SEMMSL bytes
> (up to 1 Kb)
>
> sys_semop() needs 6*SEMOPM bytes.
> (up to 600 bytes)
>
> How much stack space can I use without causing a stack overflow? None of
> these functions are recursive, and they don't call any subfunctions
> which need more than a few bytes stack space.

maximum is ~7k, but we usually try to keep it under 4k.

-- mingo


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

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.108 / U:0.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site