Date: Fri, 16 Aug 2002 18:59:45 -0500 From: dmk <gh@over-yonder.net> To: Nate Lawson <nate@root.org> Cc: Robert Watson <rwatson@freebsd.org>, freebsd-current@freebsd.org Subject: Re: emulators/rtc and vmware2 Message-ID: <20020816235945.GF35400@over-yonder.net> In-Reply-To: <Pine.BSF.4.21.0208161630330.43982-100000@root.org> References: <20020816230831.GD35400@over-yonder.net> <Pine.BSF.4.21.0208161630330.43982-100000@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 16, 2002 at 04:31:49PM -0700 I heard the voice of Nate Lawson, and lo! it spake thus: > On Fri, 16 Aug 2002, dmk wrote: [...] > > The attached diff effectively restructures the rtc device driver to > > perform the make_dev() at module load. The driver may have problems, but > > it does work, and, unlike the first diff, doesn't segfault on unload. ;-) > > > > (I don't claim to write C or hack kernels, so this presented as-is in > > Generally it's more appropriate to do cdevsw_add() in module init and then > make_dev() in each open. That's the ONLY way to do it if you have > multiple instances of a device (e.g. BPF). Yes, but... ;-) That way doesn't work with VMware. The restructured way does. Unfortunately, I don't know enough about what's going on to fix it the Right Way, which I presume would involve fixing VMware. Can anyone suggest where I should be looking? > -Nate dan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020816235945.GF35400>