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       _syscall0(int, setup)
12
13       int setup(void);
14

DESCRIPTION

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

RETURN VALUE

24       setup() always returns -1 for a user process.
25

ERRORS

27       EPERM  Always, for a user process.
28

CONFORMING TO

30       This function is Linux specific, and should not  be  used  in  programs
31       intended to be portable, or indeed in any programs at all.  Since Linux
32       2.1.121, no such function exists anymore.  The calling sequence varied:
33       it  has  had a single parameter void * BIOS and at other times a single
34       parameter int magic.
35
36
37
38Linux 1.2.9                       1996-05-03                          SETUP(2)
Impressum