This is Unofficial EPICS BASE Doxygen Site
vxComLibrary.c File Reference
#include "epicsDynLink.h"
+ Include dependency graph for vxComLibrary.c:

Go to the source code of this file.

Functions

int logMsgToErrlog (void)
 
int veclist (int)
 
void vxComLibrary (int callit)
 

Function Documentation

int logMsgToErrlog ( void  )

Definition at line 32 of file logMsgToErrlog.cpp.

32 { return 0;}
int veclist ( int  )

Definition at line 47 of file veclist.c.

48 {
49  int vec;
50  int value;
51  SYM_TYPE type;
52  char name[MAX_SYS_SYM_LEN];
53  char function_type[10];
54  FUNCPTR proutine;
55  FUNCPTR pCISR;
56  int cRoutine;
57  void *pparam;
58  int status;
59  unsigned i;
60 
61  for(vec=0; vec<NVEC; vec++){
62  proutine = intVecGet((FUNCPTR *)INUM_TO_IVEC(vec));
63 
64  status = cISRTest(proutine, &pCISR, &pparam);
65  if(status == OK){
66  cRoutine = TRUE;
67  proutine = pCISR;
68  strcpy(function_type, "C");
69  }
70  else{
71  cRoutine = FALSE;
72  strcpy(function_type, "MACRO");
73  pCISR = NULL;
74  }
75 
76  status = symFindByValue(
77  sysSymTbl,
78  (int)proutine,
79  name,
80  &value,
81  &type);
82  if(status<0 || value != (int)proutine){
83  sprintf(name, "0x%X", (unsigned int) proutine);
84  }
85  else if(!all){
86  int match = FALSE;
87 
88  for(i=0; i<NELEMENTS(ignore_list); i++){
89  if(!strcmp(ignore_list[i],name)){
90  match = TRUE;
91  break;
92  }
93  }
94  if(match){
95  continue;
96  }
97  }
98  printf( "vec 0x%02X %5s ISR %s",
99  vec,
100  function_type,
101  name);
102  if(cRoutine){
103  printf("(0x%X)", (unsigned int) pparam);
104  }
105  printf("\n");
106  }
107 
108  return OK;
109 }
Definition: link.h:174
#define FALSE
Definition: dbDefs.h:32
pvd::Status status
int i
Definition: scan.c:967
#define printf
Definition: epicsStdio.h:41
pvd::StructureConstPtr type
#define NULL
Definition: catime.c:38
#define NVEC
Definition: veclist.c:33
#define NELEMENTS(A)
Definition: aToIPAddr.c:21
Definition: caget.c:45
#define TRUE
Definition: dbDefs.h:27
int cISRTest(FUNCPTR proutine, FUNCPTR *ppisr, void **pparam)
Definition: veclist.c:121
void vxComLibrary ( int  callit)

Definition at line 24 of file vxComLibrary.c.

25 {
26  if(callit) symFindByNameEPICS(0,0,0,0);
27  if(callit) logMsgToErrlog();
28  if(callit) veclist(0);
29 }
int veclist(int)
Definition: veclist.c:47
int logMsgToErrlog(void)