linuxkpi: Add seqcount_ww_mutex_t
in <linux/seqlock.h>
It is defined as a synonymous to `seqcount_mutex_t`. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38152
This commit is contained in:
parent
d9f1cb6774
commit
b34cd67243
@ -53,6 +53,7 @@ struct seqcount_mutex {
|
||||
seqc_t seqc;
|
||||
};
|
||||
typedef struct seqcount_mutex seqcount_mutex_t;
|
||||
typedef struct seqcount_mutex seqcount_ww_mutex_t;
|
||||
|
||||
static inline void
|
||||
__seqcount_init(struct seqcount *seqcount, const char *name __unused,
|
||||
@ -68,6 +69,9 @@ seqcount_mutex_init(struct seqcount_mutex *seqcount, void *mutex __unused)
|
||||
seqcount->seqc = 0;
|
||||
}
|
||||
|
||||
#define seqcount_ww_mutex_init(seqcount, ww_mutex) \
|
||||
seqcount_mutex_init((seqcount), (ww_mutex))
|
||||
|
||||
#define write_seqcount_begin(s) \
|
||||
_Generic(*(s), \
|
||||
struct seqcount: seqc_sleepable_write_begin, \
|
||||
|
Loading…
Reference in New Issue
Block a user