Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753483AbZKNBMd (ORCPT ); Fri, 13 Nov 2009 20:12:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753350AbZKNBMc (ORCPT ); Fri, 13 Nov 2009 20:12:32 -0500 Received: from rhun.apana.org.au ([64.62.148.172]:50977 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752927AbZKNBMb (ORCPT ); Fri, 13 Nov 2009 20:12:31 -0500 Date: Sat, 14 Nov 2009 09:12:30 +0800 From: Herbert Xu To: Gregory Haskins Cc: "Michael S. Tsirkin" , alacrityvm-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC PATCH] net: add dataref destructor to sk_buff Message-ID: <20091114011229.GA18580@gondor.apana.org.au> References: <20091002141407.30224.54207.stgit@dev.haskins.net> <20091110115335.GC6989@redhat.com> <4AF919020200005A000586A9@sinclair.provo.novell.com> <20091110131722.GA19645@redhat.com> <4AF9747E.8020408@novell.com> <20091110143652.GB19645@redhat.com> <4AF98A8C.9040201@novell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AF98A8C.9040201@novell.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1100 Lines: 24 On Tue, Nov 10, 2009 at 10:45:16AM -0500, Gregory Haskins wrote: > > What I am getting at is as follows: From a real basic perspective, you > can look at all of this as a simple synchronous call (i.e. sendmsg()). > The "app" (be it a userspace app, or a guest) prepares a buffer for > transmission, and offers it to the next layer in the stack. The app > must maintain the integrity of that buffer at least until the layer > below it signifies that it is "consumed". This may mean its a > synchronous call, like sendmsg(), or it may be asynchronous, like AIO. Neither sendmsg() nor sendfile() is synchronous in the way you imagine. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- 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/