1 /* 2 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com) 3 * Licensed under the GPL 4 */ 5 6 #include "asm/errno.h" 7 #include "init.h" 8 #include "os.h" 9 #include "kern.h" 10 #include "linux/kernel.h" 11 12 /* Changed by set_umid_arg */ 13 static int umid_inited = 0; 14 15 static int __init set_umid_arg(char *name, int *add) 16 { 17 int err; 18 19 if(umid_inited) 20 return 0; 21 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; 28 29 return 0; 30 } 31 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" 36 ); 37 38