Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: adding /dev/xen/gnttab



On 03.09.2010 19:23, Christoph Egger wrote:
> On 03.09.10 18:49, Jean-Yves Migeon wrote:
>> On Fri, 03 Sep 2010 16:08:05 +0200, "Christoph Egger"
>> <Christoph_Egger%gmx.de@localhost> wrote:
>>> In mmap() I need to access f_data from struct file.
>>> I don't have the struct file in mmap.
>>
>> Can you be a little bit more specific? f_data being an opaque type, it is
>> difficult to know what you are looking for in it. A vnode?
> 
> No, I fill f_data with a softc through fd_clone() in the open() call.

Hmm, that is a bit tricky, right -- and I do not think having a mmap
operation on a filedesc makes sense, it would rather be bound to the
underlying vnode associated to a data file :/

After a quick look at man pages, there is effectively cdevvp(9) to get a
vnode for a char device, and it could be used further through
VOP_MMAP(), but it has nothing to do with fdes...

-- 
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost


Home | Main Index | Thread Index | Old Index