lkml.org 
[lkml]   [2006]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 1/8] introduce hlist_move_head()
    This patch introduces the function hlist_move_head().
    This function deletes from one hash list and add as another's head

    Signed-off-by: Akinobu Mita <mita@miraclelinux.com>

    include/linux/list.h | 5 +++++
    1 files changed, 5 insertions(+)

    Index: 2.6-git/include/linux/list.h
    ===================================================================
    --- 2.6-git.orig/include/linux/list.h
    +++ 2.6-git/include/linux/list.h
    @@ -656,6 +656,11 @@ static inline void hlist_add_head(struct
    n->pprev = &h->first;
    }

    +static inline void hlist_move_head(struct hlist_node *n, struct hlist_head *h)
    +{
    + __hlist_del(n);
    + hlist_add_head(n, h);
    +}

    /**
    * hlist_add_head_rcu - adds the specified element to the specified hlist,
    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-03-30 10:22    [W:5.014 / U:0.728 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site