Re: [PATCH 5/5] CUSE: implement CUSE - Character device inUserspace

From: Andrew Morton
Date: Thu Aug 28 2008 - 22:21:25 EST


On Fri, 29 Aug 2008 04:09:16 +0200 Tejun Heo <tj@xxxxxxxxxx> wrote:

> >> +static int __init cuse_init(void)
> >> +{
> >> + int rc;
> >> +
> >> + /* inherit and extend fuse_dev_operations */
> >> + cuse_channel_fops = fuse_dev_operations;
> >> + cuse_channel_fops.owner = THIS_MODULE;
> >> + cuse_channel_fops.open = cuse_channel_open;
> >> + cuse_channel_fops.release = cuse_channel_release;
> >
> > Can't these initialisations be performed at compile-time?
>
> Only by listing every member. I can't think of a good way to inherit
> all and then override some in C initialization. Hmmm.... then again,
> maybe it's better to list every member.

oop, I failed to note the struct assignment there. The usual rule of
thumb applies: I can be safely ignored.

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