Re: [PATCH 6/6] rust: page: Make Page::as_ptr() pub(crate)

From: Alice Ryhl
Date: Mon Feb 03 2025 - 04:10:41 EST


On Sun, Feb 2, 2025 at 2:06 PM Asahi Lina <lina@xxxxxxxxxxxxx> wrote:
>
> There's no good reason for drivers to need access to the raw `struct
> page` pointer, since that should be handled by Rust abstractions. Make
> this method pub(crate) so it is only visible to the kernel crate.
>
> Signed-off-by: Asahi Lina <lina@xxxxxxxxxxxxx>

The Rust Binder driver has a C component, so it needs various as_ptr()
methods to be public.

Alice