| /linux/Documentation/trace/ |
| H A D | ring-buffer-design.rst | 28 - the task that writes into the ring buffer (same as writer) 30 writer 81 but a writer may interrupt another writer, but it must finish writing 82 before the previous writer may continue. This is very important to the 94 This is very much like a writer being preempted by an interrupt and 99 cannot preempt/interrupt a writer, but it may read/consume from the 100 buffer at the same time as a writer is writing, but the reader must be 102 and can be preempted by a writer. 104 A writer can preempt a reader, but a reader cannot preempt a writer. 106 as a writer. [all …]
|
| /linux/rust/kernel/debugfs/ |
| H A D | traits.rs | 65 /// Writes the binary form of `self` into `writer`. in write_to_slice() 69 /// On success, returns the number of bytes written in to `writer`. 72 writer: &mut UserSliceWriter, in write_to_slice() 81 writer: &mut UserSliceWriter, 84 writer.write_slice_file(self.as_bytes(), offset) 92 writer: &mut UserSliceWriter, in write_to_slice() 97 guard.write_to_slice(writer, offset) 109 writer: &mut UserSliceWriter, in write_to_slice() 112 self.deref().write_to_slice(writer, offset) 124 writer in write_to_slice() [all...] |
| H A D | file_ops.rs | 269 let mut writer = UserSlice::new(UserPtr::from_ptr(buf.cast()), count).writer(); in blob_read() 272 let written = this.write_to_slice(&mut writer, pos)?; in blob_read() 266 let mut writer = UserSlice::new(UserPtr::from_ptr(buf.cast()), count).writer(); blob_read() localVariable
|
| /linux/tools/lib/python/ |
| H A D | jobserver.py | 20 os.write(writer, b"+") # os.write(writer, claim) 66 self.writer = None 101 self.writer = os.open(path, os.O_WRONLY) 115 self.writer = int(split_fds[1]) 156 os.write(self.writer, self.jobs) 175 os.write(self.writer, self.jobs)
|
| /linux/tools/testing/radix-tree/ |
| H A D | regression4.c | 60 pthread_t reader, writer; in regression4_test() local 68 pthread_create(&writer, NULL, writer_fn, NULL)) { in regression4_test() 73 if (pthread_join(reader, NULL) || pthread_join(writer, NULL)) { in regression4_test()
|
| /linux/drivers/android/binder/ |
| H A D | node.rs | 520 fn write(&self, writer: &mut BinderReturnWriter<'_>, code: u32) -> Result { in force_has_count() 521 writer.write_code(code)?; in force_has_count() 522 writer.write_payload(&self.ptr)?; in force_has_count() 523 writer.write_payload(&self.cookie)?; 609 writer: &mut BinderReturnWriter<'_>, 644 self.write(writer, BR_INCREFS)?; in do_work_locked() 647 self.write(writer, BR_ACQUIRE)?; in do_work_locked() 650 self.write(writer, BR_RELEASE)?; in do_work_locked() 653 self.write(writer, BR_DECREFS)?; in do_work_locked() 714 writer [all...] |
| H A D | thread.rs | 523 let mut writer = data.writer(); in get_extended_error() 528 writer.write(&ee)?; in get_extended_error() 1591 let mut writer = BinderReturnWriter::new( in read() 1592 UserSlice::new(UserPtr::from_addr(read_start as usize), read_len as usize).writer(), in read() 1617 if let Err(err) = writer.write_code(BR_NOOP) { in read() 1625 let initial_len = writer.len(); in write_read() 1626 while writer.len() >= size_of::<uapi::binder_transaction_data_secctx>() + 4 { in write_read() 1627 match getter(self, wait && initial_len == writer.len()) { in write_read() 1628 Ok(Some(work)) => match work.into_arc().do_work(self, &mut writer) { in write_read() 522 let mut writer = data.writer(); get_extended_error() localVariable 1544 let mut writer = BinderReturnWriter::new( read() localVariable 1609 let mut writer = UserSlice::new( read() localVariable [all...] |
| /linux/tools/perf/util/ |
| H A D | data-convert-bt.c | 14 #include <babeltrace2-ctf-writer/writer.h> 15 #include <babeltrace2-ctf-writer/clock.h> 16 #include <babeltrace2-ctf-writer/stream.h> 17 #include <babeltrace2-ctf-writer/event.h> 18 #include <babeltrace2-ctf-writer/event-types.h> 19 #include <babeltrace2-ctf-writer/event-fields.h> 20 #include <babeltrace2-ctf-writer/utils.h> 64 /* writer primitives */ 65 struct bt_ctf_writer *writer; 66 struct bt_ctf_writer *writer; global() member 94 struct ctf_writer writer; global() member 1388 struct bt_ctf_writer *writer = cw->writer; ctf_writer__setup_env() local 1572 struct bt_ctf_writer *writer; ctf_writer__init() local [all...] |
| /linux/lib/ |
| H A D | decompress_unlzma.c | 279 struct writer { struct 294 static inline size_t INIT get_pos(struct writer *wr) in get_pos() argument 300 static inline uint8_t INIT peek_old_byte(struct writer *wr, in peek_old_byte() 318 static inline int INIT write_byte(struct writer *wr, uint8_t byte) in write_byte() 332 static inline int INIT copy_byte(struct writer *wr, uint32_t offs) in copy_byte() 337 static inline int INIT copy_bytes(struct writer *wr, in copy_bytes() 349 static inline int INIT process_bit0(struct writer *wr, struct rc *rc, in process_bit0() 393 static inline int INIT process_bit1(struct writer *wr, struct rc *rc, in process_bit1() 555 struct writer wr; in unlzma()
|
| /linux/tools/testing/selftests/powerpc/dscr/ |
| H A D | dscr_default_test.c | 41 pthread_t writer; in dscr_default_lockstep_test() local 52 FAIL_IF(pthread_create(&writer, NULL, dscr_default_lockstep_writer, (void *)rw_semaphores)); in dscr_default_lockstep_test() 65 FAIL_IF(pthread_join(writer, NULL)); in dscr_default_lockstep_test()
|
| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | io-factory.h | 59 int __must_check uds_write_to_buffered_writer(struct buffered_writer *writer, 62 int __must_check uds_flush_buffered_writer(struct buffered_writer *writer);
|
| H A D | index-page-map.h | 34 struct buffered_writer *writer);
|
| /linux/drivers/android/binder/node/ |
| H A D | wrapper.rs | 42 writer: &mut BinderReturnWriter<'_>, in do_work() 55 node.do_work_locked(writer, owner_inner) in do_work()
|
| /linux/drivers/char/ |
| H A D | apm-emulation.c | 107 unsigned int writer: 1; member 253 if (!as->suser || !as->writer) in apm_ioctl() 356 as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE; in apm_open() 526 as->writer && as->suser) { in apm_suspend_notifier()
|
| /linux/Documentation/locking/ |
| H A D | spinlocks.rst | 52 Lesson 2: reader-writer spinlocks. 56 to mostly read from the shared variables, the reader-writer locks 61 NOTE! reader-writer locks require more atomic memory operations than 91 NOTE! We are working hard to remove reader-writer spinlocks in most
|
| H A D | lockdep-design.rst | 436 read_lock() first. And when task B tries to acquire writer on X, it will block 437 and become a waiter for writer on X. Now if read_lock_2() is recursive readers, 438 task A will make progress, because writer waiters don't block recursive readers, 440 it will get blocked by writer waiter B, and cause a self deadlock. 451 writer waiters) 535 exclusive writer to recursive reader dependency, "X -(ER)-> Y" means 536 X -> Y and X is a writer and Y is a recursive reader. 539 exclusive writer to non-recursive locker dependency, "X -(EN)-> Y" means 540 X -> Y and X is a writer and Y is either a writer or non-recursive reader. 548 X -> Y and X is a reader (recursive or not) and Y is either a writer or [all …]
|
| H A D | locktorture.rst | 40 ownership (readers). The default is the same amount of writer 137 (B): Number of writer lock acquisitions. If dealing with a read/write
|
| /linux/drivers/tty/hvc/ |
| H A D | hvsi.c | 60 struct delayed_work writer; member 752 cancel_delayed_work_sync(&hp->writer); in hvsi_flush_output() 852 container_of(work, struct hvsi_struct, writer.work); in hvsi_write_worker() 872 schedule_delayed_work(&hp->writer, HZ); in hvsi_write_worker() 878 schedule_delayed_work(&hp->writer, 10); in hvsi_write_worker() 948 schedule_delayed_work(&hp->writer, 10); in hvsi_write() 1199 INIT_DELAYED_WORK(&hp->writer, hvsi_write_worker); in hvsi_console_init()
|
| /linux/Documentation/core-api/real-time/ |
| H A D | differences.rst | 225 blocked writer. 234 writer and spinning reader contexts. This is achieved by embedding the writer 239 boost the writer’s priority to help it complete its update instead of spinning 243 reader with the writer during updates. The writer must ensure its update is
|
| /linux/Documentation/RCU/ |
| H A D | rculist_nulls.rst | 46 * Because a writer could delete object, and a writer could 147 a race (some writer did a delete and/or a move of an object
|
| /linux/rust/kernel/ |
| H A D | dma.rs | 950 writer: &mut UserSliceWriter, 967 let count = (self.size() - offset_val).min(writer.len()); in drop() 969 writer.write_dma(self, offset_val, count)?; in drop()
|
| /linux/Documentation/driver-api/media/ |
| H A D | dtv-common.rst | 41 2) If there is exactly one reader and one writer, there is no need
|
| /linux/arch/x86/kernel/ |
| H A D | apm_32.c | 329 unsigned int writer: 1; member 1169 if (!as->suser || !as->writer) in queue_event() 1497 if (!as->suser || !as->writer) in do_ioctl() 1595 as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE; in do_open()
|
| /linux/Documentation/core-api/ |
| H A D | local_ops.rst | 83 synchronization is done by the writer CPU, an outdated copy of the 130 respectively on the writer and the reader CPUs. It would be the case if you use
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | selection-api-configuration.rst | 46 driver writer considers the complete picture. Drivers shall set the 117 the driver writer considers the complete picture. It is recommended for
|