Home
last modified time | relevance | path

Searched refs:pwrite (Results 1 – 25 of 32) sorted by relevance

12

/linux/include/media/
H A Ddvb_ringbuffer.h45 ssize_t pwrite; member
178 { (rbuf)->data[(rbuf)->pwrite] = (byte); \
179 (rbuf)->pwrite = ((rbuf)->pwrite + 1) % (rbuf)->size; }
/linux/tools/testing/selftests/filesystems/mount_cycle/
H A Dloop_cycle_test.c109 if (pwrite(fd, sector, SECTOR, 0) != SECTOR) in write_fat12()
112 if (pwrite(fd, fat, SECTOR, 1 * SECTOR) != SECTOR || in write_fat12()
113 pwrite(fd, fat, SECTOR, 10 * SECTOR) != SECTOR) in write_fat12()
148 if (pwrite(fd, sector, sizeof(sector), 0) != sizeof(sector)) in write_fat12_4k()
150 if (pwrite(fd, fat, sizeof(fat), 1 * 4096) != sizeof(fat) || in write_fat12_4k()
151 pwrite(fd, fat, sizeof(fat), (1 + fat_sectors) * 4096) != sizeof(fat)) in write_fat12_4k()
214 if (pwrite(fd, &sb, sizeof(sb), 1 * MINIX_BLOCK) != sizeof(sb) || in write_minix()
215 pwrite(fd, imap, sizeof(imap), 2 * MINIX_BLOCK) != sizeof(imap) || in write_minix()
216 pwrite(fd, zmap, sizeof(zmap), 3 * MINIX_BLOCK) != sizeof(zmap) || in write_minix()
217 pwrite(fd, &root, sizeof(root), 4 * MINIX_BLOCK) != sizeof(root) || in write_minix()
[all …]
/linux/tools/hv/
H A Dhv_fcopy_daemon.c
H A Dhv_fcopy_uio_daemon.c181 len = pwrite(target_fd, cpmsg->data, cpmsg->size, cpmsg->offset); in hv_copy_data()
/linux/tools/testing/selftests/iommu/
H A Diommufd_fail_nth.c133 res2 = pwrite(nth_state->proc_fd, disable_nth, in fail_nth_next()
136 res2 = pwrite(nth_state->proc_fd, disable_nth, in fail_nth_next()
172 ASSERT_EQ(len, pwrite(nth_state->proc_fd, buf, len, 0)); in __fail_nth_enable()
/linux/Documentation/admin-guide/perf/
H A Dfujitsu_uncore_pmu.rst60 - write-count-pwrite
66 - memory-pwrite-count
/linux/tools/perf/util/
H A Dcopyfile.c58 ssize_t ret = pwrite(ofd, ptr + off_in, size, off_out); in copyfile_offset()
H A Dtrace-event-info.c77 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) { in record_file()
/linux/tools/testing/selftests/mm/
H A Dmemfd_secret.c54 (pwrite(fd, buf, sizeof(buf), 0) >= 0)) in test_file_apis()
/linux/drivers/perf/
H A Dfujitsu_uncore_pmu.c332 MAC_EVENT_ATTR(write-count-pwrite, 0x22),
335 MAC_EVENT_ATTR(memory-pwrite-count, 0x60),
/linux/tools/testing/selftests/riscv/abi/
H A Dpointer_masking.c190 int ret = pwrite(fd, buf, count, 0); in pwrite_wrapper()
/linux/tools/testing/selftests/ublk/
H A Dfile_backed.c203 int ret = pwrite(fd, buf, min(len, sizeof(buf)), offset); in ublk_loop_tgt_init()
/linux/arch/um/drivers/
H A Dvfio_user.c297 if (pwrite(dev->device, buf, size, dev->region[index].offset + offset) < 0) in vfio_region_write()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_userptr.c394 .pwrite = i915_gem_userptr_pwrite,
H A Di915_gem_shmem.c493 .pwrite = shmem_pwrite,
/linux/tools/testing/selftests/kvm/
H A Daccess_tracking_perf_test.c153 TEST_ASSERT(pwrite(page_idle_fd, &bits, 8, 8 * (pfn / 64)) == 8, in mark_page_idle()
H A Dguest_memfd_test.c38 TEST_ASSERT(pwrite(fd, buf, sizeof(buf), 0) < 0, in test_file_read_write()
39 "pwrite on a guest_mem fd should fail"); in test_file_read_write()
/linux/Documentation/filesystems/spufs/
H A Dspufs.rst68 read(2), pread(2), write(2), pwrite(2), lseek(2)
70 write(2) and pwrite(2) are not supported beyond the end of the
/linux/tools/testing/selftests/memfd/
H A Dmemfd_test.c697 l = pwrite(fd, buf, mfd_def_size * 8, 0); in mfd_assert_grow_write()
699 printf("pwrite() failed: %m\n"); in mfd_assert_grow_write()
721 l = pwrite(fd, buf, mfd_def_size * 8, 0); in mfd_fail_grow_write()
723 printf("pwrite() didn't fail as expected\n"); in mfd_fail_grow_write()
/linux/tools/testing/selftests/vfio/lib/
H A Dvfio_pci_device.c255 ret = pwrite(device->fd, data, size, config_space->offset + config); in vfio_pci_config_access()
/linux/arch/um/os-Linux/
H A Dfile.c292 int n = pwrite(fd, (void *) buf, len, offset); in os_pwrite_file()
/linux/tools/include/nolibc/
H A Dsys.h792 ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset) in pwrite() function
/linux/tools/testing/selftests/sparc64/drivers/
H A Dadi-test.c270 ret = pwrite(fd, buf + bytes_written, in pwrite_adi()
/linux/tools/testing/selftests/coredump/
H A Dcoredump_test_helpers.c173 if (pwrite(fd, buf, len, offset) != (ssize_t)len) { in file_sink_data()
570 if (pwrite(ctx->fd_reference, pos, len, offset) != (ssize_t)len) { in compact_data()
/linux/tools/mm/
H A Dpage-types.c590 len = pwrite(page_idle_fd, &buf, 8, 8 * (off / 64)); in mark_page_idle()

12