From owner-freebsd-alpha Mon Mar 26 13: 1:14 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 8770137B718; Mon, 26 Mar 2001 13:01:12 -0800 (PST) (envelope-from msmith@mass.dis.org) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.2/8.11.2) with ESMTP id f2QL0WE01189; Mon, 26 Mar 2001 13:00:33 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200103262100.f2QL0WE01189@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Poul-Henning Kamp Cc: John Baldwin , Greg Lehey , leclercn@videotron.ca, freebsd-alpha@FreeBSD.org Subject: Re: dev_t size mismatch kernel / userland In-reply-to: Your message of "Mon, 26 Mar 2001 21:31:31 +0200." <66685.985635091@critter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 26 Mar 2001 13:00:32 -0800 From: Mike Smith Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >This will probably make Poul's head spin, but one idea might be to have a > >kdev_t type. :-P In the kernel kdev_t == dev_t, and in userland, kdev_t is a > >void *. This would work in this case I think because you never use the dev_t's > >while in userland. I do like exporting trimmed down structures, however. > >Please don't export mutexes while you are at it. :-P > > Guys, > > I'm new to this subject, so please fill me in: just what in the > (kernel) dev_t do you want to export to userland ? Nothing. Greg just leaks a dev_t in a structure exchanged between userland and the kernel, and this bit because dev_t is a different size between the two on the Alpha; the right fix is simply to not abuse this structure like this. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message