[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: adding /dev/xen/gnttab
> On Fri, 03 Sep 2010 10:48:09 +0200, "Christoph Egger"
> <Christoph_Egger%gmx.de@localhost> wrote:
> > Also the device file should be implemented as a clonable device.
> > I need to implement the operations
> > open, close, ioctl and mmap.
> > How do I implement mmap ? file(9) and filedesc(9) don't
> > mention mmap.
> 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.
Main Index |
Thread Index |