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

viro
2004-09-01T18:31:34Z

On Wed, Sep 01, 2004 at 11:12:46AM -0700, Roland Dreier wrote:
> Chris> You forgot a driver specific filesystem which exposes
> Chris> requests in a file per request type style. Also, there's a
> Chris> simple_transaction type of file which can allow you
> Chris> send/recv data and should eliminate the need for tagging.
> Chris> Example, look at nfsd fs (fs/nfsd/nfsctl.c).
>
> Thanks, I'll take a look at this. How does one handle the 32-bit
> userspace / 64-bit kernel compat layer in this setup?

The sane approach is to have your structure platform-independent and have
no compat code at all. Which is what we do with on-disk and over-the-wire
structures anyway. And before Albert starts usual wanksession, no, ASCII
is not the only way to do that...