Home
last modified time | relevance | path

Searched refs:tclass (Results 1 – 10 of 10) sorted by relevance

/systemd-251/src/network/tc/
Dtclass.c28 _cleanup_(tclass_freep) TClass *tclass = NULL; in tclass_new()
32 tclass = new(TClass, 1); in tclass_new()
33 if (!tclass) in tclass_new()
36 *tclass = (TClass) { in tclass_new()
42 tclass = malloc0(tclass_vtable[kind]->object_size); in tclass_new()
43 if (!tclass) in tclass_new()
46 tclass->parent = TC_H_ROOT; in tclass_new()
47 tclass->kind = kind; in tclass_new()
49 if (TCLASS_VTABLE(tclass)->init) { in tclass_new()
50 r = TCLASS_VTABLE(tclass)->init(tclass); in tclass_new()
[all …]
Dhtb.c173 static int hierarchy_token_bucket_class_fill_message(Link *link, TClass *tclass, sd_netlink_message… in hierarchy_token_bucket_class_fill_message() argument
179 assert(tclass); in hierarchy_token_bucket_class_fill_message()
182 assert_se(htb = TCLASS_TO_HTB(tclass)); in hierarchy_token_bucket_class_fill_message()
256 _cleanup_(tclass_free_or_set_invalidp) TClass *tclass = NULL; in config_parse_hierarchy_token_bucket_class_u32()
267 r = tclass_new_static(TCLASS_KIND_HTB, network, filename, section_line, &tclass); in config_parse_hierarchy_token_bucket_class_u32()
276 htb = TCLASS_TO_HTB(tclass); in config_parse_hierarchy_token_bucket_class_u32()
280 tclass = NULL; in config_parse_hierarchy_token_bucket_class_u32()
293 tclass = NULL; in config_parse_hierarchy_token_bucket_class_u32()
310 _cleanup_(tclass_free_or_set_invalidp) TClass *tclass = NULL; in config_parse_hierarchy_token_bucket_class_size()
321 r = tclass_new_static(TCLASS_KIND_HTB, network, filename, section_line, &tclass); in config_parse_hierarchy_token_bucket_class_size()
[all …]
Dqfq.c20 static int quick_fair_queueing_class_fill_message(Link *link, TClass *tclass, sd_netlink_message *r… in quick_fair_queueing_class_fill_message() argument
25 assert(tclass); in quick_fair_queueing_class_fill_message()
28 assert_se(qfq = TCLASS_TO_QFQ(tclass)); in quick_fair_queueing_class_fill_message()
65 _cleanup_(tclass_free_or_set_invalidp) TClass *tclass = NULL; in config_parse_quick_fair_queueing_weight()
76 r = tclass_new_static(TCLASS_KIND_QFQ, network, filename, section_line, &tclass); in config_parse_quick_fair_queueing_weight()
85 qfq = TCLASS_TO_QFQ(tclass); in config_parse_quick_fair_queueing_weight()
89 TAKE_PTR(tclass); in config_parse_quick_fair_queueing_weight()
109 TAKE_PTR(tclass); in config_parse_quick_fair_queueing_weight()
126 _cleanup_(tclass_free_or_set_invalidp) TClass *tclass = NULL; in config_parse_quick_fair_queueing_max_packet()
137 r = tclass_new_static(TCLASS_KIND_QFQ, network, filename, section_line, &tclass); in config_parse_quick_fair_queueing_max_packet()
[all …]
Ddrr.c18 static int drr_class_fill_message(Link *link, TClass *tclass, sd_netlink_message *req) { in drr_class_fill_message() argument
23 assert(tclass); in drr_class_fill_message()
26 assert_se(drr = TCLASS_TO_DRR(tclass)); in drr_class_fill_message()
57 _cleanup_(tclass_free_or_set_invalidp) TClass *tclass = NULL; in config_parse_drr_size()
68 r = tclass_new_static(TCLASS_KIND_DRR, network, filename, section_line, &tclass); in config_parse_drr_size()
77 drr = TCLASS_TO_DRR(tclass); in config_parse_drr_size()
82 TAKE_PTR(tclass); in config_parse_drr_size()
101 TAKE_PTR(tclass); in config_parse_drr_size()
Dtclass.h38 int (*init)(TClass *tclass);
39 int (*fill_message)(Link *link, TClass *tclass, sd_netlink_message *m);
40 int (*verify)(TClass *tclass);
56 DEFINE_NETWORK_CONFIG_STATE_FUNCTIONS(TClass, tclass);
58 TClass* tclass_free(TClass *tclass);
63 int link_request_tclass(Link *link, TClass *tclass);
Dtc.c11 TClass *tclass; in link_request_traffic_control() local
26 HASHMAP_FOREACH(tclass, link->network->tclasses_by_section) { in link_request_traffic_control()
27 r = link_request_tclass(link, tclass); in link_request_traffic_control()
/systemd-251/src/core/
Dselinux-access.c188 const char *tclass, *scon; in mac_selinux_access_check_internal() local
245 tclass = "service"; in mac_selinux_access_check_internal()
260 tclass = "system"; in mac_selinux_access_check_internal()
273 r = selinux_check_access(scon, fcon, tclass, permission, &audit_info); in mac_selinux_access_check_internal()
283 …scon, fcon, tclass, permission, enforce ? "enforcing" : "permissive", function, strna(path), isemp… in mac_selinux_access_check_internal()
/systemd-251/src/shared/linux/
Dethtool.h952 __u8 tclass; member
968 __u8 tclass; member
983 __u8 tclass; member
/systemd-251/src/network/
Dmeson.build190 'tc/tclass.c',
191 'tc/tclass.h',
Dnetworkd-network-gperf.gperf36 #include "tclass.h"