how much stack space can I use

Manfred Spraul (manfreds@colorfullife.com)
Sat, 23 Oct 1999 17:36:12 +0200


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/