From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jari Sundell" Subject: Re: [take12 0/3] kevent: Generic event handling mechanism. Date: Wed, 23 Aug 2006 12:34:25 +0200 Message-ID: References: <20060822231129.GA18296@ms2.inr.ac.ru> <20060822.173200.126578369.davem@davemloft.net> <20060823065659.GC24787@2ka.mipt.ru> <20060823083859.GA8936@2ka.mipt.ru> <20060823102037.GA23664@2ka.mipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "David Miller" , kuznet@ms2.inr.ac.ru, nmiell@comcast.net, linux-kernel@vger.kernel.org, drepper@redhat.com, akpm@osdl.org, netdev@vger.kernel.org, zach.brown@oracle.com, hch@infradead.org Return-path: Received: from nz-out-0102.google.com ([64.233.162.206]:15210 "EHLO nz-out-0102.google.com") by vger.kernel.org with ESMTP id S964824AbWHWKe1 (ORCPT ); Wed, 23 Aug 2006 06:34:27 -0400 Received: by nz-out-0102.google.com with SMTP id n1so47661nzf for ; Wed, 23 Aug 2006 03:34:26 -0700 (PDT) To: "Evgeniy Polyakov" In-Reply-To: <20060823102037.GA23664@2ka.mipt.ru> Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 8/23/06, Evgeniy Polyakov wrote: > > No, it will change sizes of the structure in kernelspace and userspace, > so they just can not communicate. struct kevent { uintptr_t ident; /* identifier for this event */ short filter; /* filter for event */ u_short flags; /* action flags for kqueue */ u_int fflags; /* filter flag value */ union { u32 _data_padding[2]; intptr_t data; /* filter data value */ }; union { u32 _udata_padding[2]; void *udata; /* opaque user data identifier */ }; }; I'm not missing anything obvious here, I hope. Rakshasa