Re: [PATCH 3/6] rust: page: Make with_page_mapped() and with_pointer_into_page() public
From: Andreas Hindborg
Date: Wed Feb 19 2025 - 04:19:24 EST
"Asahi Lina" <lina@xxxxxxxxxxxxx> writes:
> Lets users do (unsafe) complex page read/write operations without having
> to repeatedly call into read_raw()/write_raw() (which may be expensive
> in some cases).
>
> The functions themselves are not unsafe, but they do take a closure that
> receives a raw pointer, so actually making the access requires unsafe
> code.
>
> Signed-off-by: Asahi Lina <lina@xxxxxxxxxxxxx>
Reviewed-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
Best regards,
Andreas Hindborg