Implement srcu_dereference() macro in the LinuxKPI.

MFC after:		1 week
Sponsored by:		Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2017-02-24 14:40:15 +00:00
parent f4b4cf565d
commit 959d6165a2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314207

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