HTB_CLASS_MODE

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

htb_class_mode - computes and returns current class mode  

SYNOPSIS

"SYNOPSIS"

enum htb_cmode htb_class_mode (struct htb_class * cl, long * diff);  

ARGUMENTS

cl
-- undescribed --
diff
-- undescribed --
 

DESCRIPTION

It computes cl's mode at time cl->t_c+diff and returns it. If mode is not HTB_CAN_SEND then cl->pq_key is updated to time difference from now to time when cl will change its state. Also it is worth to note that class mode doesn't change simply at cl->{c,}tokens == 0 but there can rather be hysteresis of 0 .. -cl->{c,}buffer range. It is meant to limit number of mode transitions per time unit. The speed gain is about 1/6.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 13:31:31 GMT, October 06, 2005