| /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 | 272 let mut writer = UserSlice::new(UserPtr::from_ptr(buf.cast()), count).writer(); in blob_read() 275 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/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/tools/lib/python/ |
| H A D | jobserver.py | 20 os.write(writer, b"+") # os.write(writer, claim) 60 self.writer = None 95 self.writer = os.open(path, os.O_WRONLY) 109 self.writer = int(split_fds[1]) 150 os.write(self.writer, self.jobs) 169 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 | freeze.rs | 88 writer: &mut BinderReturnWriter<'_>, in do_work() 100 writer.write_code(BR_CLEAR_FREEZE_NOTIFICATION_DONE)?; in do_work() 101 writer.write_payload(&self.cookie.0)?; in do_work() 120 writer.write_code(BR_CLEAR_FREEZE_NOTIFICATION_DONE)?; in do_work() 121 writer.write_payload(&self.cookie.0)?; in do_work() 136 writer.write_code(BR_FROZEN_BINDER)?; in do_work() 137 writer.write_payload(&state_info)?; in do_work()
|
| H A D | node.rs | 518 fn write(&self, writer: &mut BinderReturnWriter<'_>, code: u32) -> Result { in write() 519 writer.write_code(code)?; in write() 520 writer.write_payload(&self.ptr)?; in write() 521 writer.write_payload(&self.cookie)?; in write() 607 writer: &mut BinderReturnWriter<'_>, in do_work_locked() 642 self.write(writer, BR_INCREFS)?; in do_work_locked() 645 self.write(writer, BR_ACQUIRE)?; in do_work_locked() 648 self.write(writer, BR_RELEASE)?; in do_work_locked() 651 self.write(writer, BR_DECREFS)?; in do_work_locked() 713 writer: &mut BinderReturnWriter<'_>, in do_work() [all …]
|
| H A D | thread.rs | 503 let mut writer = data.writer(); in get_extended_error() localVariable 508 writer.write(&ee)?; in get_extended_error() 1465 let mut writer = BinderReturnWriter::new( in read() localVariable 1466 UserSlice::new(UserPtr::from_addr(read_start as _), read_len as _).writer(), in read() 1491 if let Err(err) = writer.write_code(BR_NOOP) { in read() 1499 let initial_len = writer.len(); in read() 1500 while writer.len() >= size_of::<uapi::binder_transaction_data_secctx>() + 4 { in read() 1501 match getter(self, wait && initial_len == writer.len()) { in read() 1502 Ok(Some(work)) => match work.into_arc().do_work(self, &mut writer) { in read() 1517 if initial_len == writer.len() { in read() [all …]
|
| H A D | transaction.rs | 391 writer: &mut BinderReturnWriter<'_>, in do_work() 439 writer.write_code(code)?; in do_work() 442 writer.write_payload(&tr_sec)?; in do_work() 444 writer.write_payload(&*tr)?; in do_work()
|
| H A D | process.rs | 1144 data.writer().write(&BinderVersion::current()) in version() 1169 let (mut reader, mut writer) = data.reader_writer(); in get_node_debug_info() 1185 writer.write(&out) in get_node_debug_info() 1189 let (mut reader, mut writer) = data.reader_writer(); in get_node_info_from_ref() 1215 writer.write(&out) in get_node_info_from_ref() 1530 let (mut reader, mut writer) = data.reader_writer(); in get_frozen_status() 1551 writer.write(&info)?; in get_frozen_status()
|
| /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/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/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/misc/ibmasm/ |
| H A D | remote.c | 173 unsigned long writer; in ibmasm_handle_mouse_interrupt() local 177 writer = get_queue_writer(sp); in ibmasm_handle_mouse_interrupt() 179 while (reader != writer) { in ibmasm_handle_mouse_interrupt() 180 if (reader >= REMOTE_QUEUE_SIZE || writer >= REMOTE_QUEUE_SIZE) { in ibmasm_handle_mouse_interrupt() 197 writer = get_queue_writer(sp); in ibmasm_handle_mouse_interrupt()
|
| /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/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/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/rust/kernel/ |
| H A D | dma.rs | 956 writer: &mut UserSliceWriter, 973 let count = (self.size() - offset_val).min(writer.len()); in drop() 975 writer.write_dma(self, offset_val, count)?; in drop()
|
| /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
|