Implement srcu_dereference() macro in the LinuxKPI.

MFC after:		1 week
Sponsored by:		Mellanox Technologies
This commit is contained in:
hselasky 2017-02-24 14:40:15 +00:00
parent db022cc9e0
commit d795bd752a

View File

@ -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 *);