Re: [PATCH] proc: Add a way to make proc files writable
From: Alexey Dobriyan
Date: Fri Nov 01 2024 - 12:35:41 EST
On Thu, Oct 31, 2024 at 07:14:53PM -0700, Andrew Morton wrote:
> On Thu, 31 Oct 2024 18:39:20 -0700 Qingjie Xing <xqjcool@xxxxxxxxx> wrote:
>
> > Provide an extra function, proc_create_single_write_data() that
> > act like its non-write version but also set a write method in
> > the proc_dir_entry struct. Alse provide a macro
> > proc_create_single_write to reduces the boilerplate code in the callers.
> >
>
> Please fully describe the reason for making this change.
>
> Also, we are reluctant to add a new interface to Linux unless we add
> new users of that interface at the same time.
Yeah, /proc outside /proc/${pid} and /proc/sys should be pretty dead.