| /linux/include/linux/ |
| H A D | rwbase_rt.h | 12 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()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | userfaultfd_util.c | 125 uffd_desc->readers = calloc(num_readers, sizeof(pthread_t)); in uffd_setup_demand_paging() 126 TEST_ASSERT(uffd_desc->readers, "Failed to alloc reader threads"); in uffd_setup_demand_paging() 170 kvm_pthread_create(&uffd_desc->readers[i], NULL, uffd_handler_thread_fn, in uffd_setup_demand_paging() 190 kvm_pthread_join(uffd->readers[i], NULL); in uffd_stop_demand_paging() 200 free(uffd->readers); in uffd_stop_demand_paging()
|
| /linux/drivers/misc/cardreader/ |
| H A D | Kconfig | 9 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/Documentation/RCU/ |
| H A D | rcu.rst | 10 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 D | checklist.rst | 30 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 168 is common to readers and updaters. However, lockdep [all …]
|
| H A D | rcu_dereference.rst | 25 readers working properly: 46 while readers are accessing the structure, READ_ONCE() may be used 222 Because updaters can run concurrently with RCU readers, RCU readers can 223 see stale and/or inconsistent values. If RCU readers need fresh or
|
| /linux/Documentation/locking/ |
| H A D | lockdep-design.rst | 405 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 …]
|
| H A D | locktorture.rst | 40 ownership (readers). The default is the same amount of writer 42 both readers and writers be the amount of online CPUs.
|
| H A D | spinlocks.rst | 58 readers to be in the same critical region at once, but if somebody wants 81 itself. The read lock allows many concurrent readers. Anything that
|
| /linux/fs/ |
| H A D | pipe.c | 73 * FIFOs and Pipes now generate SIGIO for both readers and writers. 460 !READ_ONCE(pipe->readers); in anon_pipe_read() 493 if (!pipe->readers) { in is_packetized() 534 if (!pipe->readers) { in anon_pipe_write() 598 * space. We wake up any readers if necessary, and then in anon_pipe_write() 699 * see 3a34b13a88ca ("pipe: make pipe writes always wake up readers") in pipe_ioctl() 742 if (!pipe->readers) in pipe_poll() 771 pipe->readers--; in pipe_poll() 776 if (!pipe->readers != !pipe->writers) { in pipe_poll() 942 pipe->readers in free_pipe_info() [all...] |
| H A D | splice.c | 140 if (unlikely(!pipe->readers)) { in page_cache_pipe_buf_confirm() 182 if (unlikely(!pipe->readers)) { in wakeup_pipe_readers() 976 pipe->readers = 1; in do_splice_read() 1217 if (unlikely(!pipe->readers)) { in do_splice_direct_actor() 1642 if (!pipe->readers) { in SYSCALL_DEFINE4() 1698 if (!opipe->readers) { in ipipe_prep() 1781 * If we put data in the output pipe, wakeup any potential readers. in splice_pipe_to_pipe() 1824 if (!opipe->readers) { in splice_pipe_to_pipe() 1893 * If we put data in the output pipe, wakeup any potential readers. in link_pipe()
|
| /linux/drivers/hid/ |
| H A D | hid-roccat.c | 18 * It is inspired by hidraw, but uses only one circular buffer for all readers. 48 struct list_head readers; 49 /* protects modifications of readers list */ 53 * circular_buffer has one writer and multiple readers with their own 221 list_add_tail(&reader->node, &device->readers); in roccat_release() 263 * roccat_report_event() - output data to readers in roccat_report_event() 295 list_for_each_entry(reader, &device->readers, node) { in roccat_report_event() 363 INIT_LIST_HEAD(&device->readers); 47 struct list_head readers; global() member
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | userfaultfd_util.h | 31 pthread_t *readers; member
|
| /linux/net/sunrpc/ |
| H A D | cache.c | 405 INIT_LIST_HEAD(&cd->readers); in sunrpc_init_cache_detail() 809 int readers; member 865 rq->readers++; in cache_read() 895 rq->readers--; in cache_read() 896 if (rq->readers == 0 && in cache_read() 1032 list_add(&rp->list, &cd->readers); in cache_open() 1055 cr->readers--; in cache_release() 1056 if (cr->readers == 0 && in cache_release() 1099 if (cr->readers != 0) in cache_dequeue() 1226 crq->readers = 0; in cache_do_upcall()
|
| /linux/Documentation/trace/ |
| H A D | ring-buffer-map.rst | 43 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/drivers/mtd/ubi/ |
| H A D | kapi.c | 163 vol->readers += 1; in ubi_open_volume() 173 if (vol->exclusive || vol->writers || vol->readers || in ubi_open_volume() 357 vol->readers -= 1; in ubi_close_volume()
|
| H A D | cdev.c | 50 users = vol->readers + vol->writers + vol->exclusive + vol->metaonly; in get_exclusive() 56 vol->readers = vol->writers = vol->metaonly = 0; in get_exclusive() 76 ubi_assert(vol->readers == 0 && vol->writers == 0 && vol->metaonly == 0); in revoke_exclusive() 80 vol->readers = 1; in revoke_exclusive()
|
| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | volume-index.h | 183 struct buffered_reader **readers,
|
| /linux/Documentation/RCU/Design/Requirements/ |
| H A D | Requirements.rst | 20 updaters do not block readers, which means that RCU's read-side 22 can make useful forward progress concurrently with readers. However, all 23 this concurrency between RCU readers and updaters does raise the 24 question of exactly what RCU readers are doing, which in turn raises the 84 overhead to readers, for example: 106 readers, any instance of thread0() that loads a value of zero from 123 | progress concurrently with readers, but pre-existing readers will | 129 | First, if updaters do not wish to be blocked by readers, they can use | 132 | code does run concurrently with readers, whether pre-existing or not. | 258 linked data structure without disrupting RCU readers. The updater uses [all …]
|
| /linux/Documentation/driver-api/media/ |
| H A D | dtv-common.rst | 43 Two or more readers must be locked against each other.
|
| /linux/include/media/ |
| H A D | dvbdev.h | 173 int readers; member
|
| /linux/Documentation/ABI/testing/ |
| H A D | dev-kmsg | 31 persistent state; many readers can concurrently open the device 32 and read from it, without affecting other readers.
|
| /linux/fs/btrfs/ |
| H A D | locking.h | 224 atomic_t readers; member
|
| /linux/Documentation/kernel-hacking/ |
| H A D | locking.rst | 1054 users into two classes: the readers and the writers. If you are only 1060 does), and the lock is held by readers for significant lengths of time, 1068 Using RCU, the readers can avoid taking a lock altogether: as we expect 1073 writers may be changing the list underneath the readers. That is 1097 pointer to the old element with a pointer to its successor, and readers 1122 wait until we know that all the readers who were traversing the list 1125 destroy the object once all pre-existing readers are finished. 1129 But how does Read Copy Update know when the readers are finished? The 1130 method is this: firstly, the readers always traverse the list inside 1136 readers cannot sleep, we know that any readers which were traversing the [all …]
|
| /linux/drivers/media/firewire/ |
| H A D | firedtv-ci.c | 224 .readers = 1,
|