read_seqcount_retry(9)
π read_seqcount_retry(9) π
okay so bestie, welcome to the Kernel API Manual π β this is the page for read_seqcount_retry, and it's literally the "are we still valid or nah" checkpoint of the seqcount_t world. stay with me, it's short and it slaps β¨
πΈ NAME πΈ
read_seqcount_retry β end a seqcount_t read critical section π
β¨ SYNOPSIS β¨
read_seqcount_retry (s , start );
yes that's it, that's the whole vibe. two args, no drama π«Ά
π ARGUMENTS π
sβ pointer toseqcount_t, or literally any of theseqcount_LOCKNAME_tvariants (they all get along π)startβ the count you got fromread_seqcount_beginβ you must have grabbed it there, iykyk π
π¦ DESCRIPTION π¦
so read_seqcount_retry closes the read critical section of the given seqcount_t. that's the whole job bestie, it's a closer π₯
but here's the important part, no cap: if the critical section was invalid, it must be ignored (and typically retried). like, the data you read? not trustworthy, throw it out, run it back ππ
π RETURN π
- returns
trueif a read section retry is required π - else
falseβ¨
π SEE ALSO π
kernel file ./include/linux/seqlock.h β go read the source bestie, it's giving main character energy π§
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)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)raw_read_seqcount_latch_retry(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)
that's the whole page bestie, go be valid out there π
this cutie came from ./include/linux and it's dated October 2026 π mwah, 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