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 */
13static int umid_inited = 0;
14
15static int __init set_umid_arg(char *name, int *add)
16{
17	int err;
18
19	if(umid_inited){
20		printf("umid already set\n");
21		return 0;
22	}
23
24	*add = 0;
25	err = set_umid(name);
26	if(err == -EEXIST)
27		printf("umid '%s' already in use\n", name);
28	else if(!err)
29		umid_inited = 1;
30
31	return 0;
32}
33
34__uml_setup("umid=", set_umid_arg,
35"umid=<name>\n"
36"    This is used to assign a unique identity to this UML machine and\n"
37"    is used for naming the pid file and management console socket.\n\n"
38);
39