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

28.6.1 pfq_sched_add_child: add a child to a root or intermediate node

 

SYNOPSIS

#include <oskit/hpfq.h>

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

DESCRIPTION

This method attaches a child pfq_sched object to a parent and assigns it an initial share of the parent. The share can be later adjusted with the set_share method if needed.

PARAMETERS

sched
The parent pfq_sched object.
child
The child being added.
share
The initial share value of the child. See Section 28.3 for details on share values.

RETURNS

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



University of Utah Flux Research Group