我想知道在我的vxWorks 6.x系统中有什么信号量,messageQueues等等.我可以通过调试器访问这些信息,但我想从shell访问它.
有办法吗?
VxWorks 6.x提供了一个名为classShow()的函数,它将列出特定类的所有对象(例如信号量,消息队列,任务......).以下调用将为您提供给定类的对象列表:
classShow(objClassIdGet(classId), 1) The classId types are: 1 windSemClass, /* Wind native semaphore */ 2 windSemPxClass, /* POSIX semaphore */ 3 windMsgQClass, /* Wind native message queue */ 4 windMqPxClass, /* POSIX message queue */ 5 windRtpClass, /* real time process */ 6 windTaskClass, /* task */ 7 windWdClass, /* watchdog */ 8 windFdClass, /* file descriptor */ 9 windPgPoolClass, /* page pool */ 10 windPgMgrClass, /* page manager */ 11 windGrpClass, /* group */ 12 windVmContextClass, /* virtual memory context */ 13 windTrgClass, /* trigger */ 14 windMemPartClass, /* memory partition */ 15 windI2oClass, /* I2O */ 16 windDmsClass, /* device management system */ 17 windSetClass, /* Set */ 18 windIsrClass, /* ISR object */ 19 windTimerClass, /* Timer services */ 20 windSdClass, /* Shared data region */ 21 windPxTraceClass, /* POSIX trace */