next up previous contents index
Next: 28.7 pfq_leaf: Interface to Up: 28.6 pfq_sched: Interface to Previous: 28.6.2 pfq_sched_remove_child: remove a

28.6.3 pfq_sched_set_share: allocate a percentage of the parent's bandwidth

 

SYNOPSIS

#include <oskit/hpfq.h>

oskit_error_t pfq_sched_set_share(pfq_sched_t *sched, pfq_sched_t *child, float share);

DESCRIPTION

This method adjusts the share value of a pfq_sched object. See Section 28.3 for details on share values.

PARAMETERS

sched
The parent pfq_sched object.
child
The child getting their share adjusted.
share
The new share value of the child.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group