Commit 88a4dfa3 authored by Alice Ryhl's avatar Alice Ryhl
Browse files

FROMLIST: rust: miscdevice: add mmap support



Add the ability to write a file_operations->mmap hook in Rust when using
the miscdevice abstraction. The `vma` argument to the `mmap` hook uses
the `VmAreaNew` type from the previous commit; this type provides the
correct set of operations for a file_operations->mmap hook.

Acked-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> (for mm bits)
Change-Id: I00a0769625bd9e6cbb2dc9613cda8ae371a3ac3b
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>

Bug: 370906207
Link: https://lore.kernel.org/all/20250115-vma-v12-7-375099ae017a@google.com/


Change-Id: I5f4441b60673fdc08190eaf566099dcb88905bb9
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
parent 7d1983ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment