[PATCH v3] ALSA: control: Add memory consumption limit to user controls

Takashi Iwai tiwai at suse.de
Fri Apr 9 18:09:02 CEST 2021


On Fri, 09 Apr 2021 12:59:10 +0200,
Takashi Iwai wrote:
> 
> On Fri, 09 Apr 2021 04:27:35 +0200,
> Takashi Sakamoto wrote:
> > 
> > 4. Add `max_user_ctl_alloc_size` kobject attribute to the control device
> > 
> > In the patch, a new module parameter 'max_user_ctl_alloc_size' is added.
> > In the item, I use the value of this parameter as initial value per
> > control device. The value per control device can be changed via sysfs
> > node.
> > 
> > The `max_user_ctl_alloc_size` is really the attribute of control device,
> > so I think it acceptable. Additionally, 'curr_user_ctl_alloc_size' is
> > also added so that userspace applications get current status.
> 
> So that's the primary purpose?  Then it makes sense, yeah.

You meant something like below, right?


Takashi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: user-ctl-sysfs.diff
Type: application/octet-stream
Size: 2963 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20210409/d1eeac05/attachment-0001.obj>


More information about the Alsa-devel mailing list