RTEMS Logo

RTEMS 4.9.2 On-Line Library


Signal Manager SIGNAL_SEND - Send signal set to a task

PREV UP NEXT Bookshelf RTEMS C User's Guide

12.4.2: SIGNAL_SEND - Send signal set to a task

CALLING SEQUENCE:

rtems_status_code rtems_signal_send(
  rtems_id         id,
  rtems_signal_set signal_set
);

DIRECTIVE STATUS CODES:

RTEMS_SUCCESSFUL - signal sent successfully
RTEMS_INVALID_ID - task id invalid
RTEMS_INVALID_NUMBER - empty signal set
RTEMS_NOT_DEFINED - ASR invalid

DESCRIPTION:

This directive sends a signal set to the task specified in id. The signal_set parameter contains the signal set to be sent to the task.

If a caller sends a signal set to a task with an invalid ASR, then an error code is returned to the caller. If a caller sends a signal set to a task whose ASR is valid but disabled, then the signal set will be caught and left pending for the ASR to process when it is enabled. If a caller sends a signal set to a task with an ASR that is both valid and enabled, then the signal set is caught and the ASR will execute the next time the task is dispatched to run.

NOTES:

Sending a signal set to a task has no effect on that task's state. If a signal set is sent to a blocked task, then the task will remain blocked and the signals will be processed when the task becomes the running task.

Sending a signal set to a global task which does not reside on the local node will generate a request telling the remote node to send the signal set to the specified task.


PREV UP NEXT Bookshelf RTEMS C User's Guide

Copyright © 1988-2008 OAR Corporation