[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72n8oKnAWVj71uus8FuYEqqi+Bvy2zJ4SP=DX9Cgd39UKg@mail.gmail.com>
Date: Mon, 14 Oct 2024 12:46:44 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Alice Ryhl <aliceryhl@...gle.com>
Cc: Miguel Ojeda <ojeda@...nel.org>, Matthew Wilcox <willy@...radead.org>,
Lorenzo Stoakes <lorenzo.stoakes@...cle.com>, Vlastimil Babka <vbabka@...e.cz>,
John Hubbard <jhubbard@...dia.com>, "Liam R. Howlett" <Liam.Howlett@...cle.com>,
Andrew Morton <akpm@...ux-foundation.org>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Arnd Bergmann <arnd@...db.de>, Alex Gaynor <alex.gaynor@...il.com>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>, Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <benno.lossin@...ton.me>, linux-kernel@...r.kernel.org, linux-mm@...ck.org,
rust-for-linux@...r.kernel.org, Andreas Hindborg <a.hindborg@...nel.org>,
Wedson Almeida Filho <wedsonaf@...il.com>
Subject: Re: [PATCH v7 1/2] rust: mm: add abstractions for mm_struct and vm_area_struct
On Mon, Oct 14, 2024 at 11:30 AM Alice Ryhl <aliceryhl@...gle.com> wrote:
>
> +/// #[repr(transparent)]
Line in docs.
> +/// #[repr(transparent)]
> +#[repr(transparent)]
Ditto here, but in this case also outside the docs.
Some trivial nits I noticed below since I am here.
> + /// during the lifetime 'a.
Backticks (some other instances on lifetimes too).
> + /// Calls `mmget_not_zero` and returns a handle if it succeeds.
I would add `bindings::` since otherwise it may be confusing to say
the C name without qualifying, since this function is also called the
same way.
> + // SAFETY: The pointer is valid since self is a reference.
`self`.
> +// Make all VmAreaRef methods available on VmAreaMut.
> +// Make all VmAreaMut methods available on VmAreaNew.
Backticks.
> + /// Can contain "struct page" and pure PFN pages.
> + /// MADV_HUGEPAGE marked this vma.
These are copied from C, so it is fine, but we may want to take the
chance to format them.
Cheers,
Miguel
Powered by blists - more mailing lists