]> Gentwo Git Trees - linux/.git/commit
rust: alloc: layout: implement ArrayLayout::size()
authorDanilo Krummrich <dakr@kernel.org>
Wed, 20 Aug 2025 14:53:42 +0000 (16:53 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 4 Sep 2025 21:33:50 +0000 (23:33 +0200)
commit9acb4e630c3f3fc070b9962683fdde5ba1c4c70c
treec66311125c155a92ab2ea7f20b867267cbdf3f34
parent671618432f46c553d9b82ad701ac054e16c8d55a
rust: alloc: layout: implement ArrayLayout::size()

Provide a convenience method for ArrayLayout to calculate the size of
the ArrayLayout in bytes.

Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Tested-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Abdiel Janulgue <abdiel.janulgue@gmail.com>
Link: https://lore.kernel.org/r/20250820145434.94745-7-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/alloc/layout.rs