From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 29 16:32:43 2006 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 E22DD16A403 for ; Thu, 29 Jun 2006 16:32:43 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAF2E43D45 for ; Thu, 29 Jun 2006 16:32:42 +0000 (GMT) (envelope-from kip.macy@gmail.com) Received: by py-out-1112.google.com with SMTP id t32so305908pyc for ; Thu, 29 Jun 2006 09:32:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HpIg4ucpvuNd3hhpAQSNsFkIZL4LWRtcJQFksd7bZf3LW/fKY0O8Fz6s78npdU5xNBEoMceR8zxrppBqAAdCuPjucn1SukYRe80aXBc4hpy2u70vaA8hs5dqcnsqOJvXGzE8NyqnWuQxg9cnlJ/nXXV1mtAfXx7wPYad+hhYZEY= Received: by 10.35.111.14 with SMTP id o14mr1486281pym; Thu, 29 Jun 2006 09:32:42 -0700 (PDT) Received: by 10.65.225.9 with HTTP; Thu, 29 Jun 2006 09:32:42 -0700 (PDT) Message-ID: Date: Thu, 29 Jun 2006 09:32:42 -0700 From: "Kip Macy" To: "Oleksandr Tymoshenko" In-Reply-To: <44A3FD87.8000006@pbxpress.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060629111231.GA692@wolf.nvidia.com> <44A3FD87.8000006@pbxpress.com> Cc: freebsd-hackers@freebsd.org, Christian Zander Subject: Re: NVIDIA FreeBSD kernel feature requests X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kmacy@fsmware.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 16:32:44 -0000 IIRC lack of per instance cdevs also limits Freebsd to one vmware instance. -Kip On 6/29/06, Oleksandr Tymoshenko wrote: > Christian Zander wrote: > > Hi all, > > # Task: implement mechanism to allow character drivers to > > maintain per-open instance data (e.g. like the Linux > > kernel's 'struct file *'). > > Motivation: allows per thread NVIDIA notification delivery; also > > reduces CPU overhead for notification delivery > > from the NVIDIA kernel module to the X driver and to > > OpenGL. > > Priority: should translate to improved X/OpenGL performance. > > Status: has not been started. > I've stumbled across this issue a while ago. Actually it can > be partially solved using EVENTHANDLER_REGISTER of dev_clone event with > keeping state structure in si_drv1 or si_drv2 fields. I'm not sure it's > the best solution but it works for me though it smells like hack, and > looks like hack :) Anyway, having legitimate per-open instance data > structures of cdevs is a great assistance in porting linux drivers to > FreeBSD. Just my $0.02. > > -- > Sincerely, > > Oleksandr Tymoshenko > PBXpress Communications, Inc. > http://www.pbxpress.com > Tel./Fax.: +1 866 SIP PBX1 Ext. 656 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >