Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2001 23:01:45 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Mike Smith <msmith@FreeBSD.org>
Cc:        John Baldwin <jhb@FreeBSD.org>, Greg Lehey <grog@lemis.com>, leclercn@videotron.ca, freebsd-alpha@FreeBSD.org
Subject:   Re: dev_t size mismatch kernel / userland 
Message-ID:  <68229.985640505@critter>
In-Reply-To: Your message of "Mon, 26 Mar 2001 13:00:32 -0800." <200103262100.f2QL0WE01189@mass.dis.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200103262100.f2QL0WE01189@mass.dis.org>, Mike Smith writes:
>> >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.

Right, I agree.

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?68229.985640505>