Lines Matching refs:size

81     if (i + 1 > port_mmaps->size) {  in nxt_port_mmap_at()
82 port_mmaps->size = i + 1; in nxt_port_mmap_at()
101 for (i = 0; i < port_mmaps->size; i++) { in nxt_port_mmaps_destroy()
105 port_mmaps->size = 0; in nxt_port_mmaps_destroy()
113 #define nxt_port_mmap_free_junk(p, size) \ argument
114 memset((p), 0xA5, size)
305 port_mmap = nxt_port_mmap_at(mmaps, mmaps->size); in nxt_port_new_port_mmap()
337 hdr->id = mmaps->size - 1; in nxt_port_new_port_mmap()
361 mmaps->size--; in nxt_port_new_port_mmap()
368 nxt_shm_open(nxt_task_t *task, size_t size) in nxt_shm_open() argument
432 if (nxt_slow_path(ftruncate(fd, size) == -1)) { in nxt_shm_open()
457 end_port_mmap = mmaps->elts + mmaps->size; in nxt_port_mmap_get()
527 if (nxt_fast_path(process->incoming.size > id)) { in nxt_port_get_port_incoming_mmap()
543 nxt_port_mmap_get_buf(nxt_task_t *task, nxt_port_mmaps_t *mmaps, size_t size) in nxt_port_mmap_get_buf() argument
552 nxt_debug(task, "request %z bytes shm buffer", size); in nxt_port_mmap_get_buf()
554 nchunks = (size + PORT_MMAP_CHUNK_SIZE - 1) / PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_get_buf()
557 nxt_alert(task, "requested buffer (%z) too big", size); in nxt_port_mmap_get_buf()
598 nxt_port_mmap_increase_buf(nxt_task_t *task, nxt_buf_t *b, size_t size, in nxt_port_mmap_increase_buf() argument
606 nxt_debug(task, "request increase %z bytes shm buffer", size); in nxt_port_mmap_increase_buf()
616 if (nxt_slow_path(size <= free_size)) { in nxt_port_mmap_increase_buf()
625 size -= free_size; in nxt_port_mmap_increase_buf()
627 nchunks = (size + PORT_MMAP_CHUNK_SIZE - 1) / PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_increase_buf()
687 nchunks = mmap_msg->size / PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_get_incoming_buf()
688 if ((mmap_msg->size % PORT_MMAP_CHUNK_SIZE) != 0) { in nxt_port_mmap_get_incoming_buf()
696 b->mem.free = b->mem.start + mmap_msg->size; in nxt_port_mmap_get_incoming_buf()
722 "via shared memory", sb->size, port->pid); in nxt_port_mmap_write()
748 mmap_msg->size = sb->iobuf[i].iov_len; in nxt_port_mmap_write()
751 mmap_msg->mmap_id, mmap_msg->chunk_id, mmap_msg->size, in nxt_port_mmap_write()
758 sb->size = bsize; in nxt_port_mmap_write()
771 msg->size = 0; in nxt_port_mmap_read()
780 mmap_msg->mmap_id, mmap_msg->chunk_id, mmap_msg->size, in nxt_port_mmap_read()
792 msg->size += mmap_msg->size; in nxt_port_mmap_read()