Home
last modified time | relevance | path

Searched full:readers (Results 1 – 25 of 263) sorted by relevance

1234567891011

/linux/include/linux/
H A Drwbase_rt.h12 atomic_t readers; member
18 .readers = ATOMIC_INIT(READER_BIAS), \
25 atomic_set(&(rwbase)->readers, READER_BIAS); \
31 return atomic_read(&rwb->readers) != READER_BIAS; in rw_base_is_locked()
36 return atomic_read(&rwb->readers) == WRITER_BIAS; in rw_base_is_write_locked()
41 return atomic_read(&rwb->readers) > 0; in rw_base_is_contended()
H A Drcu_sync.h16 /* Structure to mediate between updaters and fastpath-using readers. */
26 * rcu_sync_is_idle() - Are readers permitted to use their fastpaths?
29 * Returns true if readers are permitted to use their fastpaths. Must be
H A Dmmap_lock.h166 * In the case of a detached VMA, we may incorrectly indicate that readers are
173 * Returns: true if readers are excluded, false otherwise.
220 * __vma_start_exclude_readers() may be sleeping waiting for readers to in vma_refcount_put()
224 * We may be raced by other readers temporarily incrementing the in vma_refcount_put()
295 * Exclude concurrent readers under the per-VMA lock until the currently
310 * Exclude concurrent readers under the per-VMA lock until the currently
313 * Context: May sleep while waiting for readers to drop the vma read lock.
360 * readers, or in the midst of excluding readers, all of which means in vma_assert_locked()
459 * vma has been already write-locked and readers can increment vm_refcnt in vma_mark_detached()
H A Drculist.h14 * INIT_LIST_HEAD_RCU - Initialize a list_head visible to RCU readers
18 * cleanup tasks, when readers have no access to the list being initialized.
19 * However, if the list being initialized is visible to readers, you
249 * the perspective of concurrent readers. It is the caller's responsibility
321 * "first" and "last" tracking list, so initialize it. RCU readers in __list_splice_init_rcu()
330 * Wait for any readers to finish using the list before splicing in __list_splice_init_rcu()
331 * the list body into the new list. Any new readers will see in __list_splice_init_rcu()
340 * Readers are finished with the source list, so perform splice. in __list_splice_init_rcu()
342 * to concurrent RCU readers. Note that RCU readers are not in __list_splice_init_rcu()
609 * the perspective of concurrent readers. It is the caller's responsibility
/linux/Documentation/RCU/
H A Dchecklist.rst30 One final exception is where RCU readers are used to prevent
40 RCU does allow *readers* to run (almost) naked, but *writers* must
92 The whole point of RCU is to permit readers to run without
93 any locks or atomic operations. This means that readers will
106 locks (that are acquired by both readers and writers)
107 that guard per-element state. Fields that the readers
113 c. Make updates appear atomic to readers. For example,
117 appear to be atomic to RCU readers, nor will sequences
125 d. Carefully order the updates and the reads so that readers
145 a. Readers must maintain proper ordering of their memory
[all …]
H A Drcu.rst10 must be long enough that any readers accessing the item being deleted have
21 The advantage of RCU's two-part approach is that RCU readers need
26 in read-mostly situations. The fact that RCU readers need not
30 if the RCU readers give no indication when they are done?
32 Just as with spinlocks, RCU readers are not permitted to
42 same effect, but require that the readers manipulate CPU-local
H A DwhatisRCU.rst59 Section 1, though most readers will profit by reading this section at
82 new versions of these data items), and can run concurrently with readers.
84 readers is the semantics of modern CPUs guarantee that readers will see
88 removal phase. Because reclaiming data items can disrupt any readers
90 not start until readers no longer hold references to those data items.
94 reclamation phase until all readers active during the removal phase have
96 callback that is invoked after they finish. Only readers that are active
104 readers cannot gain a reference to it.
106 b. Wait for all previous readers to complete their RCU read-side
109 c. At this point, there cannot be any readers who hold references
[all …]
/linux/Documentation/locking/
H A Dlockdep-design.rst405 spin_lock() or write_lock()), non-recursive readers (i.e. shared lockers, like
406 down_read()) and recursive readers (recursive shared lockers, like rcu_read_lock()).
410 r: stands for non-recursive readers.
411 R: stands for recursive readers.
412 S: stands for all readers (non-recursive + recursive), as both are shared lockers.
413 N: stands for writers and non-recursive readers, as both are not recursive.
417 Recursive readers, as their name indicates, are the lockers allowed to acquire
421 While non-recursive readers will cause a self deadlock if trying to acquire inside
424 The difference between recursive readers and non-recursive readers is because:
425 recursive readers get blocked only by a write lock *holder*, while non-recursive
[all …]
/linux/kernel/rcu/
H A Dsync.c42 * If it is called by rcu_sync_enter() it signals that all the readers were
51 * readers back onto their fastpaths (after a grace period). If both
54 * rcu_sync_exit(). Otherwise, set all state back to idle so that readers
91 * rcu_sync_enter() - Force readers onto slowpath
94 * This function is used by updaters who need readers to make use of
97 * tells readers to stay off their fastpaths. A later call to
143 * rcu_sync_exit() - Allow readers back onto fast path after grace period
147 * now allow readers to make use of their fastpaths after a grace period
149 * calls to rcu_sync_is_idle() will return true, which tells readers that
H A Dsrcutree.c463 * Computes approximate total of the readers' ->srcu_ctrs[].srcu_locks
489 * Returns approximate total of the readers' ->srcu_ctrs[].srcu_unlocks
511 * Return true if the number of pre-existing readers is determined to
543 * been no readers on this index at some point in this function. in srcu_readers_active_idx_check()
544 * But there might be more readers, as a task might have read in srcu_readers_active_idx_check()
602 * srcu_readers_active - returns true if there are readers. and false
604 * @ssp: which srcu_struct to count active readers (holding srcu_read_lock).
629 * (defined below, boot time configurable) to allow SRCU readers to exit
630 * their read-side critical sections. If there are still some readers
641 #define SRCU_MAX_INTERVAL 10 // Maximum incremental delay from slow readers.
[all …]
/linux/drivers/misc/ibmasm/
H A Devent.c30 list_for_each_entry(reader, &sp->event_buffer->readers, node) in wake_up_event_readers()
39 * event readers.
40 * There is no reader marker in the buffer, therefore readers are
73 * Called by event readers (initiated from user space through the file
123 list_add(&reader->node, &sp->event_buffer->readers); in ibmasm_event_reader_register()
153 INIT_LIST_HEAD(&buffer->readers); in ibmasm_event_buffer_init()
/linux/kernel/locking/
H A Dqrwlock.c24 * Readers come here when they cannot get the lock without waiting in queued_read_lock_slowpath()
28 * Readers in interrupt context will get the lock immediately in queued_read_lock_slowpath()
80 /* Set the waiting flag to notify readers that a writer is pending */ in queued_write_lock_slowpath()
83 /* When no more readers or writers, set the locked flag */ in queued_write_lock_slowpath()
/linux/drivers/misc/cardreader/
H A DKconfig9 Alcor Micro card readers support access to many types of memory cards,
21 Realtek card readers support access to many types of memory cards,
30 Select this option to get support for Realtek USB 2.0 card readers
/linux/drivers/hid/
H A Dhid-roccat.c18 * It is inspired by hidraw, but uses only one circular buffer for all readers.
47 struct list_head readers; member
48 /* protects modifications of readers list */
52 * circular_buffer has one writer and multiple readers with their own
191 list_add_tail(&reader->node, &device->readers); in roccat_open()
239 * roccat_report_event() - output data to readers
271 list_for_each_entry(reader, &device->readers, node) { in roccat_report_event()
341 INIT_LIST_HEAD(&device->readers); in roccat_connect()
/linux/tools/testing/selftests/kvm/lib/
H A Duserfaultfd_util.c125 uffd_desc->readers = calloc(sizeof(pthread_t), num_readers); in uffd_setup_demand_paging()
126 TEST_ASSERT(uffd_desc->readers, "Failed to alloc reader threads"); in uffd_setup_demand_paging()
170 pthread_create(&uffd_desc->readers[i], NULL, uffd_handler_thread_fn, in uffd_setup_demand_paging()
190 TEST_ASSERT(!pthread_join(uffd->readers[i], NULL), in uffd_stop_demand_paging()
201 free(uffd->readers); in uffd_stop_demand_paging()
/linux/arch/sh/include/asm/
H A Dspinlock-cas.h44 * Read-write spinlocks, allowing multiple readers but only one writer.
46 * NOTE! it is quite common to have readers in interrupts but no interrupt
48 * needs to get a irq-safe write-lock, but readers can get non-irqsafe
H A Dspinlock-llsc.h82 * Read-write spinlocks, allowing multiple readers but only one writer.
84 * NOTE! it is quite common to have readers in interrupts but no interrupt
86 * needs to get a irq-safe write-lock, but readers can get non-irqsafe
/linux/arch/s390/include/asm/
H A Dspinlock.h108 * Read-write spinlocks, allowing multiple readers
111 * NOTE! it is quite common to have readers in interrupts
114 * irq-safe write-lock, but readers can get non-irqsafe
/linux/tools/testing/selftests/kvm/include/
H A Duserfaultfd_util.h29 /* Holds the write ends of the pipes for killing the readers. */
31 pthread_t *readers; member
/linux/drivers/soc/aspeed/
H A Daspeed-p2a-ctrl.c65 u32 readers; member
192 ctrl->readers += 1; in aspeed_p2a_ioctl()
275 priv->parent->readers -= priv->read; in aspeed_p2a_release()
296 /* If parent->readers is zero and open windows is 0, disable the in aspeed_p2a_release()
299 if (!open_regions && priv->parent->readers == 0) in aspeed_p2a_release()
/linux/arch/arc/include/asm/
H A Dspinlock.h75 * Read-write spinlocks, allowing multiple readers but only one writer.
142 * (can be starved for an indefinite time by readers). in arch_write_lock()
290 * Read-write spinlocks, allowing multiple readers but only one writer.
334 * (can be starved for an indefinite time by readers). in arch_write_trylock()
/linux/arch/powerpc/include/asm/
H A Dsimple_spinlock.h137 * Read-write spinlocks, allowing multiple readers
140 * NOTE! it is quite common to have readers in interrupts
143 * irq-safe write-lock, but readers can get non-irqsafe
/linux/fs/btrfs/
H A Dlocking.h101 * the threads that hold the lock as readers signal the condition for the wait
118 * the condition and do the signaling acquire the lock as readers (shared
224 atomic_t readers; member
/linux/Documentation/trace/
H A Dring-buffer-map.rst43 Concurrent readers (either another application mapping that ring-buffer or the
45 the ring-buffer and the output is unpredictable, just like concurrent readers on
/linux/arch/parisc/include/asm/
H A Dspinlock.h71 * Read-write spinlocks, allowing multiple readers but only one writer.
115 * (can be starved for an indefinite time by readers). in arch_write_trylock()

1234567891011