Re: [PATCH v3 1/3] rust: miscdevice: access file in fops
From: Lee Jones
Date: Fri Dec 13 2024 - 11:50:30 EST
jn Wed, 11 Dec 2024, Lee Jones wrote:
> On Tue, 10 Dec 2024, Alice Ryhl wrote:
>
> > This allows fops to access information about the underlying struct file
> > for the miscdevice. For example, the Binder driver needs to inspect the
> > O_NONBLOCK flag inside the fops->ioctl() hook.
> >
> > Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> > ---
> > rust/kernel/miscdevice.rs | 31 +++++++++++++++++++++++++------
> > 1 file changed, 25 insertions(+), 6 deletions(-)
>
> Reviewed-by: Lee Jones <lee@xxxxxxxxxx>
Tested-by: Lee Jones <lee@xxxxxxxxxx>
--
Lee Jones [李琼斯]