raw_read_se..._latch_retry(9)
π raw_read_se..._latch_retry(9) β from the Kernel API Manual, bestie
Okay so picture this: you're deep in the kernel, you've been reading through a seqcount_latch_t like the main character you are, and now you gotta close out that read section properly. That's literally this function. Welcome to the group chat π«Ά
β¨ NAME β¨
raw_read_seqcount_latch_retry β the one that ends a seqcount_latch_t read section. Say bye to your read, queen π
πΈ SYNOPSIS πΈ
int raw_read_seqcount_latch_retry (const seqcount_latch_t *s , unsigned
start );
π ARGUMENTS π
sβ Pointer toseqcount_latch_t. Yep, that's the thing you're retrying against πstartβ the count, and it comes fromraw_read_seqcount_latch. Don't make one up, ok? Take the one it gave you π
β RETURN β
trueif a read section retry is required πfalseotherwise π
That's it. That's the vibe check. No cap.
π¦ SEE ALSO π¦
Kernel file ./include/linux/seqlock.h, plus the whole extended universe of seqlock besties β every single one, in order, because we don't skip the credits here:
seqcount_init(9)SEQCNT_ZERO(9)__read_seqcount_begin(9)raw_read_seqcount_begin(9)read_seqcount_begin(9)raw_read_seqcount(9)raw_seqcount_try_begin(9)raw_seqcount_begin(9)__read_seqcount_retry(9)read_seqcount_retry(9)raw_write_seqcount_begin(9)raw_write_seqcount_end(9)write_seqcount_begin_nested(9)write_seqcount_begin(9)write_seqcount_end(9)raw_write_seqcount_barrier(9)write_seqcount_invalidate(9)SEQCNT_LATCH_ZERO(9)seqcount_latch_init(9)raw_read_seqcount_latch(9)read_seqcount_latch(9)read_seqcount_latch_retry(9)raw_write_seqcount_latch(9)write_seqcount_latch_begin(9)write_seqcount_latch(9)write_seqcount_latch_end(9)seqlock_init(9)DEFINE_SEQLOCK(9)read_seqbegin(9)read_seqretry(9)write_seqlock(9)write_sequnlock(9)write_seqlock_bh(9)write_sequnlock_bh(9)write_seqlock_irq(9)write_sequnlock_irq(9)write_seqlock_irqsave(9)write_sequnlock_irqrestore(9)read_seqlock_excl(9)read_sequnlock_excl(9)read_seqlock_excl_bh(9)read_sequnlock_excl_bh(9)read_seqlock_excl_irq(9)read_sequnlock_excl_irq(9)read_seqlock_excl_irqsave(9)read_sequnlock_excl_irqrestore(9)read_seqbegin_or_lock(9)need_seqretry(9)done_seqretry(9)read_seqbegin_or_lock_irqsave(9)done_seqretry_irqrestore(9)scoped_seqlock_read(9)
π real talk though: if this retry comes back true, your read section got stomped mid-read and you gotta go again. Skipping the retry is giving "I didn't read the group chat" energy and it will not end well, fr fr.
Alright bestie, that's the whole page π stay latched, stay retried, and remember: the header said raw_read_se..._latch_retry(9) and it lives in the Kernel API Manual β yes, the name really is that long, they abbreviate it for the flex π
Source/version: ./include/linux Β· dated October 2026 β mwah, kisses, bye ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms