1SETUP(2)                   Linux Programmer's Manual                  SETUP(2)
2
3
4

NAME

6       setup - setup devices and file systems, mount root file system
7

SYNOPSIS

9       #include <unistd.h>
10
11       int setup(void);
12

DESCRIPTION

14       setup()  is  called  once from within linux/init/main.c.  It calls ini‐
15       tialization functions for devices and file systems configured into  the
16       kernel and then mounts the root file system.
17
18       No  user  process  may  call setup().  Any user process, even a process
19       with superuser permission, will receive EPERM.
20

RETURN VALUE

22       setup() always returns -1 for a user process.
23

ERRORS

25       EPERM  Always, for a user process.
26

VERSIONS

28       Since Linux 2.1.121, no such function exists anymore.
29

CONFORMING TO

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

NOTES

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

COLOPHON

39       This page is part of release 3.53 of the Linux  man-pages  project.   A
40       description  of  the project, and information about reporting bugs, can
41       be found at http://www.kernel.org/doc/man-pages/.
42
43
44
45Linux                             2008-12-03                          SETUP(2)
Impressum