Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/hv/
Dring_buffer.c196 struct page **pages_wraparound; in hv_ringbuffer_init() local
204 pages_wraparound = kcalloc(page_cnt * 2 - 1, sizeof(struct page *), in hv_ringbuffer_init()
206 if (!pages_wraparound) in hv_ringbuffer_init()
209 pages_wraparound[0] = pages; in hv_ringbuffer_init()
211 pages_wraparound[i + 1] = &pages[i % (page_cnt - 1) + 1]; in hv_ringbuffer_init()
214 vmap(pages_wraparound, page_cnt * 2 - 1, VM_MAP, PAGE_KERNEL); in hv_ringbuffer_init()
216 kfree(pages_wraparound); in hv_ringbuffer_init()