Implements the function to manage a insertion, accessing, and remotion of an applications structure This modules is only used by manager kernel.
More...
#include "applications.h"
#include "utils.h"
|
Application | applications [MAX_CLUSTER_APP] |
| Store the applications informations, is equivalent to a attribute in OO paradigm.
|
|
Implements the function to manage a insertion, accessing, and remotion of an applications structure This modules is only used by manager kernel.
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
Receives and app ID and return the Application pointer for the required app ID. If not found, the kernel entering in a error situation
- Parameters
-
app_id | ID of the application |
- Returns
- Pointer for Application
Get the oldest application waiting reclustering
- Returns
- Selected Application pointer
Searches for a Task pointer into an Application instance. If not found, the kernel entering in a error situation
- Parameters
-
- Returns
- Task pointer
int set_task_allocated |
( |
Application * |
app, |
|
|
int |
task_id |
|
) |
| |
Set a task status as allocated and verifies the number of allocated task for the application
- Parameters
-
app | Application pointer of the task |
task_id | ID of the allocated task |
- Returns
- The number of allocated task for the application
void set_task_migrated |
( |
int |
task_id, |
|
|
int |
new_proc |
|
) |
| |
Set a task status as migrated
- Parameters
-
app | Application pointer of the task |
task_id | ID of the migrated task |
void set_task_migrating |
( |
int |
task_id | ) |
|
Set a task status as migrating
- Parameters
-
app | Application pointer of the task |
task_id | ID of the migrating task |
void set_task_terminated |
( |
Application * |
app, |
|
|
int |
task_id |
|
) |
| |
Set a task status as terminated
- Parameters
-
app | Application pointer of the task |
task_id | ID of the terminated task |