Home
last modified time | relevance | path

Searched refs:nr_node (Results 1 – 2 of 2) sorted by relevance

/linux-3.4.99/net/netrom/
Dnr_route.c48 static struct nr_node *nr_node_get(ax25_address *callsign) in nr_node_get()
50 struct nr_node *found = NULL; in nr_node_get()
51 struct nr_node *nr_node; in nr_node_get() local
55 nr_node_for_each(nr_node, node, &nr_node_list) in nr_node_get()
56 if (ax25cmp(callsign, &nr_node->callsign) == 0) { in nr_node_get()
57 nr_node_hold(nr_node); in nr_node_get()
58 found = nr_node; in nr_node_get()
94 struct nr_node *nr_node; in nr_add_node() local
105 nr_node = nr_node_get(nr); in nr_add_node()
116 struct nr_node *nr_nodet; in nr_add_node()
[all …]
/linux-3.4.99/include/net/
Dnetrom.h105 struct nr_node { struct
123 static __inline__ void nr_node_put(struct nr_node *nr_node) in nr_node_put() argument
125 if (atomic_dec_and_test(&nr_node->refcount)) { in nr_node_put()
126 kfree(nr_node); in nr_node_put()
145 static __inline__ void nr_node_lock(struct nr_node *nr_node) in nr_node_lock() argument
147 nr_node_hold(nr_node); in nr_node_lock()
148 spin_lock_bh(&nr_node->node_lock); in nr_node_lock()
151 static __inline__ void nr_node_unlock(struct nr_node *nr_node) in nr_node_unlock() argument
153 spin_unlock_bh(&nr_node->node_lock); in nr_node_unlock()
154 nr_node_put(nr_node); in nr_node_unlock()