Searched refs:vecs (Results 1 - 25 of 93) sorted by relevance

1234

/haiku/src/system/libroot/posix/sys/
H A Duio.c17 readv(int fd, const struct iovec *vecs, size_t count) argument
19 ssize_t bytes = _kern_readv(fd, -1, vecs, count);
26 readv_pos(int fd, off_t pos, const struct iovec *vecs, size_t count) argument
33 bytes = _kern_readv(fd, pos, vecs, count);
40 writev(int fd, const struct iovec *vecs, size_t count) argument
42 ssize_t bytes = _kern_writev(fd, -1, vecs, count);
49 writev_pos(int fd, off_t pos, const struct iovec *vecs, size_t count) argument
56 bytes = _kern_writev(fd, pos, vecs, count);
/haiku/src/build/libroot/
H A Dfs_freebsd.h15 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);
H A Dfs_freebsd.cpp231 haiku_freebsd_readv(int fd, const struct iovec *vecs, size_t count) argument
236 ssize_t currentRead = haiku_freebsd_read(fd, vecs[i].iov_base,
237 vecs[i].iov_len);
244 if ((size_t)currentRead != vecs[i].iov_len)
253 haiku_freebsd_writev(int fd, const struct iovec *vecs, size_t count) argument
258 ssize_t written = haiku_freebsd_write(fd, vecs[i].iov_base,
259 vecs[i].iov_len);
266 if ((size_t)written != vecs[i].iov_len)
/haiku/src/system/kernel/vm/
H A DVMDeviceCache.cpp24 VMDeviceCache::Read(off_t offset, const generic_io_vec *vecs, size_t count, argument
33 VMDeviceCache::Write(off_t offset, const generic_io_vec* vecs, size_t count, argument
H A DVMDeviceCache.h21 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 DVMAnonymousNoSwapCache.h30 virtual status_t Read(off_t offset, const generic_io_vec *vecs,
33 virtual status_t Write(off_t offset, const generic_io_vec *vecs,
H A DVMAnonymousCache.h50 virtual status_t Read(off_t offset, const generic_io_vec* vecs,
53 virtual status_t Write(off_t offset, const generic_io_vec* vecs,
57 const generic_io_vec* vecs, size_t count,
H A DVMAnonymousNoSwapCache.cpp103 VMAnonymousNoSwapCache::Read(off_t offset, const generic_io_vec* vecs, size_t count, argument
112 VMAnonymousNoSwapCache::Write(off_t offset, const generic_io_vec* vecs, size_t count, argument
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/haiku/
H A Dvfs.h17 struct file_io_vec *vecs, size_t *_count);
/haiku/src/system/kernel/cache/
H A Dvnode_store.cpp46 VMVnodeCache::Read(off_t offset, const generic_io_vec* vecs, size_t count, argument
51 status_t status = vfs_read_pages(fVnode, NULL, offset, vecs, count,
70 generic_size_t length = min_c(bytesUntouched, vecs[i].length);
72 generic_addr_t address = vecs[i].base + vecs[i].length - length;
86 VMVnodeCache::Write(off_t offset, const generic_io_vec* vecs, size_t count, argument
89 return vfs_write_pages(fVnode, NULL, offset, vecs, count, flags, _numBytes);
94 VMVnodeCache::WriteAsync(off_t offset, const generic_io_vec* vecs, size_t count, argument
97 return vfs_asynchronous_write_pages(fVnode, NULL, offset, vecs, count,
H A Dvnode_store.h23 virtual status_t Read(off_t offset, const generic_io_vec* vecs,
26 virtual status_t Write(off_t offset, const generic_io_vec* vecs,
30 const generic_io_vec* vecs, size_t count,
H A Dfile_map.cpp76 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) argument
253 == vecs[i].offset
254 || (lastExtent->disk.offset == -1 && vecs[i].offset == -1)) {
256 lastExtent->disk.length += vecs[i].length;
257 offset += vecs[i].length;
272 extent->disk = vecs[i];
366 file_io_vec vecs[8]; local
372 status = vfs_get_file_map(Vnode(), mapEnd, ~0UL, vecs,
407 Translate(off_t offset, size_t size, file_io_vec* vecs, size_t* _count, size_t align) argument
664 file_map_translate(void* _map, off_t offset, size_t size, file_io_vec* vecs, size_t* _count, size_t align) argument
[all...]
/haiku/src/tests/system/kernel/cache/
H A Dpages_io_test.cpp46 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) argument
138 extent->disk = vecs[i];
171 set_vecs(iovec *vecs, size_t *_count, ...) argument
184 vecs[count].iov_base = (void *)base;
185 vecs[count].iov_len = length;
251 vfs_get_file_map(void *vnode, off_t offset, size_t size, file_io_vec *vecs, argument
267 vecs[index].offset = diskOffset + offset - fileOffset;
268 vecs[index].length = diskLength - offset + fileOffset;
269 offset += vecs[inde
296 vfs_read_pages(void *device, void *cookie, off_t offset, const iovec *vecs, size_t count, size_t *bytes, bool kernel) argument
309 vfs_write_pages(void *device, void *cookie, off_t offset, const iovec *vecs, size_t count, size_t *bytes, bool kernel) argument
345 get_file_map(file_cache_ref *ref, off_t offset, size_t size, file_io_vec *vecs, size_t *_count) argument
445 pages_io(file_cache_ref *ref, off_t offset, const iovec *vecs, size_t count, size_t *_numBytes, bool doWrite) argument
651 iovec vecs[MAX_IO_VECS]; local
[all...]
H A Dfile_map_test.cpp33 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, argument
200 vecs[count].offset = fVecs[index].offset + diff;
201 vecs[count].length = fVecs[index].length - diff;
203 vecs[count].offset, vecs[count].length);
205 length -= vecs[count].length;
206 offset += vecs[count].length;
286 file_io_vec* vecs, size_t* _vecCount)
289 return map->GetFileMap(offset, length, vecs, _vecCoun
285 vfs_get_file_map(struct vnode* vnode, off_t offset, uint32 length, file_io_vec* vecs, size_t* _vecCount) argument
[all...]
/haiku/src/system/kernel/util/
H A Dring_buffer.cpp274 \param vecs Pointer to an iovec array with at least 2 elements to be filled
280 ring_buffer_get_vecs(struct ring_buffer* buffer, struct iovec* vecs) argument
287 vecs[0].iov_base = buffer->buffer + buffer->first;
288 vecs[0].iov_len = buffer->in;
296 vecs[0].iov_base = buffer->buffer + buffer->first;
297 vecs[0].iov_len = upper;
298 vecs[1].iov_base = buffer->buffer;
299 vecs[1].iov_len = lower;
329 iovec vecs[2];
330 vecs[
[all...]
/haiku/src/tools/fs_shell/
H A Duio.cpp26 prepare_iovecs(const struct fssh_iovec *vecs, fssh_size_t count, argument
35 systemVecs[i].iov_base = vecs[i].iov_base;
36 systemVecs[i].iov_len = vecs[i].iov_len;
H A Dvfs.h79 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/system/kernel/device_manager/
H A DIORequest.cpp115 IOBuffer::SetVecs(generic_size_t firstVecOffset, const generic_io_vec* vecs, argument
118 memcpy(fVecs, vecs, sizeof(generic_io_vec) * count);
128 fUser = !fPhysical && IS_USER_ADDRESS(vecs[0].base);
165 VMAddressSpace::KernelID(), "io buffer mapped physical vecs",
272 kprintf(" vecs: %" B_PRIuSIZE "\n", fVecCount);
345 const generic_io_vec* vecs = fDMABuffer->Vecs(); local
350 // We iterate through the vecs we have read, moving offset (the device
358 const generic_io_vec& vec = vecs[i];
427 const generic_io_vec* vecs = fDMABuffer->Vecs(); local
439 if (vecs[
588 generic_io_vec* vecs = fDMABuffer->Vecs(); local
602 generic_io_vec* vecs = fDMABuffer->Vecs(); local
744 Init(off_t offset, generic_size_t firstVecOffset, const generic_io_vec* vecs, size_t count, generic_size_t length, bool write, uint32 flags) argument
791 generic_io_vec* vecs = fBuffer->Vecs(); local
1106 generic_io_vec* vecs = fBuffer->Vecs(); local
1191 generic_io_vec* vecs = fBuffer->Vecs(); local
1247 generic_io_vec* vecs = fBuffer->Vecs(); local
[all...]
/haiku/src/add-ons/kernel/file_systems/fat/
H A Dfile.h37 size_t reqLen, struct file_io_vec *vecs, size_t *_count);
40 off_t pos, const iovec *vecs, size_t count, size_t *_numBytes);
42 off_t pos, const iovec *vecs, size_t count, size_t *_numBytes);
/haiku/src/add-ons/kernel/network/protocols/unix/
H A DUnixFifo.h32 UnixRequest(const iovec* vecs, size_t count,
116 ssize_t Read(const iovec* vecs, size_t vecCount,
118 ssize_t Write(const iovec* vecs, size_t vecCount,
H A DUnixEndpoint.h69 ssize_t Send(const iovec *vecs, size_t vecCount,
71 ssize_t Receive(const iovec *vecs, size_t vecCount,
H A DUnixFifo.cpp26 UnixRequest::UnixRequest(const iovec* vecs, size_t count, argument
29 fVecs(vecs),
308 UnixFifo::Read(const iovec* vecs, size_t vecCount, argument
312 this, vecs, vecCount, timeout);
317 UnixRequest request(vecs, vecCount, NULL);
353 UnixFifo::Write(const iovec* vecs, size_t vecCount, argument
357 this, vecs, vecCount, ancillaryData, timeout);
365 UnixRequest request(vecs, vecCount, ancillaryData);
/haiku/src/add-ons/kernel/network/protocols/l2cap/
H A DL2capEndpoint.h53 ssize_t Send(const iovec* vecs, size_t vecCount,
55 ssize_t Receive(const iovec* vecs, size_t vecCount,
/haiku/src/add-ons/kernel/file_systems/udf/
H A DIcb.cpp471 Icb::GetFileMap(off_t offset, size_t size, file_io_vec *vecs, size_t *count) argument
478 return _GetFileMap(list, offset, size, vecs, count);
484 return _GetFileMap(list, offset, size, vecs, count);
501 struct file_io_vec *vecs, size_t *count)
528 vecs[index].offset = -1;
532 vecs[index].offset = diskBlock << fVolume->BlockShift();
536 vecs[index].length = length;
542 if (index >= max || (off_t)size <= vecs[index - 1].length
500 _GetFileMap(DescriptorList &list, off_t offset, size_t size, struct file_io_vec *vecs, size_t *count) argument
/haiku/src/system/kernel/fs/
H A Dfd.cpp802 iovec* vecs = (iovec*)malloc(sizeof(iovec) * count); local
803 if (vecs == NULL)
805 MemoryDeleter _(vecs);
807 if (user_memcpy(vecs, userVecs, sizeof(iovec) * count) != B_OK)
825 if (vecs[i].iov_base == NULL)
827 if (!IS_USER_ADDRESS(vecs[i].iov_base)) {
834 size_t length = vecs[i].iov_len;
837 vecs[i].iov_base, &length);
839 status = descriptor->ops->fd_read(descriptor, pos, vecs[i].iov_base,
857 if (length < vecs[
1091 _kern_readv(int fd, off_t pos, const iovec* vecs, size_t count) argument
1186 _kern_writev(int fd, off_t pos, const iovec* vecs, size_t count) argument
[all...]

Completed in 597 milliseconds

1234