libnl 3.7.0
|
Priority Band Translations | |
char * | rtnl_prio2str (int prio, char *buf, size_t size) |
Convert priority to character string. More... | |
int | rtnl_str2prio (const char *name) |
Convert character string to priority. More... | |
Attribute Modification | |
void | rtnl_qdisc_prio_set_bands (struct rtnl_qdisc *qdisc, int bands) |
Set number of bands of PRIO qdisc. More... | |
int | rtnl_qdisc_prio_get_bands (struct rtnl_qdisc *qdisc) |
Get number of bands of PRIO qdisc. More... | |
int | rtnl_qdisc_prio_set_priomap (struct rtnl_qdisc *qdisc, uint8_t priomap[], int len) |
Set priomap of the PRIO qdisc. More... | |
uint8_t * | rtnl_qdisc_prio_get_priomap (struct rtnl_qdisc *qdisc) |
Get priomap of a PRIO qdisc. More... | |
void rtnl_qdisc_prio_set_bands | ( | struct rtnl_qdisc * | qdisc, |
int | bands | ||
) |
Set number of bands of PRIO qdisc.
qdisc | PRIO qdisc to be modified. |
bands | New number of bands. |
Definition at line 123 of file prio.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_qdisc_prio_get_bands | ( | struct rtnl_qdisc * | qdisc | ) |
Get number of bands of PRIO qdisc.
qdisc | PRIO qdisc. |
Definition at line 139 of file prio.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_qdisc_prio_set_priomap | ( | struct rtnl_qdisc * | qdisc, |
uint8_t | priomap[], | ||
int | len | ||
) |
Set priomap of the PRIO qdisc.
qdisc | PRIO qdisc to be modified. |
priomap | New priority mapping. |
len | Length of priomap (# of elements). |
Definition at line 159 of file prio.c.
References rtnl_tc_data(), and TC_CAST.
uint8_t * rtnl_qdisc_prio_get_priomap | ( | struct rtnl_qdisc * | qdisc | ) |
Get priomap of a PRIO qdisc.
qdisc | PRIO qdisc. |
Definition at line 191 of file prio.c.
References rtnl_tc_data(), and TC_CAST.
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 | ) |