Bill Dirks wrote: > > Multiple capturing opens can produce subtle repercussions in the > sematics of various ioctls. For example, suppose an app opens a driver > and does a GET-FORMAT (or any other kind of query) while there are two > capturing opens active. The format of which open should be returned? If > the driver requires both opens to use the same format, which open gets > control, and will that mess up the app that doesn't have control? > > Of course, a driver writer can do whatever he pleases behind the scenes, > as long the ioctl semantics are preserved such that apps, and therefore > users, are happy. I think that multiple opens should be handled by userspace library using for example shm, becouse it adds unnecessary complexity to driver which should contain only some hooks, if needed. -- Marian Jančár <mjanx123@xxxxxxxxxxxxxxxxxxxxxxxx>