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

From: viro
Date: Wed Sep 01 2004 - 13:32:45 EST


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...
-
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/