[lia64-kernel] Re: Re: Re: Re: Re: Re: Re: clone and clone2

Ulrich Drepper drepper@redhat.com
Tue Jun 20 18:07:00 GMT 2000


David Mosberger <davidm@hpl.hp.com> writes:

> You can still do:
> 
> 	clone(flags & ~CLONE_MAP_STACK, stack_base, stack_size);
> 
> Again, it would _seem_ like the kernel should reserve the stack area,
> but it wouldn't.

No, since the memory [stack_base,stack_base+stack_size) must already
be allocated by the process.  So in fact, the memory is reserved.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libc-hacker mailing list