1*d2a9170aSFrançois Tigeot /*
2*d2a9170aSFrançois Tigeot * Copyright (c) 2015 François Tigeot
3*d2a9170aSFrançois Tigeot * All rights reserved.
4*d2a9170aSFrançois Tigeot *
5*d2a9170aSFrançois Tigeot * Redistribution and use in source and binary forms, with or without
6*d2a9170aSFrançois Tigeot * modification, are permitted provided that the following conditions
7*d2a9170aSFrançois Tigeot * are met:
8*d2a9170aSFrançois Tigeot * 1. Redistributions of source code must retain the above copyright
9*d2a9170aSFrançois Tigeot * notice unmodified, this list of conditions, and the following
10*d2a9170aSFrançois Tigeot * disclaimer.
11*d2a9170aSFrançois Tigeot * 2. Redistributions in binary form must reproduce the above copyright
12*d2a9170aSFrançois Tigeot * notice, this list of conditions and the following disclaimer in the
13*d2a9170aSFrançois Tigeot * documentation and/or other materials provided with the distribution.
14*d2a9170aSFrançois Tigeot *
15*d2a9170aSFrançois Tigeot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16*d2a9170aSFrançois Tigeot * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17*d2a9170aSFrançois Tigeot * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18*d2a9170aSFrançois Tigeot * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19*d2a9170aSFrançois Tigeot * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20*d2a9170aSFrançois Tigeot * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21*d2a9170aSFrançois Tigeot * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22*d2a9170aSFrançois Tigeot * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23*d2a9170aSFrançois Tigeot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24*d2a9170aSFrançois Tigeot * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25*d2a9170aSFrançois Tigeot */
26*d2a9170aSFrançois Tigeot
27*d2a9170aSFrançois Tigeot #ifndef _LINUX_RCULIST_H_
28*d2a9170aSFrançois Tigeot #define _LINUX_RCULIST_H_
29*d2a9170aSFrançois Tigeot
30*d2a9170aSFrançois Tigeot #include <linux/list.h>
31*d2a9170aSFrançois Tigeot
hlist_add_behind_rcu(struct hlist_node * n,struct hlist_node * prev)32*d2a9170aSFrançois Tigeot static inline void hlist_add_behind_rcu(struct hlist_node *n,
33*d2a9170aSFrançois Tigeot struct hlist_node *prev)
34*d2a9170aSFrançois Tigeot {
35*d2a9170aSFrançois Tigeot hlist_add_after(prev, n);
36*d2a9170aSFrançois Tigeot }
37*d2a9170aSFrançois Tigeot
38*d2a9170aSFrançois Tigeot #define hlist_for_each_entry_rcu(pos, head, member) \
39*d2a9170aSFrançois Tigeot hlist_for_each_entry(pos, head, member)
40*d2a9170aSFrançois Tigeot
41*d2a9170aSFrançois Tigeot #endif /* _LINUX_RCULIST_H_ */
42