qmgr_gw_lib.h File Reference

QoS Manager system call (or setsched) interface (library-side include). More...

#include <linux/aquosa/qmgr_gw.h>
#include <sys/ioctl.h>
#include <errno.h>

Go to the source code of this file.

Defines

#define IOCTL_OP_START   _IOR(QMGR_MAJOR_NUM, QMGR_OP_START, qmgr_params_t)
#define IOCTL_OP_STOP   _IO(QMGR_MAJOR_NUM, QMGR_OP_STOP)
#define IOCTL_OP_PAUSE   _IO(QMGR_MAJOR_NUM, QMGR_OP_PAUSE)
#define IOCTL_OP_CONTINUE   _IO(QMGR_MAJOR_NUM, QMGR_OP_CONTINUE)
#define IOCTL_OP_SYNC   _IO(QMGR_MAJOR_NUM, QMGR_OP_SYNC)
#define IOCTL_OP_END_CYCLE   _IOW(QMGR_MAJOR_NUM, QMGR_OP_END_CYCLE, qres_time_t)
#define IOCTL_OP_END_CYCLE_SKIP   _IOW(QMGR_MAJOR_NUM, QMGR_OP_END_CYCLE_SKIP, qres_time_t)
#define IOCTL_OP_GET_EXEC_TIME   _IOW(QMGR_MAJOR_NUM, QMGR_OP_GET_EXEC_TIME, qres_time_t)
#define IOCTL_OP_GET_SCHED_ERR   _IOW(QMGR_MAJOR_NUM, QMGR_OP_GET_SCHED_ERR, qres_time_t)

Functions

static qos_rv qmgr_start_gw (qmgr_params_t *params)
 Gateway to kernel-space functions.
static qos_rv qmgr_stop_gw ()
static qos_rv qmgr_end_cycle_gw (qres_time_t *p_sched_error)
static qos_rv qmgr_end_cycle_skip_gw (qres_time_t *p_sched_error)
static qos_rv qmgr_pause_gw ()
static qos_rv qmgr_continue_gw ()
static qos_rv qmgr_sync_gw ()
static qos_rv qmgr_get_exec_time_gw (qres_time_t *exec_time)

Variables

int qmgr_fd
 File descriptor for accessing the QMGR device.

Detailed Description

QoS Manager system call (or setsched) interface (library-side include).

This file defines a set of functions for sending requests to the QoS Manager kernel module that is running in kernel space. Such functions are also referred to as the user-space to kernel-space gateway interface.

At the moment, each function is mapped to an IOCTL request (to the device defined in qmgr_gw.h) with the second argument ('request') equal to one of the IOCTL_OP_ codes defined below, and with the third argument depending on the specific operation. As the gateway functionality is minimal, all functions are defined as static inline so to allow maximum optimization by the compiler.

Definition in file qmgr_gw_lib.h.

Generated on Mon Aug 2 22:38:48 2010 for qosmgr by  doxygen 1.6.3