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 76 77 78 79 80
|
.\" 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)
.\" Mise a Jour 21/09/98 LDP-man-pages-1.20
.TH PHYS 2 "21 Septembre 1998" Linux "Manuel du programmeur Linux"
.SH NOM
phys \- Permettre un processus d'accder une adresse physique [NON IMPLEMENT].
.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 implmente sous Linux 2.0, 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 mmoire physique. \fIphysnum\fP
est un nombre (0\(en3) indiquant lequel des 4 espaces d'adressage physique
doit tre employ. Jusqu' 4 appels \fBphys\fP peuvent tre actifs
simultanment.
\fIvirtaddr\fP est l'adresse virtuelle pour le processus.
\fIsize\fP est le nombre d'octets concerns.
\fIphysaddr\fP est l'adresse physique projeter en mmoire.
.PP
Les valeurs valides de \fIvirtaddr\fP et \fIphysaddr\fP dpendent
du matriel, et doivent tre des multiples de l'unit d'adressage
mmoire employe par le micro-processeur. Si \fIsize\fP est non nul,
il est arrondi par excs la valeur correspondant la rsolution
du schma de gestion mmoire. Si \fIsize\fP est nul, et s'il y a une
projection \fBphys\fP(2) active avec le numro \fIphysnum\fP, celle-ci
est annule.
.SH "VALEUR RENVOYE"
En cas de russite, 0 est renvoy, sinon \fBphys\fP() renvoie \-1
et
.I errno
contient le code d'erreur.
.SH "CONFORMIT"
Version 7.
.SH BUGS
\fBphys\fP est trs dpendant de l'architecture physique.
.SH "VOIR AUSSI"
.BR mmap (2),
.BR munmap (2),
.BR unimplemented (2)
.SH TRADUCTION
Christophe Blaess, 1997.
|