1 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Modified by Michael Haardt <michael@moria.de>
26 .\" Modified Sun Jul 25 10:14:13 1993 by Rik Faith <faith@cs.unc.edu>
27 .\" Modified 15 April 1995 by Michael Chastain <mec@shell.portal.com>
28 .\" Update calling parameters to Linux 1.2.4 values.
29 .\" Modified 10 June 1995 by Andries Brouwer <aeb@cwi.nl>
30 .\" Modified 3 May 1996 by Martin Schulze <joey@infodrom.north.de>
31 .\" Modified Wed Nov 6 04:05:28 1996 by Eric S. Raymond <esr@thyrsus.com>
32 .\" Modified Sat Jan 29 01:08:23 2000 by aeb
34 .TH SETUP 2 2021-03-22 "Linux" "Linux Programmer's Manual"
36 setup \- setup devices and filesystems, mount root filesystem
39 .B #include <unistd.h>
45 is called once from within
46 .IR linux/init/main.c .
47 It calls initialization functions for devices and filesystems
48 configured into the kernel and then mounts the root filesystem.
50 No user process may call
52 Any user process, even a process with superuser permission,
57 always returns \-1 for a user process.
61 Always, for a user process.
63 Since Linux 2.1.121, no such function exists anymore.
65 This function is Linux-specific, and should not be used in programs
66 intended to be portable, or indeed in any programs at all.
68 The calling sequence varied: at some times
70 has had a single argument
72 and at other times a single argument