mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Implement DEFINE_STATIC_SRCU() function macro in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies
This commit is contained in:
parent
884aaac660
commit
8b2a8a4954
1 changed files with 3 additions and 0 deletions
|
|
@ -34,6 +34,9 @@ struct srcu_struct {
|
|||
|
||||
#define srcu_dereference(ptr,srcu) ((__typeof(*(ptr)) *)(ptr))
|
||||
|
||||
#define DEFINE_STATIC_SRCU(name) \
|
||||
static struct srcu_struct name = {}
|
||||
|
||||
/* prototypes */
|
||||
|
||||
extern int srcu_read_lock(struct srcu_struct *);
|
||||
|
|
|
|||
Loading…
Reference in a new issue