lkml.org 
[lkml]   [1999]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjecthow much stack space can I use
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.

Is alloca(3) possible/allowed?

--
Manfred

-
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.178 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site