Displaying 1 result from an estimated 1 matches for "data_pag".
Did you mean:
data_pad
2023 Feb 16
0
[RFC PATCH v1 05/12] vsock/virtio: non-linear skb support
...io_vsock_skb_reply(skb);
>+ sg_init_one(&bufs[0], virtio_vsock_hdr(skb), sizeof(*virtio_vsock_hdr(skb)));
>+ sgs[out_sg++] = &bufs[0];
>+
>+ if (skb_is_nonlinear(skb)) {
>+ int i;
>+
>+ for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) {
>+ struct page *data_page = skb_shinfo(skb)->frags[i].bv_page;
>+
>+ /* We will use 'page_to_virt()' for userspace page here,
>+ * because virtio layer will call 'virt_to_phys()' later
>+ * to fill buffer descriptor. We don't touch memory at
>+ * "virtual" addr...