Quoting Sukadev Bhattiprolu ([email protected]):
> (Trimmed Cc to Containers list)
> 
> Updated patch to ignore 'child_stack_size' on architectures that don't
> need it (see changelog v13).
> 
> ---
> 
> >From f87cceae72c2032d67e7855953c0f702957f723a Mon Sep 17 00:00:00 2001
> From: Sukadev Bhattiprolu <[email protected]>
> Date: Thu, 12 Nov 2009 15:00:38 -0800
> Subject: [v13][PATCH 9/9] Document eclone() syscall
> 
> This gives a brief overview of the eclone() system call.  We should
> eventually describe more details in existing clone(2) man page or in
> a new man page.
> 
> Changelog[v13-rc1]:
>       - [Nathan Lynch, Serge Hallyn] Rename ->child_stack_base to
>         ->child_stack and ensure ->child_stack_size is 0 on architectures
>         that don't need it.
> 
> Changelog[v12]:
>       - [Serge Hallyn] Fix/simplify stack-setup in the example code
>       - [Serge Hallyn, Oren Laadan] Rename syscall to eclone()
> 
> Changelog[v11]:
>       - [Dave Hansen] Move clone_args validation checks to arch-indpendent
>         code.
>       - [Oren Laadan] Make args_size a parameter to system call and remove
>         it from 'struct clone_args'
>       - [Oren Laadan] Fix some typos and clarify the order of pids in the
>         @pids parameter.
> 
> Changelog[v10]:
>       - Rename clone3() to clone_with_pids() and fix some typos.
>       - Modify example to show usage with the ptregs implementation.
> Changelog[v9]:
>       - [Pavel Machek]: Fix an inconsistency and rename new file to
>         Documentation/clone3.
>       - [Roland McGrath, H. Peter Anvin] Updates to description and
>         example to reflect new prototype of clone3() and the updated/
>         renamed 'struct clone_args'.
> 
> Changelog[v8]:
>       - clone2() is already in use in IA64. Rename syscall to clone3()
>       - Add notes to say that we return -EINVAL if invalid clone flags
>         are specified or if the reserved fields are not 0.
> Changelog[v7]:
>       - Rename clone_with_pids() to clone2()
>       - Changes to reflect new prototype of clone2() (using clone_struct).
> 
> Signed-off-by: Sukadev Bhattiprolu <[email protected]>
> Acked-by: Oren Laadan  <[email protected]>

Acked-by: Serge Hallyn <[email protected]>

except:

...

> +/*
> + * Allocate a stack for the clone-child and arrange to have the child
> + * execute @child_fn with @child_arg as the argument.
> + */
> +void *setup_stack(int (*child_fn)(void *), void *child_arg, int size)
> +{
> +     void *stack_base;
> +     void **stack_top;
> +
> +     stack_base = malloc(size + size);

what is this (size + size) about?
_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to