From mboxrd@z Thu Jan 1 00:00:00 1970 References: <20170808112357.0063d74d@md1em3qc> From: =?UTF-8?Q?St=c3=a9phane_Ancelot?= Message-ID: <00264fd7-9cdd-afe0-0047-db7e0c2e8f40@numalliance.com> Date: Mon, 28 Aug 2017 08:25:02 +0200 MIME-Version: 1.0 In-Reply-To: <20170808112357.0063d74d@md1em3qc> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai] [RFC] Xenomai3 tuneables replaced by environment variables List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Henning Schild , xenomai@xenomai.org Cc: "KISZKA, JAN" Hi, hardcoded and cmdline args benefits from an added value for real=20 applications. We don't want args being "volatile" environment variables are volatile and sometimes difficult to propagate=20 between shells... Regards, S.Ancelot Le 08/08/2017 =C3=A0 11:23, Henning Schild a =C3=A9crit : > Hey, > > xenomai3 has its tuneables and they can be set with command-line > parameters and setup_descriptors. > > 1. > The command-line parameters impose on the application, it has to be > modified to skip/ignore them. And ultimately it has to keep a list of > valid ones to do so pedanticly. If there are name clashes behaviour is > unclear. i.e. "--help" ld.so vs. dlopen > > 2. > The setup_descriptors do work but they rely on getting the order > stricly right. They have to execute before the first xenomai_init(). In > complex applications with multithreaded init using dlopen() and > auto-init-solib that quickly turns out to be unusable. > > Suggestions: > 1. > 1.1 completely drop the support for parameters and the fiddling > with /proc/cmdline > 1.2 or agree on a prefix "--xeno-" so the application can ignore all > xenomai parameters without knowing all > > 2. > 2.1 completely drop the setup_descriptors in favour of environment > variables > > That would be a drastic change but i think we should do something about > it. With environment variables it is clear what happens without messing > with the applications init or parameters, getting rid of confusing > complexity. > > Please let me know what you think, i would be happy to prepare patches. > > Henning > > _______________________________________________ > Xenomai mailing list > Xenomai@xenomai.org > https://xenomai.org/mailman/listinfo/xenomai