Linux 2.6.17.7
[linux/fpc-iii.git] / arch / um / kernel / umid.c
blob4eaee823bfd2a4979a32295f2bba60c6f9e41ccb
1 /*
2 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
6 #include "asm/errno.h"
7 #include "init.h"
8 #include "os.h"
9 #include "kern.h"
10 #include "linux/kernel.h"
12 /* Changed by set_umid_arg */
13 static int umid_inited = 0;
15 static int __init set_umid_arg(char *name, int *add)
17 int err;
19 if(umid_inited)
20 return 0;
22 *add = 0;
23 err = set_umid(name);
24 if(err == -EEXIST)
25 printf("umid '%s' already in use\n", name);
26 else if(!err)
27 umid_inited = 1;
29 return 0;
32 __uml_setup("umid=", set_umid_arg,
33 "umid=<name>\n"
34 " This is used to assign a unique identity to this UML machine and\n"
35 " is used for naming the pid file and management console socket.\n\n"