passing parameters to task

Mathew Benson mathew.benson at
Mon Sep 17 10:18:31 UTC 2012

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> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list