done_seqretry_irqrestore(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ done_seqretry_irqrestore(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual β€” today’s main character is done_seqretry_irqrestore(9), and she is here to close out a seqlock reader section. πŸ’…

πŸ’– NAME πŸ’–

done_seqretry_irqrestore β€” end a seqlock_t lockless reader, or a non-interruptible locking reader section. that’s the whole name vibe, no cap. πŸ¦‹

✨ SYNOPSIS ✨

void done_seqretry_irqrestore (seqlock_t *lock , int seq , unsigned long
       flags );

🫢 ARGUMENTS 🫢

  • lock β€” pointer to seqlock_t. that’s the lock, bestie.
  • seq β€” count, from read_seqbegin_or_lock_irqsave. keep it close.
  • flags β€” caller’s saved local interrupt state in case of a locking reader, also from read_seqbegin_or_lock_irqsave. same origin story as seq, periodt.

🌸 DESCRIPTION 🌸

This is the _irqrestore variant of done_seqretry. the way that matters: the read section must’ve been opened with read_seqbegin_or_lock_irqsave, and validated by need_seqretry. that’s the required combo β€” no random validation, no skipping steps. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./include/linux/seqlock.h β€” the source file bestie.

the whole seqlock friend group is here:


okay that’s the page! source/version situation: it comes from ./include/linux, dated October 2026, and the manual name is still done_seqretry_irqrestore(9). stay hydrated and lock safely πŸ’œπŸ«Ά

πŸ“¦ where this page comes from