Re: [PATCH v4 1/2] init: add sys-wrapper.h

From: Arnd Bergmann
Date: Sat Sep 18 2010 - 05:28:06 EST


On Friday 17 September 2010, Andrew Morton wrote:
> > - int err = sys_mount(name, "/root", fs, flags, data);
> > + int err = kernel_sys_mount(name, "/root", fs, flags, data);
>
> It would be good if we could arrange for all kernel syscalls to use
> the wrappers. ie: cause a direct call to sys_mount() to not compile?
>
> I don't know how practical that would be.

One common reason to call a sys_* function is to implement another
system call, e.g. sys_socketcall calling sys_socket or
compat_sys_timer_create calling sys_timer_create.

I think in those cases we don't really want to go through another
wrapper.

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