arch/um/kernel/umid.c
Source file repositories/reference/linux-study-clean/arch/um/kernel/umid.c
File Facts
- System
- Linux kernel
- Corpus path
arch/um/kernel/umid.c- Extension
.c- Size
- 736 bytes
- Lines
- 39
- Domain
- Architecture Layer
- Bucket
- arch/um
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
Dependency Surface
asm/errno.hinit.hkern.hos.h
Detected Declarations
function set_umid_arg
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
*/
#include <asm/errno.h>
#include <init.h>
#include <kern.h>
#include <os.h>
/* Changed by set_umid_arg */
static int umid_inited;
static int __init set_umid_arg(char *name, int *add)
{
int err;
if (umid_inited) {
os_warn("umid already set\n");
return 0;
}
*add = 0;
err = set_umid(name);
if (err == -EEXIST)
os_warn("umid '%s' already in use\n", name);
else if (!err)
umid_inited = 1;
return 0;
}
__uml_setup("umid=", set_umid_arg,
"umid=<name>\n"
" This is used to assign a unique identity to this UML machine and\n"
" is used for naming the pid file and management console socket.\n\n"
);
Annotation
- Immediate include surface: `asm/errno.h`, `init.h`, `kern.h`, `os.h`.
- Detected declarations: `function set_umid_arg`.
- Atlas domain: Architecture Layer / arch/um.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.