source: rtems/cpukit/score/src/chaininsert.c @ a936aa49

4.115
Last change on this file since a936aa49 was d4d7899, checked in by Christopher Kerl <zargyyoyo@…>, on 11/28/12 at 19:31:53

score misc: Clean up Doxygen #2 (GCI 2012)

This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.

http://www.google-melange.com/gci/task/view/google/gci2012/7986213

  • 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.com/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/chain.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
43void _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.