On Sun, May 03, 2009 at 01:11:39PM -0700, Davide Libenzi wrote: > On Sun, 3 May 2009, Al Viro wrote: > > > IOW, the sane solution would be to export something that returns your > > struct file *. And stop playing with fd completely. > > This builds but it's not tested at all. > > - Make all the work of the old anon_inode_getfd(), done by a new > anon_inode_getfile(), with anon_inode_getfd() using its services > > - Make all the work done by sys_eventfd(), done by a new > eventfd_file_create() (which in turn uses anon_inode_getfile()), with > sys_eventfd() using its services > > IRQfd can use eventfd_file_create(), fget(), get_unused_fd_flags() and > fd_install() just before returning. > Is that what you had in mind? More or less, but I'd like to see the irqfd side of that... -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html