done_seqretry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… done_seqretry(9) πŸ’…

okay bestie, welcome to the Kernel API Manual page for done_seqretry(9). this is the little end-of-reader-section moment, and it is lowkey iconic in a very kernel-specific way. 🫢


🌸 NAME 🌸

done_seqretry β€” end seqlock_t "locking or lockless" reader section

✨ SYNOPSIS ✨

void done_seqretry (seqlock_t *lock , int seq );

πŸŽ€ ARGUMENTS πŸŽ€

  • lock β€” Pointer to seqlock_t. that's the seqlock bestie in question. πŸ’–
  • seq β€” count, from read_seqbegin_or_lock. literally the count from there, no cap.

πŸ’– DESCRIPTION πŸ’–

so done_seqretry finishes the seqlock_t read side critical section that was started with read_seqbegin_or_lock and validated by need_seqretry. that's the whole vibe: this is the ending move for that reader section. periodt. ✨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/seqlock.h β€” and the whole seqcount/seqlock friend group is right here:


mwah πŸ’‹ that's the page, bestie. it's from the Kernel API Manual, source path ./include/linux, dated October 2026, and the title on the tin is done_seqretry(9). πŸ’œ

πŸ“¦ where this page comes from