Main Page | Modules | Data Structures | File List | Data Fields | Globals

fsf_core.h File Reference

#include <time.h>
#include <pthread.h>
#include <sys/types.h>
#include <stdbool.h>
#include "fsf_configuration_parameters.h"
#include "fsf_opaque_types.h"
#include "fsf_basic_types.h"

Functions

int fsf_init ()
int fsf_strerror (int error, char *message, size_t size)
int fsf_initialize_contract (fsf_contract_parameters_t *contract)
int fsf_set_contract_basic_parameters (fsf_contract_parameters_t *contract, const struct timespec *budget_min, const struct timespec *period_max, fsf_workload_t workload)
int fsf_get_contract_basic_parameters (const fsf_contract_parameters_t *contract, struct timespec *budget_min, struct timespec *period_max, fsf_workload_t *workload)
int fsf_set_contract_timing_requirements (fsf_contract_parameters_t *contract, bool d_equals_t, const struct timespec *deadline, int budget_overrun_sig_notify, union sigval budget_overrun_sig_value, int deadline_miss_sig_notify, union sigval deadline_miss_sig_value)
int fsf_get_contract_timing_requirements (const fsf_contract_parameters_t *contract, bool *d_equals_t, struct timespec *deadline, int *budget_overrun_sig_notify, union sigval *budget_overrun_sig_value, int *deadline_miss_sig_notify, union sigval *deadline_miss_sig_value)
int fsf_create_synch_obj (fsf_synch_obj_handle_t *synch_handle)
int fsf_signal_synch_obj (fsf_synch_obj_handle_t synch_handle)
int fsf_destroy_synch_obj (fsf_synch_obj_handle_t synch_handle)
int fsf_schedule_timed_job (const struct timespec *abs_time, struct timespec *next_budget, struct timespec *next_period, bool *was_deadline_missed, bool *was_budget_overran)
int fsf_schedule_triggered_job (fsf_synch_obj_handle_t synch_handle, struct timespec *next_budget, struct timespec *next_period, bool *was_deadline_missed, bool *was_budget_overran)
int fsf_timed_schedule_triggered_job (fsf_synch_obj_handle_t synch_handle, const struct timespec *abs_timeout, bool *timed_out, struct timespec *next_budget, struct timespec *next_period, bool *was_deadline_missed, bool *was_budget_overran)
int fsf_negotiate_contract (const fsf_contract_parameters_t *contract, fsf_server_id_t *server)
int fsf_negotiate_contract_for_new_thread (const fsf_contract_parameters_t *contract, fsf_server_id_t *server, pthread_t *thread, pthread_attr_t *attr, fsf_thread_code_t thread_code, void *arg)
int fsf_negotiate_contract_for_myself (const fsf_contract_parameters_t *contract, fsf_server_id_t *server)
int fsf_bind_thread_to_server (fsf_server_id_t server, pthread_t thread)
int fsf_unbind_thread_from_server (pthread_t thread)
int fsf_get_server (pthread_t thread, fsf_server_id_t *server)
int fsf_get_contract (fsf_server_id_t server, fsf_contract_parameters_t *contract)
int fsf_cancel_contract (fsf_server_id_t server)
int fsf_renegotiate_contract (const fsf_contract_parameters_t *new_contract, fsf_server_id_t server)
int fsf_request_contract_renegotiation (const fsf_contract_parameters_t *new_contract, fsf_server_id_t server, int sig_notify, union sigval sig_value)
int fsf_get_renegotiation_status (fsf_server_id_t server, fsf_renegotiation_status_t *renegotiation_status)
int fsf_negotiate_group (const fsf_contracts_group_t *contracts_up, const fsf_servers_group_t *servers_down, fsf_servers_group_t *servers_up, bool *accepted)
bool fsf_is_admission_test_enabled ()
int fsf_get_cpu_time (fsf_server_id_t server, struct timespec *cpu_time)
int fsf_get_remaining_budget (fsf_server_id_t server, struct timespec *budget)
int fsf_get_budget_and_period (fsf_server_id_t server, struct timespec *budget, struct timespec *period)
int fsf_set_service_thread_data (const struct timespec *budget, const struct timespec *period, bool *accepted)
int fsf_get_service_thread_data (struct timespec *budget, struct timespec *period)

Generated on Tue Apr 5 17:01:24 2005 for FSF by doxygen 1.3.4