setup (2)
Leading comments
Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992 %%%LICENSE_START(VERBATIM) Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical t...
NAME
setup - setup devices and filesystems, mount root filesystemSYNOPSIS
#include <unistd.h>int setup(void);
DESCRIPTION
setup() is called once from within linux/init/main.c. It calls initialization functions for devices and filesystems configured into the kernel and then mounts the root filesystem.No user process may call setup(). Any user process, even a process with superuser permission, will receive EPERM.
RETURN VALUE
setup() always returns -1 for a user process.ERRORS
- EPERM
- Always, for a user process.