[Devel] [PATCH 4/7] uts namespaces: implement utsname namespaces
Cedric Le Goater
clg at fr.ibm.com
Mon Apr 10 09:06:54 PDT 2006
Serge E. Hallyn wrote:
> ...
> -struct new_utsname system_utsname = {
> - .sysname = UTS_SYSNAME,
> - .nodename = UTS_NODENAME,
> - .release = UTS_RELEASE,
> - .version = UTS_VERSION,
> - .machine = UTS_MACHINE,
> - .domainname = UTS_DOMAINNAME,
> +struct uts_namespace init_uts_ns = {
> + .kref = {
> + .refcount = ATOMIC_INIT(2),
> + },
> + .name = {
> + .sysname = UTS_SYSNAME,
> + .nodename = UTS_NODENAME,
> + .release = UTS_RELEASE,
> + .version = UTS_VERSION,
> + .machine = UTS_MACHINE,
> + .domainname = UTS_DOMAINNAME,
> + },
> };
>
> -EXPORT_SYMBOL(system_utsname);
this should problably be replaced with
EXPORT_SYMBOL(init_uts_ns);
or export init_utsname().
C.
More information about the Devel
mailing list