Hello:
I'am doing my thesis in based on Rtlinux. I have to map a file on memory to
that  rtilinux use it. My problem is how pass to rtlinux the memory address.
Proccess Linux pass to rtlinux the memory address where the file is mapped.
But, how do Linux convert this memory address to its address space?. 
I think that get_user must not work because in the register haven't be the
segment of process linux.
Excuse me for my poor English. This is in my speach:

 Buenas:
Estoy realizando un proyecto fin de carrera basado en linux. En el tengo que
mapear un fichero en memoria , para que lo use rtlinux. Mi problema está en
como pasar a rtlinux la dirección de memoria en la cual está mapeado.
Yo de momento le paso desde proceso Linux a rtlinux la dirección de memoria
donde está mapeado. Pero como convierte rtlinux esa dirección de memoria a su
espacio de direcicones?, ya que get_user no vale, por no estar en el
registro fp el segmento del proceso linux.

        /*Linux proccess*/
pfichero=mmap(0,flength, PROT_READ,MAP_SHARED|MAP_LOCKED,fd,0);
/*Enviamos la dirección del fichero mapeado*/
 write(fifow,&pfichero,sizeof(char*));

        /*RTLinux proccess*/
rtf_get(FIFO_NUMW,&pfichero,sizeof(char*))
<How I access to mapped file?>


=============================================================================
Mario Teijeiro Otero               
Powered by RedHat 6.1               mailto:[EMAIL PROTECTED]     
Usr. Reg. 122438                    clave: Mandame un correo con subject:
                                    "Dame PGP please."
=============================================================================
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to