Port-xen archive

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

Re: adding /dev/xen/gnttab



> On Thu, Sep 02, 2010 at 05:16:12PM +0200, Christoph Egger wrote:
> > 
> > > On Thu, Sep 02, 2010 at 04:00:44PM +0200, Christoph Egger wrote:
> > > > 
> > > > Hi!
> > > > 
> > > > For gnttab support a new device file is needed for
> > > > a new set of ioctl()'s.
> > > 
> > [...]
> > > > Attached patch adds /dev/xen/gnttab.
> 
> I don't think it's approrpiate to commit this patch before the
> kernel side is written then. they should be commited as a whole.

I think, the gnttab should be implemented as a pseudo-device
in the kernel.

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.

Christoph




Home | Main Index | Thread Index | Old Index