alf_accel_task_context_setup

NAME

alf_accel_task_context_setup - Initializes a task.

SYNOPSIS

int alf_accel_task_context_setup (void* p_task_context);

Parameters  
p_task_context [IN/OUT] Pointer to task context in accelerator memory.

DESCRIPTION

This function is called by the ALF runtime when a task starts running on an accelerator. The runtime loads the initial task context to the local memory and calls this function to do some task instance specific initialization.

The ALF runtime only invokes this API when the task has a task context. When the task does not have a task context or the application does not need extra setup of the initial context, you can choose not to implement this API when the programming environment supports weak link or to implement an empty function that returns zero when weak link is not supported.

RETURN VALUE

0 The API call finished correctly.
less than 0 An error happened during the call. The error code is passed back to you to be handled.