passing parameters to task

Luca Cinquepalmi cinquepalmi at
Mon Sep 17 10:20:28 UTC 2012

I understand your suggestion... is there any example I could view?


Il 17/09/2012 12.18, Mathew Benson ha scritto:
> The same way you would with a POSIX pthread create call.  Just malloc 
> a struct with your multiple parameters, set your parameters, and pass 
> the reference of your struct to the function.  In your task entry 
> point, cast the argument to a pointer to your struct and pull your 
> parameters out.
> Sent from my Amiga 1000
> On Sep 17, 2012, at 4:35 AM, Luca Cinquepalmi <cinquepalmi at 
> <mailto:cinquepalmi at>> wrote:
>> Hi all,
>> I would like to know if is it possible to pass more than one argument 
>> to a single task...
>> At the moment I only use this syntax when I define a task
>> *rtems_task Test_task(rtems_task_argument unused)*
>> How can I declare and define a more parameters dependent task?
>> Thanks a lot.
>>     Luca
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at <mailto:rtems-users at>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list