QoS Supervisor kernel-interface. More...
#include "qsup_gw.h"
#include "qres_gw.h"
#include <linux/aquosa/qos_debug.h>
#include <linux/aquosa/qos_types.h>
Go to the source code of this file.
Data Structures | |
struct | qsup_level_rule_t |
Level rule: applies to all servers within level. More... | |
struct | qsup_group_rule_t |
Group rule: applies to all users in the group. More... | |
struct | qsup_user_rule_t |
User rule: applies to one user only. More... | |
struct | qsup_server_t |
QoS Sup related data for each server. More... | |
Typedefs | |
typedef struct qsup_level_rule_t | qsup_level_rule_t |
Level rule: applies to all servers within level. | |
typedef struct qsup_group_rule_t | qsup_group_rule_t |
Group rule: applies to all users in the group. | |
typedef struct qsup_user_rule_t | qsup_user_rule_t |
User rule: applies to one user only. | |
typedef struct qsup_server_t | qsup_server_t |
QoS Sup related data for each server. | |
Functions | |
qos_rv | qsup_init (void) |
Initialize the QSUP subsystem just after module load into the kernel. | |
qos_rv | qsup_cleanup (void) |
Cleanup the QSUP subsystem before unloading the module from kernel. | |
qos_rv | qsup_add_level_rule (int level, qos_bw_t max_bw) |
Add a level rule to the QSUP. | |
qos_rv | qsup_add_group_constraints (int gid, qsup_constraints_t *constr) |
Add a group rule to the QSUP. | |
qos_rv | qsup_add_user_constraints (int uid, qsup_constraints_t *constr) |
Add a user rule to the QSUP. | |
qos_rv | qsup_create_server (qsup_server_t **p_srv, int uid, int gid, qres_params_t *param) |
Create a new qsup_server_t structure. | |
qos_rv | qsup_init_server (qsup_server_t *srv, int uid, int gid, qres_params_t *param) |
Initialize a new qsup_server_t structure. | |
qos_rv | qsup_destroy_server (qsup_server_t *srv) |
Destroy a qsup_server_t and free associated resources. | |
qos_rv | qsup_cleanup_server (qsup_server_t *srv) |
qos_rv | qsup_set_required_bw (qsup_server_t *srv, qos_bw_t server_req) |
Sets the required bandwidth for the specified server. | |
qos_bw_t | qsup_get_required_bw (qsup_server_t *srv) |
Gets the required bandwidth for the specified server. | |
qos_bw_t | qsup_get_guaranteed_bw (qsup_server_t *srv) |
Gets the minimum granted bandwidth for the specified server. | |
qos_bw_t | qsup_get_approved_bw (qsup_server_t *srv) |
Returns the bandwidth approved for the specified server. | |
qos_bw_t | qsup_get_max_gua_bw (int uid, int gid) |
Returns the maximum guaranteed bandwidth for the specified user. | |
qos_rv | qsup_get_avail_gua_bw (int uid, int gid, qos_bw_t *p_avail_bw) |
Returns in *p_avail_bw the available guaranteed bw for the specified user. | |
qos_rv | qsup_get_avail_bw (int uid, int gid, qos_bw_t *p_avail_bw) |
Returns in *p_avail_bw the available bw for the specified user. | |
void | qsup_dump (void) |
Dumps into the log system the QSUP server complete state. | |
qsup_constraints_t * | qsup_find_constr (int uid, int gid) |
Find the constraints in force for the supplied uid/gid pair. | |
qos_rv | qsup_reserve_spare (qos_bw_t spare_bw) |
Set the spare bandwidth for admission control purposes. |
QoS Supervisor kernel-interface.
Definition in file qsup.h.