Home
last modified time | relevance | path

Searched refs:niov (Results 1 – 8 of 8) sorted by last modified time

/unit/src/
H A Dnxt_port_socket.c446 n = nxt_socketpair_send(&port->socket, msg->fd, iov, sb.niov + 1); in nxt_port_write_handler()
H A Dnxt_port_memory.c724 bsize = sb->niov * sizeof(nxt_port_mmap_msg_t); in nxt_port_mmap_write()
729 for (i = 0; i < sb->niov; i++, mmap_msg++) { in nxt_port_mmap_write()
757 sb->niov = 1; in nxt_port_mmap_write()
H A Dnxt_openssl.c1369 nxt_uint_t niov; local
1372 niov = nxt_sendbuf_mem_coalesce0(task, sb, &iov, 1);
1374 if (niov == 0 && sb->sync) {
H A Dnxt_sendbuf.c157 sb->niov = n; in nxt_sendbuf_mem_coalesce()
H A Dnxt_sendbuf.h57 nxt_uint_t niov; member
H A Dnxt_linux_sendfile.c42 nxt_sendbuf_coalesce_t *sb, nxt_uint_t niov, nxt_uint_t flags);
54 nxt_uint_t niov, flags; in nxt_linux_event_conn_io_sendfile() local
65 niov = nxt_sendbuf_mem_coalesce(c->socket.task, &sb); in nxt_linux_event_conn_io_sendfile()
67 if (niov == 0 && sb.sync) { in nxt_linux_event_conn_io_sendfile()
73 if (niov != 0) { in nxt_linux_event_conn_io_sendfile()
85 if (niov == 1) { in nxt_linux_event_conn_io_sendfile()
93 return nxt_linux_sendmsg(c, &sb, niov, flags); in nxt_linux_event_conn_io_sendfile()
189 nxt_uint_t niov, nxt_uint_t flags) in nxt_linux_sendmsg() argument
198 msg.msg_iovlen = niov; in nxt_linux_sendmsg()
208 c->socket.fd, niov, flags, n); in nxt_linux_sendmsg()
[all …]
H A Dnxt_conn_read.c136 nxt_uint_t niov; in nxt_conn_io_recvbuf() local
145 niov = nxt_recvbuf_mem_coalesce(&rb); in nxt_conn_io_recvbuf()
147 if (niov == 1) { in nxt_conn_io_recvbuf()
153 n = readv(c->socket.fd, iov, niov); in nxt_conn_io_recvbuf()
157 nxt_debug(c->socket.task, "readv(%d, %ui): %z", c->socket.fd, niov, n); in nxt_conn_io_recvbuf()
189 "readv(%d, %ui) failed %E", c->socket.fd, niov, err); in nxt_conn_io_recvbuf()
H A Dnxt_conn_write.c166 nxt_uint_t niov; in nxt_conn_io_sendbuf() local
169 niov = nxt_sendbuf_mem_coalesce0(task, sb, iov, NXT_IOBUF_MAX); in nxt_conn_io_sendbuf()
171 if (niov == 0 && sb->sync) { in nxt_conn_io_sendbuf()
175 if (niov == 0 && nxt_buf_is_file(sb->buf)) { in nxt_conn_io_sendbuf()
179 return nxt_conn_io_writev(task, sb, iov, niov); in nxt_conn_io_sendbuf()
298 nxt_uint_t niov) in nxt_conn_io_writev() argument
303 if (niov == 1) { in nxt_conn_io_writev()
309 n = writev(sb->socket, iov, niov); in nxt_conn_io_writev()
313 nxt_debug(task, "writev(%d, %ui): %z", sb->socket, niov, n); in nxt_conn_io_writev()
336 "writev(%d, %ui) failed %E", sb->socket, niov, err); in nxt_conn_io_writev()