HeMPS  8.0
Classes | Functions | Variables
reclustering.h File Reference
#include "../../include/kernel_pkg.h"
#include "applications.h"
#include "packet.h"
Include dependency graph for reclustering.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Reclustering
 

Functions

int is_reclustering_NOT_active ()
 
void reclustering_setup (int)
 
void handle_reclustering (ServiceHeader *)
 
int reclustering_next_task (Application *)
 

Variables

unsigned int clusterID
 Cluster ID index of array cluster_info - clusterID is the only extern global variable in in all software. More...
 

Detailed Description

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

This module defines function relative to reclustering The Reclustering structure is defined, this structure contains information relative to the manager controls the reclustering process.

Function Documentation

void handle_reclustering ( ServiceHeader p)

handle reclustering packets incoming from kernel master. The kernel master kwnows that the packet is a reclustering related packet and calls this function passing the ServiceHeader pointer.

Parameters
pServiceHeader pointer
int is_reclustering_NOT_active ( )
inline

Test if the reclustering is not active

Returns
1 if is not active, 0 if is active
int reclustering_next_task ( Application app)

Searches for first application task not mapped yet, firing the reclustering

Parameters
appApplication pointer
Returns
1 - if the application have all its task mapped, 0 - if the reclustering was initiated
void reclustering_setup ( int  c_id)

Setup a reclustering, called by kernel and configure the cluster ID and initializes some variables

Parameters
c_idCurrent cluster ID

Variable Documentation

unsigned int clusterID

Cluster ID index of array cluster_info - clusterID is the only extern global variable in in all software.

Cluster ID index of array cluster_info - clusterID is the only extern global variable in in all software.