[EMAIL PROTECTED]:
> This document will answer a lot of your questions :
> 
> http://www.isd.cme.nist.gov/projects/emc/shmem.html

This is a good general introduction to shared memory usage, but it does not
include any information about mbuff (shared memory driver). With that you
will get no size limit. Try to get
http://crds.chemie.unibas.ch/PCI-MIO-E/mbuff-0.6.4.tar.gz read the MANUAL
file.  It can be used under 2.0 and 2.2 kernels and 0.6.2 version is also
included in rtlinux-2.0.tgz.

I have received few requests for enhancements, I hope to release next version
in a few days.

Stephane Bouchard <[EMAIL PROTECTED]>: 
> 2- Can I use this shared memory from a interrupt routine?

Yes. You can use, but not allocate/mmap new area.

>
> 3- Can I shared memory between a RTL-interrupt routine and a Linux-Process
> and follow the writing by this way:
>
> RTL interrupt routine:
> -declare a structure (and allocate the memory for) where the number of data
> acquired is record, base address, ... are stock.
> -send the address of the structure by a fifo to a linux process
> -declare a shared memory zone for record data
> -record data on shared memory and increase the index in structure

You can not allocate memory and change shared memory mappings in RT-ISR. So,
allocate an mbuff at module load time and set it up as circular buffer, and
then send offsets (not addresses - the area is mmaped and different addresses
in the kernel and user space).

> Linux-process
> -declare a pointer on the address receive by the fifo
> -allocate the shared memory zone
allocation of shared memory zone is not real time - it may require the kernel
to swap out some memory pages.

Best regards,
--
Tomek


--- [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