From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754672AbXF3VyU (ORCPT ); Sat, 30 Jun 2007 17:54:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752816AbXF3VyI (ORCPT ); Sat, 30 Jun 2007 17:54:08 -0400 Received: from wx-out-0506.google.com ([66.249.82.225]:57932 "EHLO wx-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752534AbXF3VyH (ORCPT ); Sat, 30 Jun 2007 17:54:07 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jJaTuusvVj57MFRoiph9oPFz4xFfNUPjIh7lJ+NDeMv9E+K99IZeWZA5ouoaH/Sdx3nPtvMrNfEvlAYfos0PWlfDmQsnaSleCxcvobdhaQotEgcv8yurhSQJCOtT7ZnW2zmhSgakgSxPc7yL1XYUXSytSkcKtntnoVSQxQtyD3s= Message-ID: Date: Sat, 30 Jun 2007 14:54:06 -0700 From: "Ulrich Drepper" To: "Davide Libenzi" Subject: Re: [patch 0/6] sys_indirect RFC - sys_indirect introduction Cc: "Linux Kernel Mailing List" , "Andrew Morton" , "Linus Torvalds" , "Ingo Molnar" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 6/30/07, Davide Libenzi wrote: > But, a __get_user(), once you scrap off all the gcc wrapping, is bacially > a move. That could even be removed, but really I don't see the reason > since it allows for a cleaner strcture definition in userland. Don't generalize. The 4G/4G kernel, for instance, doesn't have this property. Who knows what else will come up. Anyway, two memcpy are slower than one. > But this does not allow more than one context to be set at a time, like > the current implementation does. Ie, the current implementation allow you > to: Of course it does. It just requires an appropriate union element. I've listed flags and sigset_t as separate union elements since I cannot think of a place where we need both extensions. Should there be one this can easily be changed.