Priority Band Translations | |
| |
char * | rtnl_prio2str (int prio, char *buf, size_t size) |
Convert priority to character string. | |
int | rtnl_str2prio (const char *name) |
Convert character string to priority. | |
Attribute Modification | |
| |
void | rtnl_qdisc_prio_set_bands (struct rtnl_qdisc *qdisc, int bands) |
Set number of bands of PRIO qdisc. | |
int | rtnl_qdisc_prio_get_bands (struct rtnl_qdisc *qdisc) |
Get number of bands of PRIO qdisc. | |
int | rtnl_qdisc_prio_set_priomap (struct rtnl_qdisc *qdisc, uint8_t priomap[], int len) |
Set priomap of the PRIO qdisc. | |
uint8_t * | rtnl_qdisc_prio_get_priomap (struct rtnl_qdisc *qdisc) |
Get priomap of a PRIO qdisc. |
// Specify the maximal number of bands to be used for this PRIO qdisc. rtnl_qdisc_prio_set_bands(qdisc, QDISC_PRIO_DEFAULT_BANDS); // Provide a map assigning each priority to a band number. uint8_t map[] = QDISC_PRIO_DEFAULT_PRIOMAP; rtnl_qdisc_prio_set_priomap(qdisc, map, sizeof(map));
void rtnl_qdisc_prio_set_bands | ( | struct rtnl_qdisc * | qdisc, | |
int | bands | |||
) |
int rtnl_qdisc_prio_get_bands | ( | struct rtnl_qdisc * | qdisc | ) |
int rtnl_qdisc_prio_set_priomap | ( | struct rtnl_qdisc * | qdisc, | |
uint8_t | priomap[], | |||
int | len | |||
) |
uint8_t* rtnl_qdisc_prio_get_priomap | ( | struct rtnl_qdisc * | qdisc | ) |
char* rtnl_prio2str | ( | int | prio, | |
char * | buf, | |||
size_t | size | |||
) |
Convert priority to character string.
prio | Priority. | |
buf | Destination buffer | |
size | Size of destination buffer. |
Converts a priority to a character string and stores the result in the specified destination buffer.
int rtnl_str2prio | ( | const char * | name | ) |