From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261343AbULMUKW (ORCPT ); Mon, 13 Dec 2004 15:10:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262292AbULMUHQ (ORCPT ); Mon, 13 Dec 2004 15:07:16 -0500 Received: from mail.mellanox.co.il ([194.90.237.34]:25657 "EHLO mtlex01.yok.mtl.com") by vger.kernel.org with ESMTP id S262362AbULMT6z (ORCPT ); Mon, 13 Dec 2004 14:58:55 -0500 Date: Mon, 13 Dec 2004 21:50:11 +0200 From: "Michael S. Tsirkin" To: Christoph Hellwig , Andi Kleen , discuss@x86-64.org, linux-kernel@vger.kernel.org Subject: Re: how to detect a 32 bit process on 64 bit kernel Message-ID: <20041213195011.GA24053@mellanox.co.il> Reply-To: "Michael S. Tsirkin" References: <20040901072245.GF13749@mellanox.co.il> <20040903080058.GB2402@wotan.suse.de> <20040907104017.GB10096@mellanox.co.il> <20040907121418.GC25051@wotan.suse.de> <20041212215110.GA11451@mellanox.co.il> <20041212222309.GA11045@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041212222309.GA11045@infradead.org> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hello! Quoting r. Christoph Hellwig (hch@infradead.org) "Re: how to detect a 32 bit process on 64 bit kernel": > > If no - would not it make a sence to add e.g. a flag in the > > task struct, to make it possible? > > The kernel code shouldn't know. If your driver needs this information > something is seriously wrong with it. A character driver I am working on gets passed a structure from user space by implementing a write file operation. The structure includes a pointer and so the format varies between a 32 and 64 bit processes. mst