Re: [EXT] Re: Why there is a refcnt check when we change configfs property

2019-04-15 Thread Peter Chen
On Mon, Apr 15, 2019 at 5:40 PM Andrzej Pietrasiewicz wrote: > > Hi Peter, > > > > >> > >> Can you please describe your use case? > >> > >> Andrzej > > > > I would like to change parameters for function driver through configfs, > > below is the example for ncm and f_sourcesink cases, > > thanks.

Re: [EXT] Re: Why there is a refcnt check when we change configfs property

2019-04-15 Thread Andrzej Pietrasiewicz
Hi Peter, Can you please describe your use case? Andrzej I would like to change parameters for function driver through configfs, below is the example for ncm and f_sourcesink cases, thanks. if [ "$FUNC" == "ncm" ]; then mkdir functions/$FUNC".0" ln -s functions/$FUNC".0" configs/c.1 echo

RE: [EXT] Re: Why there is a refcnt check when we change configfs property

2019-04-11 Thread Peter Chen
> > > >>> > >>> Andrzej, would you tell us why you introduce refcnt for driver's > >>> configfs opts? And why it is needed to judge for "store" operation? > >>> > >> > >> The reason is that a function can be linked to more than one > >> configuration. Imagine this sequence: you create a function,