Debian Codegraph @

drivers/net/ovpn-dco/rcu.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* OpenVPN data channel accelerator
3 *
4 * Copyright (C) 2019-2023 OpenVPN, Inc.
5 *
6 * Author: James Yonan <[email protected]>
7 * Antonio Quartulli <[email protected]>
8 */
9
10 #ifndef _NET_OVPN_DCO_OVPNRCU_H_
11 #define _NET_OVPN_DCO_OVPNRCU_H_
12
13 static inline void ovpn_rcu_lockdep_assert_held(void)
14 {
15 #ifdef CONFIG_PROVE_RCU
16 RCU_LOCKDEP_WARN(!rcu_read_lock_held(),
17 "ovpn-dco RCU read lock not held");
18 #endif
19 }
20
21 #endif /* _NET_OVPN_DCO_OVPNRCU_H_ */