Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752972AbZIKLW6 (ORCPT ); Fri, 11 Sep 2009 07:22:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752533AbZIKLW6 (ORCPT ); Fri, 11 Sep 2009 07:22:58 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:33137 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752333AbZIKLW5 (ORCPT ); Fri, 11 Sep 2009 07:22:57 -0400 Subject: Re: [RFC][v6][PATCH 0/9] clone_with_pids() syscall From: Peter Zijlstra To: Sukadev Bhattiprolu Cc: linux-kernel@vger.kernel.org, Oren Laadan , "Eric W. Biederman" , Alexey Dobriyan , Pavel Emelyanov , Andrew Morton , torvalds@linux-foundation.org, mikew@google.com, mingo@elte.hu, hpa@zytor.com, Nathan Lynch , arnd@arndb.de, container@us.ibm.com, sukadev@us.ibm.com In-Reply-To: <20090910060627.GA24343@us.ibm.com> References: <20090910060627.GA24343@us.ibm.com> Content-Type: text/plain Date: Fri, 11 Sep 2009 13:22:28 +0200 Message-Id: <1252668148.7126.13.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 898 Lines: 33 On Wed, 2009-09-09 at 23:06 -0700, Sukadev Bhattiprolu wrote: > Based on these requirements and constraints, we have been exploring a couple > of system call interfaces and appreciate any iput. Why not have something like: struct clone_struct { u32 size; u32 __reserved; u64 flags; u64 child_stack; u32 child_tid; u32 parent_tid; }; struct clone_pid_struct { u32 nr; pid_t pids[]; }; int clone2(struct clone_struct *cs, struct clone_pid_struct *cps); If you then get passed a longer clone_struct than you know about, all is well IFF the tail is 0, otherwise fail with -E2BIG. If you get passed a short clone_struct, zero out the tail. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/