struct fuse_cmd * const fc = fuse_read_cmd(fuseptr);
fuse_process_cmd(fuseptr, fc);
rather than calling directly fuse_chan_recv and fuse_chan_process as is the case in fuse_session_loop.
But I am unsure how to use fuse_device_select in either of the above contexts. Specifically I am unsure what the supplied function parameters are and how to obtain them, n.b.:
fuse_device_select(dev_t dev, int which, void *wql, struct proc *p)
I am guessing that this function will tell me if there is data available on a given fuse_chan so I imagine that the above parameters can be obtained from a fuse_chan?
Cheers,
Ben.