raw_write_seqcount_begin(9)
β¨ raw_write_seqcount_begin(9) β¨
okay bestie so this is a page straight out of the Kernel API Manual (yes, that manual, the big serious one) and we're talking about one single little function that kicks off a write section. slay. π
π NAME π
raw_write_seqcount_begin β start a seqcount_t write section w/o lockdep
like, it opens the write side of the party and lockdep is NOT invited π
π¦ SYNOPSIS π¦
raw_write_seqcount_begin (s );
that's it. one arg. she's lowkey minimal.
πΈ ARGUMENTS πΈ
sβ Pointer toseqcount_tor any of theseqcount_LOCKNAME_tvariants. so like, whichever flavour of seqcount you're holding, hand her the pointer and she'll take it from there π«Ά
β CONTEXT β
check write_seqcount_begin
(yep, that's the whole context note β she said what she said π)
π SEE ALSO π
bestie this list is LONG, like a group chat that never sleeps. the whole seqcount + seqlock family reunion, hosted in the kernel file ./include/linux/seqlock.h:
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_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)
ngl if you read all of those in one sitting you deserve a little treat π
mwah π that's the whole page! this icon was served fresh from ./include/linux, stamped October 2026, and she ate. periodt. π§β¨
π¦ 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