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.10 18:49, Jean-Yves Migeon wrote:
>
> On Fri, 03 Sep 2010 16:08:05 +0200, "Christoph Egger"
> <Christoph_Egger%gmx.de@localhost> wrote:
>>> I guess you would have to do it the same way as xenevt; see
>>> arch/xen/xen/xenevt.c, and all dev_type_* thingies with a cdevsw.
>>
>> Yes, but not quite comparable.
>>
>> 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.
Christoph
Home |
Main Index |
Thread Index |
Old Index