RE: Further thoughts on uAPI

Hefty, Sean
2016-04-25T18:51:59Z

> API wise, yes it is an event channel, however, there must always be an
> FD, so if you want to do something to an event channel, it should be
> done via ioctl on that fd, not through the common fd. So 'get_fd' is
> another form of 'create_object' except that the returned object_handle
> is a fd number not an object id.
>
> Perhaps 'create_fd_object' instead ?

I think we're pretty much in agreement, just differences in details.

I was thinking that create event channel would return an fd and implicitly define its ioctl format. Create_fd_object is more generic, but how were you thinking of defining the ioctl format?