Re: f_ops flag to speed up compatible ioctls in linux kernel

Chris Wright
2004-09-01T18:02:36Z

* Roland Dreier (roland@topspin.com) wrote:
> - read/write on char device:
> OK, except requires some mechanism (tag #) for matching requests
> and responses. Nowhere clean to put 32/64 compatibility code.

You forgot a driver specific filesystem which exposes requests in a file
per request type style. Also, there's a simple_transaction type of file
which can allow you send/recv data and should eliminate the need for
tagging. Example, look at nfsd fs (fs/nfsd/nfsctl.c).

thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net