OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man2 / setup.2
1 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Modified by Michael Haardt <michael@moria.de>
26 .\" Modified Sun Jul 25 10:14:13 1993 by Rik Faith <faith@cs.unc.edu>
27 .\" Modified 15 April 1995 by Michael Chastain <mec@shell.portal.com>
28 .\"   Update calling parameters to Linux 1.2.4 values.
29 .\" Modified 10 June 1995 by Andries Brouwer <aeb@cwi.nl>
30 .\" Modified 3 May 1996 by Martin Schulze <joey@infodrom.north.de>
31 .\" Modified Wed Nov  6 04:05:28 1996 by Eric S. Raymond <esr@thyrsus.com>
32 .\" Modified Sat Jan 29 01:08:23 2000 by aeb
33 .\"
34 .\"*******************************************************************
35 .\"
36 .\" This file was generated with po4a. Translate the source file.
37 .\"
38 .\"*******************************************************************
39 .TH SETUP 2 2008\-12\-03 Linux "Linux Programmer's Manual"
40 .SH 名前
41 setup \- デバイスとファイルシステムの初期化を行い、 ルートファイルシステムのマウントを行う
42 .SH 書式
43 \fB#include <unistd.h>\fP
44 .sp
45 \fBint setup(void);\fP
46 .SH 説明
47 \fBsetup\fP()  は \fIlinux/init/main.c\fP の中で一度だけ呼ばれる。
48 カーネル内部のデバイスとファイルシステムの初期化関数を呼び、 ルートファイルシステムのマウントを行う。
49 .PP
50 ユーザープロセスからは \fBsetup\fP()  を呼びだすことはできない。 ユーザープロセスからのアクセスは、たとえそのプロセスが
51 スーパーユーザー権限を持っていても \fBEPERM\fP を受け取ることになる。
52 .SH 返り値
53 \fBsetup\fP()  はユーザープロセスに対して常に \-1 を返す。
54 .SH エラー
55 .TP 
56 \fBEPERM\fP
57 ユーザプロセスに対しては、常にこのエラーとなる。
58 .SH バージョン
59 Linux 2.1.121 以降では、もはやこの関数は存在しない。
60 .SH 準拠
61 この関数は Linux に特有のものであり、移植を考慮したプログラムでは 用いるべきではない。それどころか、あらゆるプログラムで用いるべきではない。
62 .SH 注意
63 呼び出し手続きは変化してきた。 ある時は \fIsetup ()\fP は一つの引数 \fIvoid *BIOS\fP を取っており、またある時には \fIint
64 magic\fP を一つの引数として取っていた。
65 .SH この文書について
66 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
67 である。プロジェクトの説明とバグ報告に関する情報は
68 http://www.kernel.org/doc/man\-pages/ に書かれている。