4.115
Last change
on this file since 2d7ae960 was
9b4422a2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24
|
Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2010 Gedare Bloom. |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.com/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #if HAVE_CONFIG_H |
---|
10 | #include "config.h" |
---|
11 | #endif |
---|
12 | |
---|
13 | #include <rtems/system.h> |
---|
14 | #include <rtems/score/address.h> |
---|
15 | #include <rtems/score/rbtree.h> |
---|
16 | #include <rtems/score/isr.h> |
---|
17 | |
---|
18 | /* |
---|
19 | * _RBTree_Find |
---|
20 | * |
---|
21 | * This kernel routine returns a pointer to the rbtree node containing the |
---|
22 | * given key within the given tree, if it exists, or NULL otherwise. |
---|
23 | * |
---|
24 | * Input parameters: |
---|
25 | * the_rbtree - pointer to rbtree control |
---|
26 | * search_node - node with the key to search for |
---|
27 | * |
---|
28 | * Output parameters: |
---|
29 | * return_node - pointer to control header of rbtree |
---|
30 | * NULL - if there is no control header available (the node is not part |
---|
31 | * of a tree) |
---|
32 | * |
---|
33 | * INTERRUPT LATENCY: |
---|
34 | * only case |
---|
35 | */ |
---|
36 | |
---|
37 | RBTree_Node *_RBTree_Find( |
---|
38 | RBTree_Control *the_rbtree, |
---|
39 | RBTree_Node *search_node |
---|
40 | ) |
---|
41 | { |
---|
42 | ISR_Level level; |
---|
43 | RBTree_Node *return_node; |
---|
44 | |
---|
45 | return_node = NULL; |
---|
46 | _ISR_Disable( level ); |
---|
47 | return_node = _RBTree_Find_unprotected( the_rbtree, search_node ); |
---|
48 | _ISR_Enable( level ); |
---|
49 | return return_node; |
---|
50 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.