Implement srcu_dereference() macro in the LinuxKPI.
MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
db022cc9e0
commit
d795bd752a
@ -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…
x
Reference in New Issue
Block a user