1setup(2) System Calls Manual setup(2)
2
3
4
6 setup - setup devices and filesystems, mount root filesystem
7
9 Standard C library (libc, -lc)
10
12 #include <unistd.h>
13
14 [[deprecated]] int setup(void);
15
17 setup() is called once from within linux/init/main.c. It calls ini‐
18 tialization functions for devices and filesystems configured into the
19 kernel and then mounts the root filesystem.
20
21 No user process may call setup(). Any user process, even a process
22 with superuser permission, will receive EPERM.
23
25 setup() always returns -1 for a user process.
26
28 EPERM Always, for a user process.
29
31 Linux.
32
34 Removed in Linux 2.1.121.
35
36 The calling sequence varied: at some times setup() has had a single ar‐
37 gument void *BIOS and at other times a single argument int magic.
38
39
40
41Linux man-pages 6.05 2023-03-30 setup(2)