[PATCH rust-next 0/2] Add llseek support to miscdevice and samples

Ryosuke Yasuoka posted 2 patches 1 month, 2 weeks ago
rust/kernel/miscdevice.rs        | 36 +++++++++++++++++
samples/rust/rust_misc_device.rs | 68 ++++++++++++++++++++++++++++++++
2 files changed, 104 insertions(+)
[PATCH rust-next 0/2] Add llseek support to miscdevice and samples
Posted by Ryosuke Yasuoka 1 month, 2 weeks ago
This patch series introduces support for the llseek file operation to
the Rust miscdevice abstraction.

The first patch, rust: miscdevice: add llseek support, extends the
MiscDevice trait with a new llseek method.

The second patch, rust: samples: miscdevice: add lseek samples, add a
simple example of how to use the new llseek feature. As currently the
MiscDevice trait does not support any read/write file operation yet, the
sample is fundamental one. 

Ryosuke Yasuoka (2):
  rust: miscdevice: add llseek support
  rust: samples: miscdevice: add lseek samples

 rust/kernel/miscdevice.rs        | 36 +++++++++++++++++
 samples/rust/rust_misc_device.rs | 68 ++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)


base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
-- 
2.50.1
Re: [PATCH rust-next 0/2] Add llseek support to miscdevice and samples
Posted by Greg KH 1 month, 2 weeks ago
On Mon, Aug 18, 2025 at 10:58:37PM +0900, Ryosuke Yasuoka wrote:
> This patch series introduces support for the llseek file operation to
> the Rust miscdevice abstraction.
> 
> The first patch, rust: miscdevice: add llseek support, extends the
> MiscDevice trait with a new llseek method.
> 
> The second patch, rust: samples: miscdevice: add lseek samples, add a
> simple example of how to use the new llseek feature. As currently the
> MiscDevice trait does not support any read/write file operation yet, the
> sample is fundamental one.

As read/write isn't there yet, why is llseek needed just yet?

thanks,

greg k-h