File: phys.2

package info (click to toggle)
manpages-fr 0.5-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,236 kB
  • ctags: 4
  • sloc: makefile: 55
file content (75 lines) | stat: -rw-r--r-- 2,854 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (c) 1993 Michael Haardt
.\" (u31b3hs@pool.informatik.rwth-aachen.de)
.\" Fri Apr  2 11:32:09 MET DST 1993
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" Modified Sun Jul 25 10:49:24 1993 by Rik Faith <faith@cs.unc.edu>
.\"
.\" Traduction 15/04/1997 par Christophe Blaess (ccb@club-internet.fr)
.\" 
.TH PHYS 2 "15 Avril 1997" Linux "Manuel du programmeur Linux"
.SH NOM
phys \- Permettre a un processus d'acceder a une adresse physique [NON IMPLEMENTE].
.SH SYNOPSIS
.ad l
.nf
.BI "int phys(int " physnum ", char *" virtaddr ", long " size ,
.BI "char *" physaddr );
.fi
.ad b
.SH DESCRIPTION
.BR ATTENTION :
Cette fonction n'est pas implementee sous Linux 0.99.11, elle renverra toujours
\-1 et la variable
.I errno
contiendra
.BR ENOSYS .

\fBphys\fP projette dans l'espace d'adressage virtuel d'un processus, une
partie quelconque de la memoire physique. \fIphysnum\fP 
est un nombre (0\(en3) indiquant lequel des 4 espaces d'adressage physique
doit etre employe. Jusqu'a 4 appels \fBphys\fP peuvent etre actifs
simultanement.
\fIvirtaddr\fP est l'adresse virtuelle pour le processus.
\fIsize\fP est le nombre d'octets concernes.
\fIphysaddr\fP est l'adresse physique a projeter en memoire.
.PP
Les valeurs valides de \fIvirtaddr\fP et \fIphysaddr\fP dependent
du materiel, et doivent etre des multiples de l'unite d'adressage
memoire employe par le micro-processeur. Si \fIsize\fP est non nul,
il est arrondi par exces a la valeur corerspondant a la resolution
du shema de gestion memoire. Si \fIsize\fP est nul, et s'il y a une
projection \fBphys\fP(2) active avec le numero \fIphysnum\fP, celle-ci
est annulee.
.SH "VALEUR RENVOYEE"
En cas de reussite, 0 est renvoye, sinon \fBphys\fP() renvoie \-1
et
.I errno
contient le code d'erreur.
.SH "CONFORMITE"
Version 7.
.SH BUGS
\fBphys\fP est tres dependant de l'architecture physique.
.SH "VOIR AUSSI"
.BR mmap "(2), " munmap (2)