From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 3 03:44:45 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 80DA916A403 for ; Mon, 3 Jul 2006 03:44:45 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 076E843D46 for ; Mon, 3 Jul 2006 03:44:44 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [IPv6:::1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k633gwRQ037374; Sun, 2 Jul 2006 21:42:58 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 02 Jul 2006 21:43:02 -0600 (MDT) Message-Id: <20060702.214302.-1622603270.imp@bsdimp.com> To: kmacy@fsmware.com From: "M. Warner Losh" In-Reply-To: References: <20060629111231.GA692@wolf.nvidia.com> <44A3FD87.8000006@pbxpress.com> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: NVIDIA FreeBSD kernel feature requests 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, 03 Jul 2006 03:44:45 -0000 In message: "Kip Macy" writes: : IIRC lack of per instance cdevs also limits Freebsd to one vmware instance. Can you describe the proper semantics here? A cdev is a cdev, and when we do things like dup we just copy the reference to that cdev. This has also traditionally been resisted on layering violations grounds (since the data we have doesn't map easily back to the fd at the time we call the cdev methods). Warner : 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" : > : _______________________________________________ : 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" :