1SETUP(2) Linux Programmer's Manual SETUP(2)
2
3
4
6 setup - setup devices and filesystems, mount root filesystem
7
9 #include <unistd.h>
10
11 int setup(void);
12
14 setup() is called once from within linux/init/main.c. It calls ini‐
15 tialization functions for devices and filesystems configured into the
16 kernel and then mounts the root filesystem.
17
18 No user process may call setup(). Any user process, even a process
19 with superuser permission, will receive EPERM.
20
22 setup() always returns -1 for a user process.
23
25 EPERM Always, for a user process.
26
28 Since Linux 2.1.121, no such function exists anymore.
29
31 This function is Linux-specific, and should not be used in programs
32 intended to be portable, or indeed in any programs at all.
33
35 The calling sequence varied: at some times setup() has had a single
36 argument void *BIOS and at other times a single argument int magic.
37
39 This page is part of release 5.04 of the Linux man-pages project. A
40 description of the project, information about reporting bugs, and the
41 latest version of this page, can be found at
42 https://www.kernel.org/doc/man-pages/.
43
44
45
46Linux 2008-12-03 SETUP(2)