Subject: Re: Vnode access from devices
To: None <tech-kern@NetBSD.ORG>
From: Robert Black <firstname.lastname@example.org>
Date: 01/26/1998 15:35:34
On Jan 23, 3:14pm, Jeremy Cooper wrote:
> Subject: Re: Vnode access from devices
> On Fri, 23 Jan 1998, Robert Black wrote:
> > I have a device which needs access to a vnode pointer pointing to itself
> > within an ioctl(). As far as I can tell the best way to get this is by
> > searching the [ ... ]
> It sounds awfully fishy that a driver should need to know its
> encapsulating V-node. Are you sure that you really need to know it? Try
> explaining why you do. There might be an easier way to get what you need.
I want to use it as a handle for installing a pager. vm_mmap() appears to
expect the handle to be a vnode or NULL (for MAP_ANON).