diff options
Diffstat (limited to 'include/net/ax25.h')
-rw-r--r-- | include/net/ax25.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/ax25.h b/include/net/ax25.h index 3f9aea8087e3..8b7eb46ad72d 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h | |||
@@ -201,6 +201,18 @@ static inline void ax25_hold_route(ax25_route *ax25_rt) | |||
201 | 201 | ||
202 | void __ax25_put_route(ax25_route *ax25_rt); | 202 | void __ax25_put_route(ax25_route *ax25_rt); |
203 | 203 | ||
204 | extern rwlock_t ax25_route_lock; | ||
205 | |||
206 | static inline void ax25_route_lock_use(void) | ||
207 | { | ||
208 | read_lock(&ax25_route_lock); | ||
209 | } | ||
210 | |||
211 | static inline void ax25_route_lock_unuse(void) | ||
212 | { | ||
213 | read_unlock(&ax25_route_lock); | ||
214 | } | ||
215 | |||
204 | static inline void ax25_put_route(ax25_route *ax25_rt) | 216 | static inline void ax25_put_route(ax25_route *ax25_rt) |
205 | { | 217 | { |
206 | if (refcount_dec_and_test(&ax25_rt->refcount)) | 218 | if (refcount_dec_and_test(&ax25_rt->refcount)) |