All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Re :  sqrt() function in xenomai kernel module
@ 2007-08-29  9:02 Mathieu JOINIE-MAURIN
  2007-08-29  9:16 ` Jan Kiszka
  2007-08-29  9:25 ` Herman Bruyninckx
  0 siblings, 2 replies; 10+ messages in thread
From: Mathieu JOINIE-MAURIN @ 2007-08-29  9:02 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 1567 bytes --]

The application I used is a small controller for robot developped by people in the lab. Before it used to be in RTAI. But now they are trying to use Xenomai. The application is splitted in two parts:
the user side which saves data, manages interfaces and the kernel module which realise all the real time tisk (sampling, writing to electronic card, controler).
The communications between the two is made by 5 pipes (command, parameters, acknowledgment, save, status).

This is why i need to make my sqrt() function (of double variables)  into my kernel modul part.

Mathieu

----- Message d'origine ----
De : Jan Kiszka <jan.kiszka@domain.hid>
À : Mathieu JOINIE-MAURIN <mjoiniem@domain.hid>
Cc : xenomai@xenomai.org le : Mercredi, 29 Août 2007, 10h43mn 16s
Objet : Re: [Xenomai-help] sqrt() function in xenomai kernel module

Mathieu JOINIE-MAURIN wrote:
> Hi,
> 
> I need to use a sqrt() function in a kernel module code. I am a beginner with Xenomai. Is there any math_module which already exists ?

Counter question: Why do you need to use math in kernel code? It is
generally a sign something is not well split-up between kernel-based
driver code and user-space RT applications.

To answer your question: No, Xenomai does not come with a kernel math
lib because there is not much use for it - generally. Porting the app to
user-space is recommended.

Jan








      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

[-- Attachment #2: Type: text/html, Size: 2020 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [Xenomai-help] Re : sqrt() function in xenomai kernel module
@ 2007-08-29 16:10 Fillod Stephane
  0 siblings, 0 replies; 10+ messages in thread
From: Fillod Stephane @ 2007-08-29 16:10 UTC (permalink / raw)
  To: Xenomai

Gilles Chanteperdrix wrote:
[..]
>> Kernel-space math remains a dead end, just the point where it ends
may
>> vary. We should really encourage people to port away from it whenever
>> possible.
>
> Still, I think that having some libm support in kernel-space may help
> people when porting their applications to Xenomai.

IIRC, Mathieu's need for libm support in kernel-space was because its 
(legacy) application was written for the RTAI API. Instead of providing
libm support in kernel-space (which sucks anyway performance-wise
compared
to a fixed point implementation), a user-space port of the RTAI skin 
could enable easier porting of its application. That said, I would 
strongly advocate for converting the use of the RTAI API to either
native
or Posix skin API.
-- 
Stephane


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-08-29 16:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-29  9:02 [Xenomai-help] Re : sqrt() function in xenomai kernel module Mathieu JOINIE-MAURIN
2007-08-29  9:16 ` Jan Kiszka
2007-08-29  9:32   ` Gilles Chanteperdrix
2007-08-29 13:20     ` Gilles Chanteperdrix
2007-08-29 13:47       ` Paul
2007-08-29 14:14         ` Jan Kiszka
2007-08-29 14:53           ` Gilles Chanteperdrix
2007-08-29 15:35             ` Philippe Gerum
2007-08-29  9:25 ` Herman Bruyninckx
  -- strict thread matches above, loose matches on Subject: below --
2007-08-29 16:10 Fillod Stephane

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.