Home
last modified time | relevance | path

Searched refs:reader (Results 1 – 3 of 3) sorted by relevance

/kernel/locking/
Dpercpu-rwsem.c121 static bool __percpu_rwsem_trylock(struct percpu_rw_semaphore *sem, bool reader) in __percpu_rwsem_trylock() argument
123 if (reader) { in __percpu_rwsem_trylock()
152 bool reader = wq_entry->flags & WQ_FLAG_CUSTOM; in percpu_rwsem_wake_function() local
157 if (!__percpu_rwsem_trylock(sem, reader)) in percpu_rwsem_wake_function()
167 return !reader; /* wake (readers until) 1 writer */ in percpu_rwsem_wake_function()
170 static void percpu_rwsem_wait(struct percpu_rw_semaphore *sem, bool reader) in percpu_rwsem_wait() argument
180 wait = !__percpu_rwsem_trylock(sem, reader); in percpu_rwsem_wait()
182 wq_entry.flags |= WQ_FLAG_EXCLUSIVE | reader * WQ_FLAG_CUSTOM; in percpu_rwsem_wait()
184 trace_android_vh_percpu_rwsem_wq_add(sem, reader); in percpu_rwsem_wait()
/kernel/trace/
Dring_buffer.c3935 struct buffer_page *reader = cpu_buffer->reader_page; in rb_per_cpu_empty() local
3944 if (reader->read != rb_page_commit(reader)) in rb_per_cpu_empty()
3951 if (commit == reader) in rb_per_cpu_empty()
4383 struct buffer_page *reader; in ring_buffer_iter_empty() local
4392 reader = cpu_buffer->reader_page; in ring_buffer_iter_empty()
4418 (iter->head_page == reader && commit_page == head_page && in ring_buffer_iter_empty()
4596 struct buffer_page *reader; in rb_swap_reader_page() local
4612 reader = rb_set_head_page(cpu_buffer); in rb_swap_reader_page()
4613 if (!reader) in rb_swap_reader_page()
4616 cpu_buffer->reader_page->list.next = rb_list_head(reader->list.next); in rb_swap_reader_page()
[all …]
/kernel/rcu/
DKconfig220 readers blocking that grace period. Note that any RCU reader