termiosreserveresources.c

来自「RTEMS (Real-Time Executive for Multiproc」· C语言 代码 · 共 38 行

C
38
字号
/* *  Reserve enough resources to open every physical device once. * * $Id: termiosreserveresources.c,v 1.3 2001/01/08 18:26:44 joel Exp $ */#if HAVE_CONFIG_H#include "config.h"#endif#include <rtems.h>#if 0static int first_time;   /* assumed to be zeroed by BSS initialization */#endifvoid rtems_termios_reserve_resources (  rtems_configuration_table *configuration,  rtems_unsigned32           number_of_devices){#if 0        rtems_api_configuration_table *rtems_config;        if (!configuration)                rtems_fatal_error_occurred (0xFFF0F001);        rtems_config = configuration->RTEMS_api_configuration;        if (!rtems_config)                rtems_fatal_error_occurred (0xFFF0F002);        if (!first_time)                rtems_config->maximum_semaphores += 1;        first_time = 1;        rtems_config->maximum_semaphores += (4 * number_of_devices);#endif}

⌨️ 快捷键说明

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