From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 13 19:54:40 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 487A216A41C; Mon, 13 Jun 2005 19:54:40 +0000 (GMT) (envelope-from julian@elischer.org) Received: from bigwoop.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1650E43D1F; Mon, 13 Jun 2005 19:54:40 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by bigwoop.vicor-nb.com (Postfix) with ESMTP id 04CAB7A403; Mon, 13 Jun 2005 12:54:40 -0700 (PDT) Message-ID: <42ADE480.9040908@elischer.org> Date: Mon, 13 Jun 2005 12:54:40 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050423 X-Accept-Language: en, hu MIME-Version: 1.0 To: Christoph Hellwig References: <42ADC762.6010801@elischer.org> <20050613181435.GA3096@infradead.org> <42ADD253.4020606@samsco.org> <20050613184551.GA3853@infradead.org> <42ADD6AC.3060505@samsco.org> <20050613190224.GA4308@infradead.org> In-Reply-To: <20050613190224.GA4308@infradead.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Daniel Eischen , freebsd-hackers@freebsd.org, Scott Long , Apache Xie Subject: Re: contigmalloc() and mmap() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2005 19:54:40 -0000 Christoph Hellwig wrote: >On Mon, Jun 13, 2005 at 12:55:40PM -0600, Scott Long wrote: > > >>>Lot's of driver use file->private to get at per-device data easily, >>>but that's just a shortcut. >>> >>> >>Ok, I thought that you were talking about per-process data being in the >>file descriptor. >> >> > >No, Linux has absolutely no concept of per-process data in driver, and >if you think of it that would be rather bogus anyway (e.g. a driver opening >the same device multiple times) > > though, some people use it for that purpose (e.g. in the original posting). it might not be such a bad idea.. I don't see why the device entrypoints shouldn't have that argument available.. (file descriptor by which we are getting here) As long as it can take account of the fact that not all accesses come via an FD (e.g mounted disks).