Home
last modified time | relevance | path

Searched refs:seqlock (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dseqlock.h47 struct seqlock { struct
51 typedef struct seqlock seqlock_t; argument
115 seqlock_init(struct seqlock *seqlock) in seqlock_init() argument
122 mtx_init(&seqlock->seql_lock, "seqlock", NULL, MTX_DEF|MTX_NOWITNESS); in seqlock_init()
123 seqcount_init(&seqlock->seql_count); in seqlock_init()
127 lkpi_write_seqlock(struct seqlock *seqlock, const bool irqsave) in lkpi_write_seqlock() argument
129 mtx_lock(&seqlock->seql_lock); in lkpi_write_seqlock()
132 write_seqcount_begin(&seqlock->seql_count); in lkpi_write_seqlock()
136 write_seqlock(struct seqlock *seqlock) in write_seqlock() argument
138 lkpi_write_seqlock(seqlock, false); in write_seqlock()
[all …]
/freebsd/sys/contrib/ck/include/
H A Dck_sequence.h88 #define CK_SEQUENCE_READ(seqlock, version) \ argument
90 (*(version) != 0) && (*(version) = ck_sequence_read_begin(seqlock), 1); \
91 *(version) = ck_sequence_read_retry(seqlock, *(version)))