File: phys.2

package info (click to toggle)
manpages-es 0.4a-2
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 3,592 kB
  • ctags: 3
  • sloc: sh: 59; makefile: 42
file content (70 lines) | stat: -rw-r--r-- 2,795 bytes parent folder | download
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
.\" 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>
.\" Modified Thu Feb 20 00:32:00 1997 by Nicols Lichtmaier <nick@debian.org>
.\"
.TH PHYS 2 "24 Febrero 1997" "Linux 2.0" "Manual del Programador de Linux"
.SH NOMBRE
phys \- permite a un proceso acceder a una direccion fisica de memoria
[NO IMPLEMENTADA]
.SH SINTAXIS
.ad l
.nf
.BI "int phys(int " physnum ", char *" virtaddr ", long " size ,
.BI "char *" physaddr );
.fi
.ad b
.SH DESCRIPCIN
.BR ATENCION :
Desde que esta funcion no esta implementada desde Linux 2.0 siempre
devolver \-1 y fijar
.I errno
a
.BR ENOSYS .

\fBphys\fP ubica memoria arbitrariamente en el espacio virtual de direcciones de
un proceso. \fIphysnum\fP es un valor en (0\(en3) que especifica cual de los 4 
espacios fisicos va a ser fijado. Pueden estar activas hasta 4 llamadas a
\fBphys\fP al mismo tiempo. \fIvirtaddr\fP es el la direccion virtual del proceso.
\fIsize\fP es el numero de bytes a ubicar.  \fIphysaddr\fP es la direccion
fisica modificar (mapear). 
.PP
Los valores validos para \fIvirtaddr\fP y \fIphysaddr\fP estan delimitados 
por el hardware y deben ser multipos de la resolucion del esquema de manejo
de memoria de la CPU. Si \fIsize\fP no es cero, \fIsize\fP es redondeado por
exceso al proximo valor aceptable por la MMU. Si \fIsize\fP es cero, cualquier
asignacion previa mediante \fBphys\fP(2) para \fIphysnum\fP es puesta a NULL.
.SH "VALOR DEVUELTO"
Si es correcto es devuelto el valor 0. Caso de error es devuelto \-1, y
.I errno
es fijado apropiadamente.
.SH "COMPATIBLE CON"
Version 7.
.SH ERRORES
\fBphys\fP es muy dependiente de la arquitectura.
.SH "VER TAMBIN"
.BR mmap "(2), " munmap (2)