RTEMS Logo

RTEMS 4.6.0pre5 On-Line Library


Task Manager Accessing Task Arguments

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

5.2.6: Accessing Task Arguments

All RTEMS tasks are invoked with a single argument which is specified when they are started or restarted. The argument is commonly used to communicate startup information to the task. The simplest manner in which to define a task which accesses it argument is:

procedure User_Task (
  Argument : in    RTEMS.Task_Argument_Ptr
);

Application tasks requiring more information may view this single argument as an index into an array of parameter blocks.


PREV UP NEXT Bookshelf RTEMS Ada User's Guide

Copyright © 1988-2003 OAR Corporation