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

📄 readme

📁 fsmlabs的real time linux的内核
💻
字号:
****************************************************************** * Copyright (c) 2002, Intel Corporation. All rights reserved. * Created by:  julie.n.fleischer REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license.  For the full content * of this license, see the COPYING file at the top level of this * source tree.                                                                                    	Addapted by J. Vidal <jvidal@disca.upv.es> to RTLinux 10-12-02.******************************************************************TEST: 1-1.c * Test that timer_create() creates a timer. * Steps: * 1.  Set up sigevent structure to send signal SIGTOTEST on timer *     expiration. * 2.  Set up sigaction structure to catch signal SIGTOTEST on timer *     expiration * 3.  Create timer using timer_create(). * 4.  Activate timer using timer_settime() and then sleep. * 5.  If signal handler is called, continue.  Otherwise, fail. * 6.  If signal handler was called and the time left in sleep ~= the *     delta between the timer time and sleep time, then PASS. *     Otherwise, FAIL. * * For this test, signal SIGTOTEST will be used, clock CLOCK_REALTIME * will be used.******************************************************************TEST: 16-1.c * Test that timer_create() sets errno to EINVAL if clock_id is not * a defined clock ID.******************************************************************TEST: 2-1.c * Test that timer_create() returns a unique timer ID for the current * process. * For this test, signal SIGALRM will be used, clock CLOCK_REALTIME * will be used.******************************************************************TEST: 5-1.c * Test that the following scenarios are identical: * evp == NULL * and * evp.sigev_notify=SIGEV_SIGNAL * evp.sigev_signo="default signal" * evp.sigev_value=timerid * * Steps: * 1.  Set up sigaction structure to catch signal SIGALRM (default signal) on  *     timer expiration * 2.  Create timer using timer_create(). * 3.  Activate timer using timer_settime() and then sleep. * 4.  If signal handler is called, continue.  Otherwise, fail. * 5.  If signal handler was called and the time left in sleep ~= the *     delta between the timer time and sleep time, then PASS. *     Otherwise, FAIL. * * Note:  This test is identical to 1-1.c minus the evp lines. * * For this test clock CLOCK_REALTIME will be used.******************************************************************TEST: 7-1.c * pt:MON * * Test that CLOCK_MONOTONIC is supported by timer_create(). * * Same test as 1-1.c with CLOCK_MONOTONIC.

⌨️ 快捷键说明

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