.\" 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 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. .\" %%%LICENSE_END .\" .\" 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 .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 1997 Daisuke Sato .\" all rights reserved. .\" Translated Sat Apr 19 15:22:53 JST 1997 .\" by Daisuke Sato .\" Updated & Modified Mon Mar 1 1999 .\" by NAKANO Takeo .\" Updated Thu Mar 16 09:32:28 2000 .\" by Kentaro Shirakata .\" .TH SETUP 2 2008\-12\-03 Linux "Linux Programmer's Manual" .SH 名前 setup \- デバイスとファイルシステムの初期化を行い、 ルートファイルシステムのマウントを行う .SH 書式 \fB#include \fP .PP \fBint setup(void);\fP .SH 説明 \fBsetup\fP() は \fIlinux/init/main.c\fP の中で一度だけ呼ばれる。 カーネル内部のデバイスとファイルシステムの初期化関数を呼び、 ルートファイルシステムのマウントを行う。 .PP ユーザープロセスからは \fBsetup\fP() を呼びだすことはできない。 ユーザープロセスからのアクセスは、たとえそのプロセスが スーパーユーザー権限を持っていても \fBEPERM\fP を受け取ることになる。 .SH 返り値 \fBsetup\fP() はユーザープロセスに対して常に \-1 を返す。 .SH エラー .TP \fBEPERM\fP ユーザープロセスに対しては、常にこのエラーとなる。 .SH バージョン Linux 2.1.121 以降では、もはやこの関数は存在しない。 .SH 準拠 この関数は Linux に特有のものであり、移植を考慮したプログラムでは 用いるべきではない。それどころか、あらゆるプログラムで用いるべきではない。 .SH 注意 呼び出し手続きは変化してきた。 ある時は \fBsetup\fP() は一つの引数 \fIvoid\ *BIOS\fP を取っており、またある時には \fIint magic\fP を一つの引数として取っていた。 .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は \%https://www.kernel.org/doc/man\-pages/ に書かれている。