]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/um/kernel/umid.c
uml: clean up sig_handler_common_skas
[mirror_ubuntu-bionic-kernel.git] / arch / um / kernel / umid.c
CommitLineData
1da177e4
LT
1/*
2 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
2264c475 6#include "asm/errno.h"
1da177e4
LT
7#include "init.h"
8#include "os.h"
2264c475 9#include "kern.h"
7eebe8a9 10#include "linux/kernel.h"
1da177e4 11
7eebe8a9 12/* Changed by set_umid_arg */
1da177e4
LT
13static int umid_inited = 0;
14
2264c475 15static int __init set_umid_arg(char *name, int *add)
1da177e4 16{
2264c475 17 int err;
1da177e4 18
de5fe76e
JD
19 if(umid_inited){
20 printf("umid already set\n");
2264c475 21 return 0;
de5fe76e 22 }
1da177e4 23
1da177e4 24 *add = 0;
7eebe8a9
JD
25 err = set_umid(name);
26 if(err == -EEXIST)
2264c475 27 printf("umid '%s' already in use\n", name);
2264c475
JD
28 else if(!err)
29 umid_inited = 1;
30
31 return 0;
1da177e4
LT
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