Home
last modified time | relevance | path

Searched refs:iovmax (Results 1 – 4 of 4) sorted by relevance

/libuv/src/unix/
H A Dcore.c278 int iovmax; in uv__getiovmax()
280 iovmax = atomic_load_explicit(&iovmax_cached, memory_order_relaxed); in uv__getiovmax()
281 if (iovmax != -1) in uv__getiovmax()
282 return iovmax; in uv__getiovmax()
288 iovmax = sysconf(_SC_IOV_MAX); in uv__getiovmax()
289 if (iovmax == -1) in uv__getiovmax()
290 iovmax = 1; in uv__getiovmax()
292 atomic_store_explicit(&iovmax_cached, iovmax, memory_order_relaxed); in uv__getiovmax()
294 return iovmax; in uv__getiovmax()
H A Dfs.c518 unsigned int iovmax; in uv__fs_read() local
529 iovmax = uv__getiovmax(); in uv__fs_read()
530 if (nbufs > iovmax) in uv__fs_read()
531 nbufs = iovmax; in uv__fs_read()
1650 unsigned int iovmax; in uv__fs_write_all() local
1656 iovmax = uv__getiovmax(); in uv__fs_write_all()
1663 if (req->nbufs > iovmax) in uv__fs_write_all()
1664 req->nbufs = iovmax; in uv__fs_write_all()
H A Dstream.c759 int iovmax; in uv__try_write() local
770 iovmax = uv__getiovmax(); in uv__try_write()
773 if (iovcnt > iovmax) in uv__try_write()
774 iovcnt = iovmax; in uv__try_write()
/libuv/test/
H A Dtest-fs.c144 static int iovmax = -1; in uv_test_getiovmax()
145 if (iovmax == -1) { in uv_test_getiovmax()
146 iovmax = sysconf(_SC_IOV_MAX); in uv_test_getiovmax()
151 if (iovmax == -1) iovmax = 1; in uv_test_getiovmax()
153 return iovmax; in uv_test_getiovmax()
3451 size_t iovmax; in fs_write_alotof_bufs() local
3512 if (iovcount > iovmax) in fs_write_alotof_bufs()
3513 iovcount = iovmax; in fs_write_alotof_bufs()
3559 size_t iovmax; in fs_write_alotof_bufs_with_offset() local
3625 else if (iovcount > iovmax) in fs_write_alotof_bufs_with_offset()
[all …]

Completed in 25 milliseconds