msgbuf_p_seg
for (x = 0, sz = 0; x < msgbuf_p_cnt; sz += msgbuf_p_seg[x++].sz)
for (x = 0; x < btoc(msgbuf_p_seg[y].sz); x++, sz += PAGE_SIZE)
msgbuf_p_seg[y].paddr + x * PAGE_SIZE,
for (x = 0, sz = 0; x < msgbuf_p_cnt; sz += msgbuf_p_seg[x++].sz)
for (x = 0; x < btoc(msgbuf_p_seg[y].sz); x++, sz += PAGE_SIZE)
msgbuf_p_seg[y].paddr + x * PAGE_SIZE,
extern struct msgbuf_p_seg msgbuf_p_seg[];
msgbuf_p_seg[msgbuf_p_cnt].sz = sz;
msgbuf_p_seg[msgbuf_p_cnt++].paddr = ctob(uvm_physseg_get_avail_end(x)) - sz;
struct msgbuf_p_seg msgbuf_p_seg[VM_PHYSSEG_MAX];