# Re: \[RFC v4 16/18\] netmem: introduce a netmem API, virt\_to\_head\_netmem()

- From: Pavel Begunkov \<asml.silence@gmail.com\>
- Date: 2025-06-05 10:44:37 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/06/3080220
- Thread: https://ratatoskr.run/netdev/2025/06/3078623/t.md

```text
On 6/4/25 03:52, Byungchul Park wrote:
> To eliminate the use of struct page in page pool, the page pool code
> should use netmem descriptor and APIs instead.
>
> As part of the work, introduce a netmem API to convert a virtual address
> to a head netmem allowing the code to use it rather than the existing
> API, virt_to_head_page() for struct page.

Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>

-- 
Pavel Begunkov

```
