Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  18 May 2009, Exaos Lee, Suggestion, Question about using mvmestd.h 
    Reply  18 May 2009, Stefan Ritt, Suggestion, Question about using mvmestd.h 
    Reply  19 May 2009, Konstantin Olchanski, Suggestion, Question about using mvmestd.h 
       Reply  20 May 2009, Exaos Lee, Suggestion, Question about using mvmestd.h 
Message ID: 579     Entry time: 18 May 2009     Reply to this: 580   581
Author: Exaos Lee 
Topic: Suggestion 
Subject: Question about using mvmestd.h 
The "mvmestd.h" uses the following function to open a VME device:
int mvme_open(MVME_INTERFACE **vme, int idx)
I found that the "driver/vme/sis3100/sis3100.c" uses the implementation as:
   /* open VME */
   sprintf(str, "/dev/sis1100_%02dremote", idx);
   (*vme)->handle = open(str, O_RDWR, 0);
   if ((*vme)->handle < 0)
      return MVME_NO_INTERFACE;
   }

The problem is: I renamed my SIS1100 devices as /dev/sis1100/xxxxx. So I have to hack the "sis3100.c".
Shall we have some smart way? Smile
ELOG V3.1.4-2e1708b5