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

From: Chris Wright
Date: Wed Sep 01 2004 - 13:05:23 EST


* Roland Dreier (roland@xxxxxxxxxxx) 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/