On 1/2/19 9:28 AM, Jens Axboe wrote: >> We'd much rather allocate a file descriptor using anon_inode_getfd >> and operate on that. That also means we can just close that fd >> instead of needing the magic io_destroy, and save all the checks for >> which kind of FD we operate on. > > I'm not against doing something else for setup, but we still need some > way of passing in information about what we want. Things like ring > sizing. The actual rings we could mmap from known offsets if we went the > anon route. OK, so we could go the anon_inode_getfd() route and make it ioctls. Move the gup stuff to mmap off that inode. I'll try and play with it a bit. -- Jens Axboe