OSDN Git Service

Convert release and draft pages to UTF-8.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man2 / setup.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
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 .\" Japanese Version Copyright (c) 1997 Daisuke Sato
35 .\"         all rights reserved.
36 .\" Translated Sat Apr 19 15:22:53 JST 1997
37 .\"         by Daisuke Sato
38 .\" Updated & Modified Mon Mar 1 1999
39 .\"         by NAKANO Takeo <nakano@apm.seikei.ac.jp>
40 .\" Updated Thu Mar 16 09:32:28 2000
41 .\"         by Kentaro Shirakata <argrath@yo.rim.or.jp>
42 .\"
43 .\"WORD:        file systems            ファイルシステム
44 .\"WORD:        root file system        ルートファイルシステム
45 .\"WORD:        superuser               スーパーユーザー
46 .\"WORD:        user process            ユーザープロセス
47 .\"
48 .TH SETUP 2 2008-12-03 "Linux" "Linux Programmer's Manual"
49 .\"O .SH NAME
50 .SH 名前
51 .\"O setup \- setup devices and file systems, mount root file system
52 setup \- デバイスとファイルシステムの初期化を行い、
53 ルートファイルシステムのマウントを行う
54 .\"O .SH SYNOPSIS
55 .SH 書式
56 .B #include <unistd.h>
57 .sp
58 .B int setup(void);
59 .\"O .SH DESCRIPTION
60 .SH 説明
61 .\"O .BR setup ()
62 .\"O is called once from within
63 .\"O .IR linux/init/main.c .
64 .\"O It calls initialization functions for devices and file systems
65 .\"O configured into the kernel and then mounts the root file system.
66 .BR setup ()
67
68 .I linux/init/main.c
69 の中で一度だけ呼ばれる。
70 カーネル内部のデバイスとファイルシステムの初期化関数を呼び、
71 ルートファイルシステムのマウントを行う。
72 .PP
73 .\"O No user process may call
74 .\"O .BR setup ().
75 .\"O Any user process, even a process with superuser permission,
76 .\"O will receive
77 .\"O .BR EPERM .
78 ユーザープロセスからは
79 .BR setup ()
80 を呼びだすことはできない。
81 ユーザープロセスからのアクセスは、たとえそのプロセスが
82 スーパーユーザー権限を持っていても
83 .B EPERM
84 を受け取ることになる。
85 .\"O .SH "RETURN VALUE"
86 .SH 返り値
87 .\"O .BR setup ()
88 .\"O always returns \-1 for a user process.
89 .BR setup ()
90 はユーザープロセスに対して常に \-1 を返す。
91 .\"O .SH ERRORS
92 .SH エラー
93 .TP
94 .B EPERM
95 .\"O Always, for a user process.
96 ユーザプロセスに対しては、常にこのエラーとなる。
97 .\"O .SH VERSIONS
98 .SH バージョン
99 .\"O Since Linux 2.1.121, no such function exists anymore.
100 Linux 2.1.121 以降では、もはやこの関数は存在しない。
101 .\"O .SH "CONFORMING TO"
102 .SH 準拠
103 .\"O This function is Linux-specific, and should not be used in programs
104 .\"O intended to be portable, or indeed in any programs at all.
105 この関数は Linux に特有のものであり、移植を考慮したプログラムでは
106 用いるべきではない。それどころか、あらゆるプログラムで用いるべきではない。
107 .\"O .SH NOTES
108 .SH 注意
109 .\"O The calling sequence varied: at some times
110 .\"O .I setup ()
111 .\"O has had a single argument
112 .\"O .I "void *BIOS"
113 .\"O and at other times a single argument
114 .\"O .IR "int magic" .
115 呼び出し手続きは変化してきた。
116 ある時は
117 .I setup ()
118 は一つの引数
119 .I "void *BIOS"
120 を取っており、またある時には
121 .IR "int magic"
122 を一つの引数として取っていた。