kernel: struct list_head

From: vertigo (ax178_at_wp.pl)
Date: 10/30/04

  • Next message: Ulrich Eckhardt: "Re: kernel: struct list_head"
    Date: Sat, 30 Oct 2004 13:55:27 +0200
    
    

    Hello
    I write a module for kernel 2.6.
    I wanted to use struct list_head as double linked list,
    but i foud it's definition in <linux/list.h> as:

    struct list_head{
    struct list_head *prev,*next;
    };

    I found that this list is often used but i do not understeand why.
    Is does not contain any data. Even a pointer to some structrue.
    So what is it for ?

    Thanx
    Michal


  • Next message: Ulrich Eckhardt: "Re: kernel: struct list_head"

    Relevant Pages