From owner-freebsd-current Thu Aug 15 10:37: 5 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36B0037B400 for ; Thu, 15 Aug 2002 10:37:01 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 785FF43E7B for ; Thu, 15 Aug 2002 10:37:00 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.4/8.12.4) with SMTP id g7FHakOo009203; Thu, 15 Aug 2002 13:36:46 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Thu, 15 Aug 2002 13:36:46 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: dmk Cc: freebsd-current@freebsd.org Subject: Re: emulators/rtc and vmware2 In-Reply-To: <20020815121105.GA35400@over-yonder.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG My recollection is that the problem relates to calling make_dev() from the attach routine, and attach from the open call, and of course you can't open before you make_dev with devfs. Someone needs to restructure the driver to match some our other pseudo-device drivers where the device is properly created as part of module initialization. If fixed this and other things locally at one point on my notebook, but eventually got sufficiently sick of always fixing the kernel module for the latest -CURRENT change that I gave up on updating it. I have since lost the changes, but they shouldn't be too hard to reproduce. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories On Thu, 15 Aug 2002, dmk wrote: > > Is anybody successfully using the port emulators/rtc with vmware2 on > -current? > > While the port builds and installs fine, a /dev/rtc device never appears. > > ISTM that the rtc device does a make_dev as part of the device open() > rather than at module load and that vmware doesn't work like that. > > Having no kernel (module) hacking experience, I come to the list for > pointers. I am trying to wrap my head around rtc enough to try make_dev() > at module load time, but maybe someone can give me a hint as to what's > going on. > > > I'm breaking the rules and running an old -CURRENT from Feb 4, 2002, so > I'll humbly swallow suggestions that I upgrade. > > Thanks loads, > dan > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message