.\" -*- nroff -*- .\" .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992 .\" .\" 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 to this one .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\" Modified by Michael Haardt .\" Modified Sun Jul 25 10:14:13 1993 by Rik Faith .\" Modified 15 April 1995 by Michael Chastain .\" Update calling parameters to Linux 1.2.4 values. .\" Modified 10 June 1995 by Andries Brouwer .\" Modified 3 May 1996 by Martin Schulze .\" Modified Wed Nov 6 04:05:28 1996 by Eric S. Raymond .\" Modified Sat Jan 29 01:08:23 2000 by aeb .\" .TH SETUP 2 "3/05/1996" "Linux 1.2.9" "Manual do Programador Linux" .SH NOME setup \- configura dispositivos e sistemas de arquivo, monta o sistema de arquivo raiz .SH SINOPSE .B #include .sp .B _syscall0(int, setup); .sp .B int setup(void); .SH DESCRIÇÃO .B setup é chamada uma vez de dentro .IR linux/init/main.c Ela chama funções de inicialização para dispositivos e sistemas de arquivo Configurados no kernel e então monta o sistema de arquivo raiz. .PP Nenhum processo de usuário pode chamar .BR setup . Qualquer processo de usuário, mesmo que com permissão de superusuário, receberá .BR EPERM . .SH "VALORES RETORNADOS" .B setup sempre retorna \-1 para um processo de usuário. .SH ERROS .TP .B EPERM Sempre, para um processo de usuário. .SH "DE ACORDO COM" Esta função é específica do Linux e não deveria ser usadas em programas que pretendem ser portáveis, ou indeed in any programs at all. Desde o Linux 2.1.121, nenhuma função semelhante existe mais. A seqüência solicitante variada: ela tem um parâmetro simples .I "void * BIOS" e em outros tempos um parâmetro simples .IR "int magic" . .SH TRADUZIDO POR LDP-BR em 21/08/2000. \&\fR\&\f(CWAndré L. Fassone Canova (tradução)\fR \&\fR\&\f(CWxxxxxxxxxxxxxxxxxxxxxxxxx (revisão)\fR