Implement srcu_dereference() macro in the LinuxKPI.
MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
f4b4cf565d
commit
959d6165a2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314207
@ -34,6 +34,8 @@ struct srcu_struct {
|
||||
struct ck_epoch_record *ss_epoch_record;
|
||||
};
|
||||
|
||||
#define srcu_dereference(ptr,srcu) ((__typeof(*(ptr)) *)(ptr))
|
||||
|
||||
/* prototypes */
|
||||
|
||||
extern int srcu_read_lock(struct srcu_struct *);
|
||||
|
Loading…
Reference in New Issue
Block a user