Ok I agree, in this particular an simple API will do the job fine but I still wanted to know if it is possible to register a "soft device" (more complicated than my simple MRAM register) to link with a driver or if it has to be linked with a hardware device ?

Le 08/09/2017 à 11:57, Sebastian Huber a écrit :
On 08/09/17 11:28, Yannick SARTHOU wrote:

*What I want to achieve :* I want to create a new driver that allows the user to open a device "/dev/mram" and use ioctl calls to allow the user to control these registers in a safe way.

You don't have to use a device driver for this. You need a device driver only if you want to be portable to systems with a user/kernel space separation or avoid link time dependencies. You can define a simple API with normal functions for your MRAM device.


--
Yannick Sarthou
------------------------------------------------------------------------
*Yannick Sarthou *
Informatique

   *EREMS *
   /13, Chemin de la Madeleine - ZI
   31130 - Flourens – France /
   *Web :*........ http://www.erems.fr <http://www.erems.fr/>
   *Tel :*........ +33 (0)5 61 36 06 06
   *Fax :*........ +33 (0)5 61 83 99 45
   *Mail :*........ yannick.sart...@erems.fr
<mailto:yannick.sart...@erems.fr>
------------------------------------------------------------------------
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to