Message-ID: Date: Wed, 10 Jan 2007 15:35:19 +0100 From: "Dmitry Adamushko" Subject: Re: Re: [Xenomai-help] Xenomai Bug: rt_intr_create with NULL-name leads In-Reply-To: <27256731.1168438778663.JavaMail.ngmail@domain.hid> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <15523442.1168430357436.JavaMail.ngmail@domain.hid> <45A4DDA8.6090800@domain.hid> <45A4F18A.4040209@domain.hid> <27256731.1168438778663.JavaMail.ngmail@domain.hid> List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "M. Koehrer" Cc: Xenomai help , Jan Kiszka On 10/01/07, M. Koehrer wrote: > Hi, > > one more comment on this issue: > Regarding to the API documentation it is not required to use a static allocated > string for the name parameter > (API docu: "When non-NULL and non-empty, this string is copied to a safe place into the descriptor"). > > However, when I use a name variable that is created on the stack (using sprintf), I see > that the /proc/xenomai/registry/native/interrupts/xxx name is fine, however the name in > /proc/xenomai/irq is not valid. > I.e. I have to use a static name variable to pass to rt_inter_create() as the name pointer > seems to be used without a copy action in /proc/xenomai/irq. You didn't apply the patches I sent, did you? The second patch (intr_swap.patch) should address this issue. -- Best regards, Dmitry Adamushko