/haiku/src/system/libroot/posix/sys/ |
H A D | uio.c | 17 readv(int fd, const struct iovec *vecs, int count) in readv() argument 24 bytes = _kern_readv(fd, -1, vecs, count); in readv() 31 readv_pos(int fd, off_t pos, const struct iovec *vecs, int count) in readv_pos() argument 38 bytes = _kern_readv(fd, pos, vecs, count); in readv_pos() 45 writev(int fd, const struct iovec *vecs, int count) in writev() argument 52 bytes = _kern_writev(fd, -1, vecs, count); in writev() 59 writev_pos(int fd, off_t pos, const struct iovec *vecs, int count) in writev_pos() argument 66 bytes = _kern_writev(fd, pos, vecs, count); in writev_pos()
|
/haiku/src/tests/system/kernel/cache/ |
H A D | pages_io_test.cpp | 46 status_t Add(file_io_vec *vecs, size_t vecCount, off_t &lastOffset); 106 file_map::Add(file_io_vec *vecs, size_t vecCount, off_t &lastOffset) in Add() argument 138 extent->disk = vecs[i]; in Add() 171 set_vecs(iovec *vecs, size_t *_count, ...) in set_vecs() argument 184 vecs[count].iov_base = (void *)base; in set_vecs() 185 vecs[count].iov_len = length; in set_vecs() 251 vfs_get_file_map(void *vnode, off_t offset, size_t size, file_io_vec *vecs, in vfs_get_file_map() argument 267 vecs[index].offset = diskOffset + offset - fileOffset; in vfs_get_file_map() 268 vecs[index].length = diskLength - offset + fileOffset; in vfs_get_file_map() 269 offset += vecs[index].length; in vfs_get_file_map() [all …]
|
H A D | file_map_test.cpp | 33 status_t GetFileMap(off_t offset, off_t length, file_io_vec* vecs, 181 Map::GetFileMap(off_t offset, off_t length, file_io_vec* vecs, in GetFileMap() argument 200 vecs[count].offset = fVecs[index].offset + diff; in GetFileMap() 201 vecs[count].length = fVecs[index].length - diff; in GetFileMap() 203 vecs[count].offset, vecs[count].length); in GetFileMap() 205 length -= vecs[count].length; in GetFileMap() 206 offset += vecs[count].length; in GetFileMap() 286 file_io_vec* vecs, size_t* _vecCount) in vfs_get_file_map() argument 289 return map->GetFileMap(offset, length, vecs, _vecCount); in vfs_get_file_map()
|
/haiku/headers/private/kernel/util/ |
H A D | iovec_support.h | 49 get_iovecs_from_user(const iovec* userVecs, size_t vecCount, iovec* vecs, 58 if (user_memcpy(vecs, userVecs, sizeof(iovec) * vecCount) != B_OK) 63 if (permitNull && vecs[i].iov_base == NULL) 65 if (!is_user_address_range(vecs[i].iov_base, vecs[i].iov_len)) { 68 if (vecs[i].iov_len > SSIZE_MAX || total > (SSIZE_MAX - vecs[i].iov_len)) { 71 total += vecs[i].iov_len;
|
/haiku/src/system/kernel/cache/ |
H A D | vnode_store.cpp | 54 VMVnodeCache::Read(off_t offset, const generic_io_vec* vecs, size_t count, in Read() argument 59 status_t status = vfs_read_pages(fVnode, NULL, offset, vecs, count, in Read() 78 generic_size_t length = min_c(bytesUntouched, vecs[i].length); in Read() 80 generic_addr_t address = vecs[i].base + vecs[i].length - length; in Read() 94 VMVnodeCache::Write(off_t offset, const generic_io_vec* vecs, size_t count, in Write() argument 97 return vfs_write_pages(fVnode, NULL, offset, vecs, count, flags, _numBytes); in Write() 102 VMVnodeCache::WriteAsync(off_t offset, const generic_io_vec* vecs, size_t count, in WriteAsync() argument 105 return vfs_asynchronous_write_pages(fVnode, NULL, offset, vecs, count, in WriteAsync()
|
H A D | file_map.cpp | 76 file_io_vec* vecs, size_t* _count, 90 status_t _Add(file_io_vec* vecs, size_t vecCount, 233 FileMap::_Add(file_io_vec* vecs, size_t vecCount, off_t& lastOffset) in _Add() argument 253 == vecs[i].offset in _Add() 254 || (lastExtent->disk.offset == -1 && vecs[i].offset == -1)) { in _Add() 256 lastExtent->disk.length += vecs[i].length; in _Add() 257 offset += vecs[i].length; in _Add() 272 extent->disk = vecs[i]; in _Add() 366 file_io_vec vecs[8]; in _Cache() local 372 status = vfs_get_file_map(Vnode(), mapEnd, ~0UL, vecs, &vecCount); in _Cache() [all …]
|
H A D | vnode_store.h | 24 virtual status_t Read(off_t offset, const generic_io_vec* vecs, 27 virtual status_t Write(off_t offset, const generic_io_vec* vecs, 31 const generic_io_vec* vecs, size_t count,
|
H A D | file_cache.cpp | 103 static void add_to_iovec(generic_io_vec* vecs, uint32 &index, uint32 max, 237 add_to_iovec(generic_io_vec* vecs, uint32 &index, uint32 max, in add_to_iovec() argument 240 if (index > 0 && vecs[index - 1].base + vecs[index - 1].length == address) { in add_to_iovec() 242 vecs[index - 1].length += size; in add_to_iovec() 250 vecs[index].base = address; in add_to_iovec() 251 vecs[index].length = size; in add_to_iovec() 337 const generic_io_vec* vecs, size_t count, uint32 flags, in read_pages_and_clear_partial() argument 342 status_t status = vfs_read_pages(ref->vnode, cookie, offset, vecs, count, in read_pages_and_clear_partial() 357 generic_size_t length = min_c(bytesUntouched, vecs[i].length); in read_pages_and_clear_partial() 358 vm_memset_physical(vecs[i].base + vecs[i].length - length, 0, in read_pages_and_clear_partial() [all …]
|
/haiku/headers/compatibility/bsd/sys/ |
H A D | uio.h | 22 preadv(int fd, const struct iovec *vecs, int count, off_t pos) in preadv() argument 24 return readv_pos(fd, pos, vecs, count); in preadv() 29 pwritev(int fd, const struct iovec *vecs, int count, off_t pos) in pwritev() argument 31 return writev_pos(fd, pos, vecs, count); in pwritev()
|
/haiku/src/system/kernel/util/ |
H A D | ring_buffer.cpp | 280 ring_buffer_get_vecs(struct ring_buffer* buffer, struct iovec* vecs) in ring_buffer_get_vecs() argument 287 vecs[0].iov_base = buffer->buffer + buffer->first; in ring_buffer_get_vecs() 288 vecs[0].iov_len = buffer->in; in ring_buffer_get_vecs() 296 vecs[0].iov_base = buffer->buffer + buffer->first; in ring_buffer_get_vecs() 297 vecs[0].iov_len = upper; in ring_buffer_get_vecs() 298 vecs[1].iov_base = buffer->buffer; in ring_buffer_get_vecs() 299 vecs[1].iov_len = lower; in ring_buffer_get_vecs() 370 iovec vecs[2]; 371 vecs[0].iov_base = buffer->buffer + buffer->first; 372 vecs[0].iov_len = upper; [all …]
|
/haiku/src/system/kernel/device_manager/ |
H A D | IORequest.cpp | 116 const generic_io_vec* vecs, uint32 count, generic_size_t length, uint32 flags) in SetVecs() argument 118 memcpy(fVecs, vecs, sizeof(generic_io_vec) * count); in SetVecs() 130 fUser = !fPhysical && IS_USER_ADDRESS(vecs[0].base); in SetVecs() 379 const generic_io_vec* vecs = fDMABuffer->Vecs(); in Finish() local 392 const generic_io_vec& vec = vecs[i]; in Finish() 461 const generic_io_vec* vecs = fDMABuffer->Vecs(); in Prepare() local 473 if (vecs[i].length <= toSkip) { in Prepare() 474 toSkip -= vecs[i].length; in Prepare() 489 if (vecs[vecCount - 1].length <= toSkip) { in Prepare() 490 toSkip -= vecs[vecCount - 1].length; in Prepare() [all …]
|
/haiku/src/tools/fs_shell/ |
H A D | uio.cpp | 25 extern "C" ssize_t _kern_readv(int fd, off_t pos, const struct iovec *vecs, size_t count); 26 extern "C" ssize_t _kern_writev(int fd, off_t pos, const struct iovec *vecs, size_t count); 34 prepare_iovecs(const struct fssh_iovec *vecs, int count, in prepare_iovecs() argument 43 systemVecs[i].iov_base = vecs[i].iov_base; in prepare_iovecs() 44 systemVecs[i].iov_len = vecs[i].iov_len; in prepare_iovecs()
|
H A D | vfs.h | 79 const fssh_iovec *vecs, fssh_size_t count, 82 fssh_off_t pos, const fssh_iovec *vecs, fssh_size_t count, 85 fssh_size_t size, fssh_file_io_vec *vecs,
|
/haiku/src/build/libroot/ |
H A D | fs_freebsd.cpp | 231 haiku_freebsd_readv(int fd, const struct iovec *vecs, size_t count) in haiku_freebsd_readv() argument 236 ssize_t currentRead = haiku_freebsd_read(fd, vecs[i].iov_base, in haiku_freebsd_readv() 237 vecs[i].iov_len); in haiku_freebsd_readv() 244 if ((size_t)currentRead != vecs[i].iov_len) in haiku_freebsd_readv() 253 haiku_freebsd_writev(int fd, const struct iovec *vecs, size_t count) in haiku_freebsd_writev() argument 258 ssize_t written = haiku_freebsd_write(fd, vecs[i].iov_base, in haiku_freebsd_writev() 259 vecs[i].iov_len); in haiku_freebsd_writev() 266 if ((size_t)written != vecs[i].iov_len) in haiku_freebsd_writev()
|
H A D | fs_freebsd.h | 15 ssize_t haiku_freebsd_readv(int fd, const struct iovec *vecs, size_t count); 16 ssize_t haiku_freebsd_writev(int fd, const struct iovec *vecs, size_t count);
|
/haiku/src/system/kernel/vm/ |
H A D | VMDeviceCache.h | 21 virtual status_t Read(off_t offset, const generic_io_vec *vecs, 24 virtual status_t Write(off_t offset, const generic_io_vec *vecs,
|
H A D | VMDeviceCache.cpp | 24 VMDeviceCache::Read(off_t offset, const generic_io_vec *vecs, size_t count, in Read() argument 33 VMDeviceCache::Write(off_t offset, const generic_io_vec* vecs, size_t count, in Write() argument
|
H A D | VMAnonymousNoSwapCache.h | 32 virtual status_t Read(off_t offset, const generic_io_vec *vecs, 35 virtual status_t Write(off_t offset, const generic_io_vec *vecs,
|
H A D | VMAnonymousCache.h | 60 virtual status_t Read(off_t offset, const generic_io_vec* vecs, 63 virtual status_t Write(off_t offset, const generic_io_vec* vecs, 67 const generic_io_vec* vecs, size_t count,
|
/haiku/docs/develop/kernel/vm/ |
H A D | vm_store_null | 10 static ssize_t null_read(struct vm_store *store, off_t offset, iovecs *vecs) 13 static ssize_t null_write(struct vm_store *store, off_t offset, iovecs *vecs)
|
H A D | vm_store_anonumous_noswap | 10 static ssize_t anonymous_read(struct vm_store *store, off_t offset, iovecs *vecs) 13 static ssize_t anonymous_write(struct vm_store *store, off_t offset, iovecs *vecs)
|
H A D | vm_store_vnode | 10 static ssize_t vnode_read(struct vm_store *store, off_t offset, iovecs *vecs) 13 static ssize_t vnode_write(struct vm_store *store, off_t offset, iovecs *vecs)
|
/haiku/src/add-ons/kernel/file_systems/exfat/ |
H A D | kernel_interface.cpp | 58 size_t size, struct file_io_vec* vecs, size_t* _count) in iterative_io_get_vecs_hook() argument 62 return file_map_translate(inode->Map(), offset, size, vecs, _count, in iterative_io_get_vecs_hook() 266 off_t pos, const iovec* vecs, size_t count, size_t* _numBytes) in exfat_read_pages() argument 294 fileVecCount, vecs, count, &vecIndex, &vecOffset, &bytes); in exfat_read_pages() 341 size_t size, struct file_io_vec* vecs, size_t* _count) in exfat_get_file_map() argument 354 if (index > 0 && (vecs[index - 1].offset in exfat_get_file_map() 355 == blockOffset - vecs[index - 1].length)) { in exfat_get_file_map() 356 vecs[index - 1].length += blockLength; in exfat_get_file_map() 364 vecs[index].offset = blockOffset; in exfat_get_file_map() 365 vecs[index].length = blockLength; in exfat_get_file_map() [all …]
|
/haiku/src/system/kernel/fs/ |
H A D | fd.cpp | 678 common_vector_io(int fd, off_t pos, const iovec* vecs, size_t count, bool write, bool kernel) in common_vector_io() argument 708 vecs, count); in common_vector_io() 711 vecs, count); in common_vector_io() 721 if (vecs[i].iov_base == NULL) in common_vector_io() 724 size_t length = vecs[i].iov_len; in common_vector_io() 727 vecs[i].iov_base, &length); in common_vector_io() 730 vecs[i].iov_base, &length); in common_vector_io() 747 if (length < vecs[i].iov_len) in common_vector_io() 818 BStackOrHeapArray<iovec, 16> vecs(count); in common_user_vector_io() local 819 if (!vecs.IsValid()) in common_user_vector_io() [all …]
|
/haiku/src/add-ons/kernel/file_systems/udf/ |
H A D | Icb.cpp | 476 Icb::GetFileMap(off_t offset, size_t size, file_io_vec *vecs, size_t *count) in GetFileMap() argument 483 return _GetFileMap(list, offset, size, vecs, count); in GetFileMap() 489 return _GetFileMap(list, offset, size, vecs, count); in GetFileMap() 506 struct file_io_vec *vecs, size_t *count) in _GetFileMap() argument 533 vecs[index].offset = -1; in _GetFileMap() 537 vecs[index].offset = diskBlock << fVolume->BlockShift(); in _GetFileMap() 541 vecs[index].length = length; in _GetFileMap() 547 if (index >= max || (off_t)size <= vecs[index - 1].length in _GetFileMap()
|