12 Replies Latest reply on Oct 13, 2014 3:53 AM by Krzysztof_Czarnowski

    Using ESRAM from user-space code

    Ehsan

      I need to use the Quark's esram in user space programs.

       

      The driver has a sysfs interface that can map text section symbols of kernel modules (not very useful for me). The driver functions (exported using EXPORT_SYMBOL) can map a range of addresses, but they can be accessed only in kernel modules. There is no system call for the user as far as I know.

       

      I wrote a module that allocates and maps a memory buffer, and provides mmap (through a device or a debugfs file) for the user code. But the memory bandwidth is not improved so I assume the user process is not using the esram.

       

      Does anyone know a way to use the esram in user code?

       

      Thanks,

      -Ehsan