seqcount_latch_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is seqcount_latch_init β€” from the Kernel API Manual, section 9, bestie β€” and it's literally the runtime initializer for seqcount_latch_t πŸ’… like it sets your latch seqcount up while the kernel is already running, no cap


πŸŽ€ SYNOPSIS πŸŽ€

seqcount_latch_init (s );

that's the whole vibe, she's a one-liner πŸ¦‹


🌸 ARGUMENTS 🌸

  • s β€” a pointer to the seqcount_latch_t instance, i.e. the actual latch seqcount you want initialized. gotta hand her the address of the thing, not the thing itself 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file is ./include/linux/seqlock.h and honestly the whole seqlock girlie ecosystem lives there, so here's the full bestie list β€” every single one, no skipping πŸ”₯

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), 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)

fr fr that's the entire squad, go read them all before you touch a latch, iykyk πŸ’€

and that's the page, bestie 🌈 this one came out of the kernel source tree at ./include/linux, dated October 2026 β€” mwah, go init some latches responsibly πŸ˜­πŸ’–

πŸ“¦ where this page comes from