Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2003 09:44:15 +0200
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Jeff Roberson <jroberson@chesapeake.net>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern vfs_syscalls.c 
Message-ID:  <81627.1059464655@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 29 Jul 2003 03:34:13 EDT." <20030729033236.X14210-100000@mail.chesapeake.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20030729033236.X14210-100000@mail.chesapeake.net>, Jeff Roberson wr
ites:

>> >>   Log:
>> >>   Pass the file descriptor index down to vn_open.
>> >
>> >Why?  Was this discussed on arch?
>>
>> So that things like /dev/stream /dev/fd/* and similar can use a
>> less gruesome hack than today, and so that access to devices from
>> userland doesn't have to take the long tour through vnodes.
>>
>
>Yes, I see, but this is a pretty horrific layering violation.  I think we
>should think of the right way to do this instead of doing another gruesome
>hack.  I fear that this is going to snowball out.

I still think it looks a lot better than td_dupfd.

-- 
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.



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