Changeset 04803bf in mainline for kernel/generic/include/adt/list.h


Ignore:
Timestamp:
2011-03-21T22:00:17Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
143932e3
Parents:
b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes (needs fixes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/list.h

    rb50b5af2 r04803bf  
    3636#define KERN_LIST_H_
    3737
    38 #include <arch/types.h>
    3938#include <typedefs.h>
     39#include <trace.h>
    4040
    4141/** Doubly linked list head and link type. */
     
    5858 * @param link Pointer to link_t structure to be initialized.
    5959 */
    60 static inline void link_initialize(link_t *link)
     60NO_TRACE static inline void link_initialize(link_t *link)
    6161{
    6262        link->prev = NULL;
     
    7070 * @param head Pointer to link_t structure representing head of the list.
    7171 */
    72 static inline void list_initialize(link_t *head)
     72NO_TRACE static inline void list_initialize(link_t *head)
    7373{
    7474        head->prev = head;
     
    8383 * @param head Pointer to link_t structure representing head of the list.
    8484 */
    85 static inline void list_prepend(link_t *link, link_t *head)
     85NO_TRACE static inline void list_prepend(link_t *link, link_t *head)
    8686{
    8787        link->next = head->next;
     
    9898 * @param head Pointer to link_t structure representing head of the list.
    9999 */
    100 static inline void list_append(link_t *link, link_t *head)
     100NO_TRACE static inline void list_append(link_t *link, link_t *head)
    101101{
    102102        link->prev = head->prev;
     
    113113 *              contained in.
    114114 */
    115 static inline void list_remove(link_t *link)
     115NO_TRACE static inline void list_remove(link_t *link)
    116116{
    117117        link->next->prev = link->prev;
     
    126126 * @param head Pointer to link_t structure representing head of the list.
    127127 */
    128 static inline bool list_empty(link_t *head)
     128NO_TRACE static inline bool list_empty(link_t *head)
    129129{
    130130        return head->next == head ? true : false;
     
    144144 *              headless) list.
    145145 */
    146 static inline void headless_list_split_or_concat(link_t *part1, link_t *part2)
     146NO_TRACE static inline void headless_list_split_or_concat(link_t *part1, link_t *part2)
    147147{
    148148        link_t *hlp;
     
    165165 *              headless list.
    166166 */
    167 static inline void headless_list_split(link_t *part1, link_t *part2)
     167NO_TRACE static inline void headless_list_split(link_t *part1, link_t *part2)
    168168{
    169169        headless_list_split_or_concat(part1, part2);
     
    177177 * @param part2 Pointer to link_t structure leading the second headless list.
    178178 */
    179 static inline void headless_list_concat(link_t *part1, link_t *part2)
     179NO_TRACE static inline void headless_list_concat(link_t *part1, link_t *part2)
    180180{
    181181        headless_list_split_or_concat(part1, part2);
Note: See TracChangeset for help on using the changeset viewer.