Re: [PATCH 3/6] rust: page: Make with_page_mapped() and with_pointer_into_page() public
From: Fiona Behrens
Date: Mon Feb 03 2025 - 04:43:41 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: Fiona Behrens <me@xxxxxxxxxx>