HeMPS  8.0
Functions | Variables
task_location.c File Reference

This module implements function relative to task location structure. This module is used by the slave kernel The task location gives to the slave kernel, the location (slave process address) of the other task. More...

#include "task_location.h"
#include "utils.h"
Include dependency graph for task_location.c:

Functions

void init_task_location ()
 
int get_task_location (int task_ID)
 
void add_task_location (int task_ID, int proc)
 
int remove_task_location (int task_id)
 
void clear_app_tasks_locations (int app_ID)
 

Variables

TaskLocaion task_location [MAX_TASK_LOCATION]
 array of TaskLocation
 

Detailed Description

This module implements function relative to task location structure. This module is used by the slave kernel The task location gives to the slave kernel, the location (slave process address) of the other task.

HEMPS VERSION - 8.0 - support for RT applications

Distribution: June 2016

Created by: Marcelo Ruaro - contact: marce.nosp@m.lo.r.nosp@m.uaro@.nosp@m.acad.nosp@m..pucr.nosp@m.s.br

Research group: GAPH-PUCRS - contact: ferna.nosp@m.ndo..nosp@m.morae.nosp@m.s@pu.nosp@m.crs.b.nosp@m.r

Function Documentation

void add_task_location ( int  task_ID,
int  proc 
)

Add a task_locaiton instance

Parameters
task_IDTask ID
procLocation (address) of the task
void clear_app_tasks_locations ( int  app_ID)

Clear/remove all task of the same application

Parameters
app_IDApplication ID
int get_task_location ( int  task_ID)

Searches for the location of a given task

Parameters
task_IDThe ID of the task
Returns
The task location (processor address in XY)
void init_task_location ( )

Initializes task_location array with invalid values

int remove_task_location ( int  task_id)

Remove a task_locaton instance

Parameters
task_idTask ID of the instance to be removed
Returns
The location of the removed task, -1 if ERROR