From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <50D099E2.3080503@xenomai.org> Date: Tue, 18 Dec 2012 17:29:22 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <50CC65AF.6040102@xenomai.org> <50CD3563.2070400@xenomai.org> <50CF00C4.7030701@xenomai.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] RTDM - Dynamic linking of device List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Xenomai On 12/18/2012 03:38 PM, alex alex wrote: > Thanks for your answer, I have corrected the example program. > > What I would like to do is add x devices after that the module be loaded > and without naming these devices statically in the module, so am I forced > to call x times rtdm_dev_register with x declarations of the rtdm_device > structure in test.c? > If there is an other way, please tell me what it is. What about creating a first static device with an ioctl allowing to create other devices? -- Gilles.