⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mon-manager.c

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 C
字号:
/* * RTEMS Monitor "manager" support. * Used to traverse object (chain) lists and print them out. * *  $Id: mon-manager.c,v 1.7.2.1 2003/07/08 08:37:40 ralf Exp $ */#ifdef HAVE_CONFIG_H#include "config.h"#endif#include <rtems.h>#include <rtems/monitor.h>#include <stdio.h>/* * "next" routine for all objects that are RTEMS manager objects */void *rtems_monitor_manager_next(    void      *table_void,    void      *canonical,    rtems_id  *next_id){    Objects_Information     *table = table_void;    rtems_monitor_generic_t *copy;    Objects_Control         *object = 0;    Objects_Locations        location;    /*     * When we are called, it must be local     */           if ( ! _Objects_Is_local_id(*next_id))        goto done;        object = _Objects_Get_next(table, *next_id, &location, next_id);    if (object)    {        copy = (rtems_monitor_generic_t *) canonical;        copy->id = object->id;		if(table->is_string)    	    _Objects_Copy_name_raw(object->name, &copy->name, sizeof(copy->name));    	else	        _Objects_Copy_name_raw(&object->name, &copy->name, sizeof(copy->name));	}done:    return object;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -