Re: [PATCH 1/9] sysfs: add sysfs_remove_bin_file_self() function

From: Greg Kroah-Hartman
Date: Thu Oct 07 2021 - 01:23:54 EST


On Wed, Oct 06, 2021 at 05:09:46PM -0700, Zev Weiss wrote:
> This is simply the bin_attribute analog to sysfs_remove_file_self().

No, no binary sysfs file should be triggering a remove.

binary sysfs files are "pass-through-only" from userspace to hardware,
the kernel should not be even knowing what is read/written to them.

What do you think this is needed for?

thanks,

greg k-h