Functions

/home/sindre/vegard-files_modded_by_sindre/linux/hwos_target/hwos_daemon/hwos_placer.c File Reference

[Hardware OS Placer] Top level module for placement on FPGA. More...

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <hlog.h>
#include <hstructures.h>
#include <hplacer.h>
#include <unistd.h>
#include <pthread.h>
#include "hwos_shared.h"
#include "hwos_placer.h"
#include "hwos_message_server.h"
#include "hwos_scheduler.h"

Functions

int hwos_placer_notify (enum hwosp_event event)
void * hwos_placer_main ()

Detailed Description

[Hardware OS Placer] Top level module for placement on FPGA.

The responsibilities of this module is as follows:

Original author (2010): Sindre Hansen


Function Documentation

void* hwos_placer_main (  ) 

Sleep a bit to initialize scheduler.

Service loop for placer.

Replace the current process with the new process if they're not the same.

Ask scheduler to find a new process to place.

Wait for one timeslice.

Handle an incoming event.

int hwos_placer_notify ( enum hwosp_event  event  ) 

Lock to get a stable event value.

If incoming_event not reset: Wait until it is reset/handled.

Set the event.

 All Data Structures Files Functions Variables Enumerations Enumerator Defines