write_sequnlock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– write_sequnlock (9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this page is literally all about write_sequnlock, and it's giving kernel-locking main character energy πŸ’…βœ¨.


πŸ’… NAME πŸ’…

write_sequnlock β€” end a seqlock_t write side critical section. periodt.


✨ SYNOPSIS ✨

void write_sequnlock (seqlock_t *sl );

πŸŽ€ ARGUMENTS πŸŽ€

  • sl β€” pointer to seqlock_t. yes, a pointer, not the whole struct β€” slay 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

So write_sequnlock closes the write side critical section of the given seqlock_t. That write side is serialized and non-preemptible, no cap β€” it's right there in the descriptor, and it matters 😌.

It's the unlock-side closer for that write section. The synopsis says void, so there's literally no return value to catch. iconic.

bestie reminder: keep the vibe check on the details β€” this is about closing the write side critical section, and that section is explicitly serialized and non-preemptible πŸ’–

🌈 SEE ALSO 🌈

Kernel file ./include/linux/seqlock.h, plus the whole squad: 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), 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_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). iykyk πŸ’œ


mwah πŸ’‹ β€” source/version: ./include/linux, dated October 2026. xoxo, your local kernel-locking bestie 🫢🌸

πŸ“¦ where this page comes from