Home
last modified time | relevance | path

Searched refs:seqcount (Results 1 – 16 of 16) sorted by relevance

/Linux-v6.1/include/linux/
Dseqlock.h64 typedef struct seqcount { struct
178 seqcount_init(&____s->seqcount); \
200 seqcount_t seqcount; \
207 return &s->seqcount; \
213 unsigned seq = READ_ONCE(s->seqcount.sequence); \
226 seq = READ_ONCE(s->seqcount.sequence); \
286 .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
648 seqcount_t seqcount; member
656 .seqcount = SEQCNT_ZERO(seq_name.seqcount), \
663 #define seqcount_latch_init(s) seqcount_init(&(s)->seqcount)
[all …]
Dsched.h346 seqcount_t seqcount; member
/Linux-v6.1/arch/s390/kernel/
Didle.c62 raw_write_seqcount_begin(&idle->seqcount); in arch_cpu_idle()
68 raw_write_seqcount_end(&idle->seqcount); in arch_cpu_idle()
80 seq = read_seqcount_begin(&idle->seqcount); in show_idle_count()
84 } while (read_seqcount_retry(&idle->seqcount, seq)); in show_idle_count()
97 seq = read_seqcount_begin(&idle->seqcount); in show_idle_time()
101 } while (read_seqcount_retry(&idle->seqcount, seq)); in show_idle_time()
123 seq = read_seqcount_begin(&idle->seqcount); in arch_cpu_idle_time()
126 } while (read_seqcount_retry(&idle->seqcount, seq)); in arch_cpu_idle_time()
/Linux-v6.1/kernel/sched/
Dcputime.c715 write_seqcount_begin(&vtime->seqcount); in vtime_account_kernel()
717 write_seqcount_end(&vtime->seqcount); in vtime_account_kernel()
724 write_seqcount_begin(&vtime->seqcount); in vtime_user_enter()
727 write_seqcount_end(&vtime->seqcount); in vtime_user_enter()
734 write_seqcount_begin(&vtime->seqcount); in vtime_user_exit()
741 write_seqcount_end(&vtime->seqcount); in vtime_user_exit()
754 write_seqcount_begin(&vtime->seqcount); in vtime_guest_enter()
758 write_seqcount_end(&vtime->seqcount); in vtime_guest_enter()
766 write_seqcount_begin(&vtime->seqcount); in vtime_guest_exit()
770 write_seqcount_end(&vtime->seqcount); in vtime_guest_exit()
[all …]
/Linux-v6.1/arch/s390/include/asm/
Didle.h16 seqcount_t seqcount; member
/Linux-v6.1/Documentation/filesystems/
Dpath-lookup.txt96 using d_seq for synchronisation (see seqcount based lookups, below).
192 no non-atomic stores to shared data), and to recheck the seqcount when we are
193 "done" with the operation. Retry or abort if the seqcount does not match.
198 protect the dentry object from disappearing, can perform a seqcount based
203 Inodes are also rcu freed, so the seqcount lookup dentry's inode may also be
216 walking is operating on each dentry. rcu-walk uses seqcount based dentry
277 It is, in some sense, a bit of a house of cards. If the seqcount check of the
/Linux-v6.1/init/
Dinit_task.c172 .vtime.seqcount = SEQCNT_ZERO(init_task.vtime_seqcount),
/Linux-v6.1/arch/powerpc/kvm/
Dbook3s_hv_p9_entry.c239 seq = curr->seqcount; in accumulate_time()
240 curr->seqcount = seq + 1; in accumulate_time()
248 curr->seqcount = seq + 2; in accumulate_time()
Dbook3s_hv.c2808 count = acc->seqcount; in debugfs_timings_read()
2813 if (count == acc->seqcount) { in debugfs_timings_read()
/Linux-v6.1/arch/x86/kernel/
Dtsc.c77 seq = this_cpu_read(cyc2ns.seq.seqcount.sequence); in cyc2ns_read_begin()
84 } while (unlikely(seq != this_cpu_read(cyc2ns.seq.seqcount.sequence))); in cyc2ns_read_begin()
/Linux-v6.1/Documentation/locking/
Dseqlock.rst103 stored in struct seqcount and lockdep's "lock is held" assertions are
/Linux-v6.1/arch/powerpc/include/asm/
Dkvm_host.h426 u64 seqcount; /* used to synchronize access, also count * 2 */ member
/Linux-v6.1/fs/
Dnamei.c1967 if (__read_seqcount_retry(&mount_lock.seqcount, nd->m_seq)) in handle_dots()
1969 if (__read_seqcount_retry(&rename_lock.seqcount, nd->r_seq)) in handle_dots()
2360 nd->m_seq = __read_seqcount_begin(&mount_lock.seqcount); in path_init()
2361 nd->r_seq = __read_seqcount_begin(&rename_lock.seqcount); in path_init()
/Linux-v6.1/arch/powerpc/kernel/
Dasm-offsets.c390 OFFSET(TAS_SEQCOUNT, kvmhv_tb_accumulator, seqcount); in main()
/Linux-v6.1/kernel/
Dfork.c2152 seqcount_init(&p->vtime.seqcount); in copy_process()
/Linux-v6.1/drivers/infiniband/hw/hfi1/
Dsdma.c2330 (const seqcount_t *)&sde->head_lock.seqcount); in sdma_check_progress()