1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
.\" Copyright, the authors of the Linux man-pages project
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.TH setup 2 2025-05-17 "Linux man-pages (unreleased)"
.SH NAME
setup \- setup devices and filesystems, mount root filesystem
.SH LIBRARY
Standard C library
.RI ( libc ,\~ \-lc )
.SH SYNOPSIS
.nf
.B #include <unistd.h>
.P
.B [[deprecated]] int setup(void);
.fi
.SH DESCRIPTION
.BR setup ()
is called once from within
.IR linux/init/main.c .
It calls initialization functions for devices and filesystems
configured into the kernel and then mounts the root filesystem.
.P
No user process may call
.BR setup ().
Any user process, even a process with superuser permission,
will receive
.BR EPERM .
.SH RETURN VALUE
.BR setup ()
always returns \-1 for a user process.
.SH ERRORS
.TP
.B EPERM
Always, for a user process.
.SH STANDARDS
Linux.
.SH VERSIONS
Removed in Linux 2.1.121.
.P
The calling sequence varied: at some times
.BR setup ()
has had a single argument
.I "void\ *BIOS"
and at other times a single argument
.IR "int magic" .
|