LCOV - code coverage report
Current view: top level - arch/um/kernel - umid.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 10 0.0 %
Date: 2023-08-24 13:40:31 Functions: 0 1 0.0 %

          Line data    Source code
       1             : // SPDX-License-Identifier: GPL-2.0
       2             : /*
       3             :  * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
       4             :  */
       5             : 
       6             : #include <asm/errno.h>
       7             : #include <init.h>
       8             : #include <kern.h>
       9             : #include <os.h>
      10             : 
      11             : /* Changed by set_umid_arg */
      12             : static int umid_inited;
      13             : 
      14           0 : static int __init set_umid_arg(char *name, int *add)
      15             : {
      16             :         int err;
      17             : 
      18           0 :         if (umid_inited) {
      19           0 :                 os_warn("umid already set\n");
      20           0 :                 return 0;
      21             :         }
      22             : 
      23           0 :         *add = 0;
      24           0 :         err = set_umid(name);
      25           0 :         if (err == -EEXIST)
      26           0 :                 os_warn("umid '%s' already in use\n", name);
      27           0 :         else if (!err)
      28           0 :                 umid_inited = 1;
      29             : 
      30             :         return 0;
      31             : }
      32             : 
      33             : __uml_setup("umid=", set_umid_arg,
      34             : "umid=<name>\n"
      35             : "    This is used to assign a unique identity to this UML machine and\n"
      36             : "    is used for naming the pid file and management console socket.\n\n"
      37             : );
      38             : 

Generated by: LCOV version 1.14