|
libnl
1.1.4
|
Attribute Modification | |
| int | 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... | |
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... | |
Default Values | |
| #define | QDISC_PRIO_DEFAULT_BANDS 3 |
| Default number of bands. | |
| #define | QDISC_PRIO_DEFAULT_PRIOMAP { 1, 2, 2, 2, 1, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 } |
| Default priority mapping. | |
| int rtnl_qdisc_prio_set_bands | ( | struct rtnl_qdisc * | qdisc, |
| int | bands | ||
| ) |
| qdisc | PRIO qdisc to be modified. |
| bands | New number of bands. |
| int rtnl_qdisc_prio_get_bands | ( | struct rtnl_qdisc * | qdisc | ) |
| qdisc | PRIO 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 | ) |
| qdisc | PRIO qdisc. |
| char* rtnl_prio2str | ( | int | prio, |
| char * | buf, | ||
| size_t | size | ||
| ) |
| 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 | ) |
| name | Name of priority. |
Converts the provided character string specifying a priority to the corresponding numeric value.
1.8.5