All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: alex alex <duch.alexandre@gmail.com>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] RTDM - Dynamic linking of device
Date: Wed, 19 Dec 2012 11:07:52 +0100	[thread overview]
Message-ID: <50D191F8.4090300@xenomai.org> (raw)
In-Reply-To: <CAPpP=rOF5ghUQb6Z5Se-C_rPpX-BWxCYx4bYzF3SCJj57rPFWA@mail.gmail.com>

On 12/19/2012 10:39 AM, alex alex wrote:
> Infact I thought "rtdm_dev_register" worked exclusively in the _init
> function as indicated by the documentation. Following your advice I have
> tested  "rtdm_dev_register" in another function of my RTDM driver (ioctl)
> and it works well.
>
> I think you might change the doc of rtdm_dev_register to :
>
> This service can be called from:
>
>     - Kernel module initialization/cleanup code
>     - Kernel-based task
>
> Same for rtdm_dev_unregister
>

Nope. Kernel-based task in the context of Xenomai means a primary mode 
context over a lightweight Xenomai task, which is not what you want. 
Kernel module init/cleanup code implies secondary mode, this is the gist 
of the matter. This may be made clearer in the doc though.

> Alex.
> 2012/12/18 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
>
>> 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.
>>
>> ______________________________**_________________
>> Xenomai mailing list
>> Xenomai@xenomai.org
>> http://www.xenomai.org/**mailman/listinfo/xenomai<http://www.xenomai.org/mailman/listinfo/xenomai>
>>
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai
>


-- 
Philippe.


      reply	other threads:[~2012-12-19 10:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-13  9:21 [Xenomai] RTDM - Dynamic linking of device alex alex
2012-12-15 11:57 ` Gilles Chanteperdrix
     [not found]   ` <CAPpP=rPn8k2LTwrYQ_XkKE4vaiazfREnfCJEE5nbY0iD7Apofw@mail.gmail.com>
2012-12-16  2:43     ` Gilles Chanteperdrix
     [not found]       ` <CAPpP=rMyDyfzLr=85+=KF-kMn1mYkGmd=ykRj71d40+35BOzdg@mail.gmail.com>
     [not found]         ` <50CF00C4.7030701@xenomai.org>
     [not found]           ` <CAPpP=rPhXs54eQMX_2L2an-t86LBc0ChTbkbTOTbUzTbDpunCg@mail.gmail.com>
2012-12-18 16:29             ` Gilles Chanteperdrix
2012-12-19  9:39               ` alex alex
2012-12-19 10:07                 ` Philippe Gerum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50D191F8.4090300@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=duch.alexandre@gmail.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.