Subversion Repositories HelenOS

Rev

Rev 2071 | Rev 2446 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2089
Line 34... Line 34...
34
 
34
 
35
#ifndef KERN_LIST_H_
35
#ifndef KERN_LIST_H_
36
#define KERN_LIST_H_
36
#define KERN_LIST_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
39
#include <typedefs.h>
-
 
40
 
39
 
41
/** Doubly linked list head and link type. */
40
/** Doubly linked list head and link type. */
42
struct link {
41
typedef struct link {
43
    link_t *prev;   /**< Pointer to the previous item in the list. */
42
    struct link *prev;  /**< Pointer to the previous item in the list. */
44
    link_t *next;   /**< Pointer to the next item in the list. */
43
    struct link *next;  /**< Pointer to the next item in the list. */
45
};
44
} link_t;
46
 
45
 
47
/** Declare and initialize statically allocated list.
46
/** Declare and initialize statically allocated list.
48
 *
47
 *
49
 * @param name Name of the new statically allocated list.
48
 * @param name Name of the new statically allocated list.
50
 */
49
 */