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

12345

/haiku/headers/private/kernel/util/
H A Diovec_support.h45 get_iovecs_from_user(const iovec* userVecs, size_t vecCount, iovec*& vecs, argument
55 vecs = (iovec*)malloc(sizeof(iovec) * vecCount);
56 if (vecs == NULL)
59 if (user_memcpy(vecs, userVecs, sizeof(iovec) * vecCount) != B_OK) {
60 free(vecs);
66 if (permitNull && vecs[i].iov_base == NULL)
68 if (!is_user_address_range(vecs[i].iov_base, vecs[i].iov_len)) {
69 free(vecs);
72 if (vecs[
[all...]
/haiku/headers/compatibility/bsd/sys/
H A Duio.h22 preadv(int fd, const struct iovec *vecs, int count, off_t pos) argument
24 return readv_pos(fd, pos, vecs, count);
29 pwritev(int fd, const struct iovec *vecs, int count, off_t pos) argument
31 return writev_pos(fd, pos, vecs, count);
/haiku/src/system/libroot/posix/sys/
H A Duio.c17 readv(int fd, const struct iovec *vecs, int count) argument
24 bytes = _kern_readv(fd, -1, vecs, count);
31 readv_pos(int fd, off_t pos, const struct iovec *vecs, int count) argument
38 bytes = _kern_readv(fd, pos, vecs, count);
45 writev(int fd, const struct iovec *vecs, int count) argument
52 bytes = _kern_writev(fd, -1, vecs, count);
59 writev_pos(int fd, off_t pos, const struct iovec *vecs, int count) argument
66 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.h32 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 DVMAnonymousCache.h60 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/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...]
H A Dfile_cache.cpp103 static void add_to_iovec(generic_io_vec* vecs, uint32 &index, uint32 max,
235 add_to_iovec(generic_io_vec* vecs, uint32 &index, uint32 max, argument
238 if (index > 0 && vecs[index - 1].base + vecs[index - 1].length == address) {
240 vecs[index - 1].length += size;
248 vecs[index].base = address;
249 vecs[index].length = size;
335 const generic_io_vec* vecs, size_t count, uint32 flags,
340 status_t status = vfs_read_pages(ref->vnode, cookie, offset, vecs, count,
355 generic_size_t length = min_c(bytesUntouched, vecs[
334 read_pages_and_clear_partial(file_cache_ref* ref, void* cookie, off_t offset, const generic_io_vec* vecs, size_t count, uint32 flags, generic_size_t* _numBytes) argument
386 generic_io_vec vecs[MAX_IO_VECS]; local
502 generic_io_vec vecs[MAX_IO_VECS]; local
639 generic_io_vec* vecs = sZeroVecs; local
[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/tools/fs_shell/
H A Duio.cpp25 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, argument
43 systemVecs[i].iov_base = vecs[i].iov_base;
44 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/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;
370 iovec vecs[2];
371 vecs[
[all...]
/haiku/src/add-ons/kernel/network/protocols/unix/
H A DUnixDatagramEndpoint.h35 ssize_t Send(const iovec* vecs, size_t vecCount,
39 ssize_t Receive(const iovec* vecs, size_t vecCount,
H A DUnixEndpoint.h56 virtual ssize_t Send(const iovec* vecs, size_t vecCount,
60 virtual ssize_t Receive(const iovec* vecs, size_t vecCount,
H A DUnixStreamEndpoint.h51 ssize_t Send(const iovec* vecs, size_t vecCount,
55 ssize_t Receive(const iovec* vecs, size_t vecCount,
/haiku/src/system/kernel/device_manager/
H A DIORequest.cpp116 const generic_io_vec* vecs, uint32 count, generic_size_t length, uint32 flags)
118 memcpy(fVecs, vecs, sizeof(generic_io_vec) * count);
130 fUser = !fPhysical && IS_USER_ADDRESS(vecs[0].base);
175 VMAddressSpace::KernelID(), "io buffer mapped physical vecs",
282 kprintf(" vecs: %" B_PRIuSIZE "\n", fVecCount);
378 const generic_io_vec* vecs = fDMABuffer->Vecs(); local
383 // We iterate through the vecs we have read, moving offset (the device
391 const generic_io_vec& vec = vecs[i];
460 const generic_io_vec* vecs = fDMABuffer->Vecs(); local
472 if (vecs[
115 SetVecs(generic_size_t firstVecOffset, generic_size_t lastVecSize, const generic_io_vec* vecs, uint32 count, generic_size_t length, uint32 flags) argument
621 generic_io_vec* vecs = fDMABuffer->Vecs(); local
635 generic_io_vec* vecs = fDMABuffer->Vecs(); local
777 Init(off_t offset, generic_size_t firstVecOffset, generic_size_t lastVecSize, const generic_io_vec* vecs, size_t count, generic_size_t length, bool write, uint32 flags) argument
824 generic_io_vec* vecs = fBuffer->Vecs(); local
1148 generic_io_vec* vecs = fBuffer->Vecs(); local
1233 generic_io_vec* vecs = fBuffer->Vecs(); local
1289 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/l2cap/
H A DL2capEndpoint.h53 ssize_t Send(const iovec* vecs, size_t vecCount,
55 ssize_t Receive(const iovec* vecs, size_t vecCount,

Completed in 180 milliseconds

12345