Re: [PATCH 3/11] FUSE - device functions

From: Andrew Morton
Date: Wed Jan 12 2005 - 17:46:38 EST


Miklos Szeredi <miklos@xxxxxxxxxx> wrote:
>
> +void fuse_send_init(struct fuse_conn *fc)
> +{
> + /* This is called from fuse_read_super() so there's guaranteed
> + to be a request available */
> + struct fuse_req *req = do_get_request(fc);
> + struct fuse_init_in_out *arg = &req->misc.init_in_out;
> + arg->major = FUSE_KERNEL_VERSION;
> + arg->minor = FUSE_KERNEL_MINOR_VERSION;
> + req->in.h.opcode = FUSE_INIT;
> + req->in.numargs = 1;
> + req->in.args[0].size = sizeof(*arg);
> + req->in.args[0].value = arg;
> + req->out.numargs = 1;
> + req->out.args[0].size = sizeof(*arg);
> + req->out.args[0].value = arg;

Does all this userspace communication code work OK if it is talking with a
32-bit application from a 64-bit kernel?

Standard question: was netlink considered?
-
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/