5
Last change
on this file since dafa5d88 was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Extracts a node from a given chain |
---|
5 | * |
---|
6 | * @ingroup ScoreChain |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2007. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #if HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems/system.h> |
---|
23 | #include <rtems/score/address.h> |
---|
24 | #include <rtems/score/chainimpl.h> |
---|
25 | #include <rtems/score/isr.h> |
---|
26 | |
---|
27 | /* |
---|
28 | * _Chain_Insert |
---|
29 | * |
---|
30 | * This kernel routine inserts a given node after a specified node |
---|
31 | * a requested chain. |
---|
32 | * |
---|
33 | * Input parameters: |
---|
34 | * after_node - pointer to node in chain to be inserted after |
---|
35 | * node - pointer to node to be inserted |
---|
36 | * |
---|
37 | * Output parameters: NONE |
---|
38 | * |
---|
39 | * INTERRUPT LATENCY: |
---|
40 | * only case |
---|
41 | */ |
---|
42 | |
---|
43 | void _Chain_Insert( |
---|
44 | Chain_Node *after_node, |
---|
45 | Chain_Node *node |
---|
46 | ) |
---|
47 | { |
---|
48 | ISR_Level level; |
---|
49 | |
---|
50 | _ISR_Disable( level ); |
---|
51 | _Chain_Insert_unprotected( after_node, node ); |
---|
52 | _ISR_Enable( level ); |
---|
53 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.