Hello, Alexei.
On Thu, Mar 28, 2024 at 10:32:24AM -0700, Alexei Starovoitov wrote:
It bothers me a bit that it's adding a dedicated interface for something which already has a defined userspace interface. Would it be better to have kfunc wrappers for kernel_read() and kernel_write()?
How would that look ? prog cannot and shouldn't open a file.
Oh, I didn't know. Why is that?
The seq_file would be passed/pinned by user space?
Would it work if it's just "open this file, write this and then close it"?
Thanks.