Messages in this thread | | | Date | Thu, 28 Mar 2024 07:58:47 -1000 | From | Tejun Heo <> | Subject | Re: [RFC PATCH bpf-next 0/3] bpf: freeze a task cgroup from bpf |
| |
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.
-- tejun
| |