Home
last modified time | relevance | path

Searched refs:hierarchy (Results 1 – 25 of 223) sorted by relevance

123456789

/linux-6.15/security/landlock/
H A Ddomain.h133 if (!hierarchy || !hierarchy->details) in landlock_free_hierarchy_details()
136 put_pid(hierarchy->details->pid); in landlock_free_hierarchy_details()
137 kfree(hierarchy->details); in landlock_free_hierarchy_details()
156 landlock_get_hierarchy(struct landlock_hierarchy *const hierarchy) in landlock_get_hierarchy() argument
158 if (hierarchy) in landlock_get_hierarchy()
159 refcount_inc(&hierarchy->usage); in landlock_get_hierarchy()
164 while (hierarchy && refcount_dec_and_test(&hierarchy->usage)) { in landlock_put_hierarchy()
165 const struct landlock_hierarchy *const freeme = hierarchy; in landlock_put_hierarchy()
167 landlock_log_drop_domain(hierarchy); in landlock_put_hierarchy()
168 landlock_free_hierarchy_details(hierarchy); in landlock_put_hierarchy()
[all …]
H A Daudit.c118 WARN_ON_ONCE(hierarchy->id == 0); in log_domain()
122 hierarchy->id, pid_nr(hierarchy->details->pid), in log_domain()
123 hierarchy->details->uid); in log_domain()
139 struct landlock_hierarchy *hierarchy = domain->hierarchy; in get_hierarchy() local
143 return hierarchy; in get_hierarchy()
146 if (WARN_ON_ONCE(!hierarchy->parent)) in get_hierarchy()
149 hierarchy = hierarchy->parent; in get_hierarchy()
152 return hierarchy; in get_hierarchy()
171 .hierarchy = &dom2_hierarchy, in test_get_hierarchy()
480 if (WARN_ON_ONCE(!hierarchy)) in landlock_log_drop_domain()
[all …]
H A Ddomain.c119 int landlock_init_hierarchy_log(struct landlock_hierarchy *const hierarchy) in landlock_init_hierarchy_log() argument
127 hierarchy->details = details; in landlock_init_hierarchy_log()
128 hierarchy->id = landlock_get_id_range(1); in landlock_init_hierarchy_log()
129 hierarchy->log_status = LANDLOCK_LOG_PENDING; in landlock_init_hierarchy_log()
130 hierarchy->log_same_exec = true; in landlock_init_hierarchy_log()
131 hierarchy->log_new_exec = false; in landlock_init_hierarchy_log()
132 atomic64_set(&hierarchy->num_denials, 0); in landlock_init_hierarchy_log()
H A Druleset.c364 if (WARN_ON_ONCE(!dst || !dst->hierarchy)) in merge_ruleset()
462 if (WARN_ON_ONCE(!parent->hierarchy)) { in inherit_ruleset()
466 landlock_get_hierarchy(parent->hierarchy); in inherit_ruleset()
467 child->hierarchy->parent = parent->hierarchy; in inherit_ruleset()
490 landlock_put_hierarchy(ruleset->hierarchy); in free_ruleset()
555 new_dom->hierarchy = in landlock_merge_ruleset()
556 kzalloc(sizeof(*new_dom->hierarchy), GFP_KERNEL_ACCOUNT); in landlock_merge_ruleset()
557 if (!new_dom->hierarchy) in landlock_merge_ruleset()
560 refcount_set(&new_dom->hierarchy->usage, 1); in landlock_merge_ruleset()
572 err = landlock_init_hierarchy_log(new_dom->hierarchy); in landlock_merge_ruleset()
H A Daudit.h56 void landlock_log_drop_domain(const struct landlock_hierarchy *const hierarchy);
64 landlock_log_drop_domain(const struct landlock_hierarchy *const hierarchy) in landlock_log_drop_domain() argument
H A Dtask.c53 for (walker = child->hierarchy; walker; walker = walker->parent) { in domain_scope_le()
54 if (walker == parent->hierarchy) in domain_scope_le()
191 client_walker = client->hierarchy; in domain_is_scoped()
199 server_walker = server ? server->hierarchy : NULL; in domain_is_scoped()
/linux-6.15/net/shaper/
H A Dshaper.c257 if (!hierarchy || xa_get_mark(&hierarchy->shapers, index, in net_shaper_lookup()
272 if (hierarchy) in net_shaper_hierarchy_setup()
273 return hierarchy; in net_shaper_hierarchy_setup()
275 hierarchy = kmalloc(sizeof(*hierarchy), GFP_KERNEL); in net_shaper_hierarchy_setup()
276 if (!hierarchy) in net_shaper_hierarchy_setup()
288 return hierarchy; in net_shaper_hierarchy_setup()
303 if (!hierarchy) in net_shaper_pre_insert()
395 if (!hierarchy) in net_shaper_rollback()
786 if (!hierarchy) in net_shaper_nl_get_dumpit()
1360 if (!hierarchy) in net_shaper_flush()
[all …]
/linux-6.15/drivers/powercap/
H A Ddtpm.c429 hierarchy->name, ret); in dtpm_setup_virtual()
443 np = of_find_node_by_path(hierarchy->name); in dtpm_setup_dt()
484 for (i = 0; hierarchy[i].name; i++) { in dtpm_for_each_child()
486 if (hierarchy[i].parent != it) in dtpm_for_each_child()
489 dtpm = dtpm_node_callback[hierarchy[i].type](&hierarchy[i], parent); in dtpm_for_each_child()
511 hierarchy[i].name); in dtpm_for_each_child()
515 ret = dtpm_for_each_child(hierarchy, &hierarchy[i], dtpm); in dtpm_for_each_child()
552 const struct dtpm_node *hierarchy; in dtpm_create_hierarchy() local
582 hierarchy = match->data; in dtpm_create_hierarchy()
583 if (!hierarchy) { in dtpm_create_hierarchy()
[all …]
/linux-6.15/tools/testing/selftests/landlock/
H A Dptrace_test.c89 FIXTURE(hierarchy) {}; in FIXTURE() argument
92 FIXTURE_VARIANT(hierarchy) in FIXTURE_VARIANT() argument
116 FIXTURE_VARIANT_ADD(hierarchy, allow_without_domain) { in FIXTURE_VARIANT_ADD() argument
133 FIXTURE_VARIANT_ADD(hierarchy, allow_with_one_domain) { in FIXTURE_VARIANT_ADD() argument
149 FIXTURE_VARIANT_ADD(hierarchy, deny_with_parent_domain) { in FIXTURE_VARIANT_ADD() argument
166 FIXTURE_VARIANT_ADD(hierarchy, deny_with_sibling_domain) { in FIXTURE_VARIANT_ADD() argument
183 FIXTURE_VARIANT_ADD(hierarchy, allow_sibling_domain) { in FIXTURE_VARIANT_ADD() argument
239 FIXTURE_VARIANT_ADD(hierarchy, deny_with_forked_domain) { in FIXTURE_VARIANT_ADD() argument
246 FIXTURE_SETUP(hierarchy) in FIXTURE_SETUP() argument
250 FIXTURE_TEARDOWN(hierarchy) in FIXTURE_TEARDOWN() argument
[all …]
/linux-6.15/drivers/media/dvb-frontends/
H A Das102_fe.c125 switch (c->hierarchy) { in as102_fe_set_frontend()
127 tune_args.hierarchy = HIER_NONE; in as102_fe_set_frontend()
130 tune_args.hierarchy = HIER_ALPHA_1; in as102_fe_set_frontend()
133 tune_args.hierarchy = HIER_ALPHA_2; in as102_fe_set_frontend()
136 tune_args.hierarchy = HIER_ALPHA_4; in as102_fe_set_frontend()
169 tune_args.hierarchy, in as102_fe_set_frontend()
210 switch (tps.hierarchy) { in as102_fe_get_frontend()
212 c->hierarchy = HIERARCHY_NONE; in as102_fe_get_frontend()
215 c->hierarchy = HIERARCHY_1; in as102_fe_get_frontend()
218 c->hierarchy = HIERARCHY_2; in as102_fe_get_frontend()
[all …]
H A Dl64781.c157 if (p->hierarchy != HIERARCHY_NONE && in apply_frontend_param()
175 if ((int)p->hierarchy < HIERARCHY_NONE || in apply_frontend_param()
176 p->hierarchy > HIERARCHY_4) in apply_frontend_param()
200 if (p->hierarchy != HIERARCHY_NONE) in apply_frontend_param()
203 val0x06 = (p->hierarchy << 2) | p->modulation; in apply_frontend_param()
323 p->hierarchy = HIERARCHY_NONE; in get_frontend()
326 p->hierarchy = HIERARCHY_1; in get_frontend()
329 p->hierarchy = HIERARCHY_2; in get_frontend()
332 p->hierarchy = HIERARCHY_4; in get_frontend()
H A Dmt352.c201 if (op->hierarchy == HIERARCHY_AUTO || in mt352_set_parameters()
202 op->hierarchy == HIERARCHY_NONE) in mt352_set_parameters()
251 switch (op->hierarchy) { in mt352_set_parameters()
373 op->hierarchy = HIERARCHY_NONE; in mt352_get_parameters()
376 op->hierarchy = HIERARCHY_1; in mt352_get_parameters()
379 op->hierarchy = HIERARCHY_2; in mt352_get_parameters()
382 op->hierarchy = HIERARCHY_4; in mt352_get_parameters()
385 op->hierarchy = HIERARCHY_AUTO; in mt352_get_parameters()
H A Ddib3000mb.c224 switch (c->hierarchy) { in dib3000mb_set_frontend()
247 if (c->hierarchy == HIERARCHY_NONE) { in dib3000mb_set_frontend()
251 } else if (c->hierarchy != HIERARCHY_AUTO) { in dib3000mb_set_frontend()
328 c->hierarchy == HIERARCHY_AUTO || in dib3000mb_set_frontend()
504 c->hierarchy = HIERARCHY_NONE; in dib3000mb_get_frontend()
508 c->hierarchy = HIERARCHY_1; in dib3000mb_get_frontend()
512 c->hierarchy = HIERARCHY_2; in dib3000mb_get_frontend()
516 c->hierarchy = HIERARCHY_4; in dib3000mb_get_frontend()
529 c->hierarchy = HIERARCHY_NONE; in dib3000mb_get_frontend()
H A Dzl10353.c258 if (c->hierarchy == HIERARCHY_AUTO || in zl10353_set_parameters()
259 c->hierarchy == HIERARCHY_NONE) in zl10353_set_parameters()
308 switch (c->hierarchy) { in zl10353_set_parameters()
427 c->hierarchy = HIERARCHY_NONE; in zl10353_get_parameters()
430 c->hierarchy = HIERARCHY_1; in zl10353_get_parameters()
433 c->hierarchy = HIERARCHY_2; in zl10353_get_parameters()
436 c->hierarchy = HIERARCHY_4; in zl10353_get_parameters()
439 c->hierarchy = HIERARCHY_AUTO; in zl10353_get_parameters()
H A Dcx22702.c159 p->hierarchy = HIERARCHY_NONE; in cx22702_get_tps()
162 p->hierarchy = HIERARCHY_1; in cx22702_get_tps()
165 p->hierarchy = HIERARCHY_2; in cx22702_get_tps()
168 p->hierarchy = HIERARCHY_4; in cx22702_get_tps()
286 if ((p->hierarchy == HIERARCHY_AUTO) || in cx22702_set_tps()
321 switch (p->hierarchy) { /* mask 0x07 */ in cx22702_set_tps()
H A Dcx22700.c143 if ((int)p->hierarchy < HIERARCHY_NONE || in cx22700_set_tps()
144 p->hierarchy > HIERARCHY_4) in cx22700_set_tps()
156 val |= p->hierarchy - HIERARCHY_NONE; in cx22700_set_tps()
196 p->hierarchy = HIERARCHY_AUTO; in cx22700_get_tps()
198 p->hierarchy = HIERARCHY_NONE + (val & 0x7); in cx22700_get_tps()
H A Drtl2830.c326 c->hierarchy = HIERARCHY_NONE; in rtl2830_get_frontend()
329 c->hierarchy = HIERARCHY_1; in rtl2830_get_frontend()
332 c->hierarchy = HIERARCHY_2; in rtl2830_get_frontend()
335 c->hierarchy = HIERARCHY_4; in rtl2830_get_frontend()
431 unsigned int hierarchy, constellation; in rtl2830_read_status() local
448 hierarchy = (u8tmp >> 4) & 0x07; /* [6:4] */ in rtl2830_read_status()
449 if (hierarchy > HIERARCHY_NUM - 1) in rtl2830_read_status()
458 stmp = (constant[constellation][hierarchy] - in rtl2830_read_status()
H A Das102_fe_types.h101 uint8_t hierarchy; member
122 uint8_t hierarchy; member
H A Dcxd2820r_t.c179 c->hierarchy = HIERARCHY_NONE; in cxd2820r_get_frontend_t()
182 c->hierarchy = HIERARCHY_1; in cxd2820r_get_frontend_t()
185 c->hierarchy = HIERARCHY_2; in cxd2820r_get_frontend_t()
188 c->hierarchy = HIERARCHY_4; in cxd2820r_get_frontend_t()
/linux-6.15/Documentation/admin-guide/cgroup-v1/
H A Dcgroups.rst60 A *hierarchy* is a set of cgroups arranged in a tree, such that
63 state attached to each cgroup in the hierarchy. Each hierarchy has
110 separate hierarchy; at the other extreme, all subsystems
111 would be attached to the same hierarchy.
211 mount a hierarchy containing all registered subsystems.
216 hierarchy, the mount will fail with -EBUSY. Otherwise, a new hierarchy
227 child cgroups then the hierarchy will be deactivated.
302 a cgroup hierarchy's release_agent path is empty.
386 To Specify a hierarchy's release_agent::
572 propagation along the hierarchy. See the comment on
[all …]
H A Dpids.rst8 The process number controller is used to allow a cgroup hierarchy to stop any
13 preventable in the scope of a cgroup hierarchy by allowing resource limiting of
32 limit in the hierarchy is followed).
50 Then we create a hierarchy, set limits and attach processes to it::
69 not be able to overcome the most stringent limit in the hierarchy (in this case,
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Drl.c37 bool mlx5_qos_tsar_type_supported(struct mlx5_core_dev *dev, int type, u8 hierarchy) in mlx5_qos_tsar_type_supported() argument
41 switch (hierarchy) { in mlx5_qos_tsar_type_supported()
66 bool mlx5_qos_element_type_supported(struct mlx5_core_dev *dev, int type, u8 hierarchy) in mlx5_qos_element_type_supported() argument
70 switch (hierarchy) { in mlx5_qos_element_type_supported()
100 int mlx5_create_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy, in mlx5_create_scheduling_element_cmd() argument
113 hierarchy); in mlx5_create_scheduling_element_cmd()
125 int mlx5_modify_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy, in mlx5_modify_scheduling_element_cmd() argument
141 hierarchy); in mlx5_modify_scheduling_element_cmd()
147 int mlx5_destroy_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy, in mlx5_destroy_scheduling_element_cmd() argument
157 hierarchy); in mlx5_destroy_scheduling_element_cmd()
/linux-6.15/Documentation/core-api/irq/
H A Dirq-domain.rst232 interrupt controller and those irq_domains are organized into hierarchy.
233 When building irq_domain hierarchy, the irq_domain near to the device is
245 There are four major interfaces to use hierarchy irq_domain:
256 Following changes are needed to support hierarchy irq_domain:
259 maintain irq_domain hierarchy information.
261 build hierarchy irq_data to match hierarchy irq_domains. The irq_data
266 With support of hierarchy irq_domain and hierarchy irq_data ready, an
269 IRQ. Now we could go one step further to support stacked(hierarchy)
271 the hierarchy. A child irq_chip may implement a required action by
279 For an interrupt controller driver to support hierarchy irq_domain, it
[all …]
/linux-6.15/drivers/media/usb/dvb-usb-v2/
H A Dmxl111sf-demod.c171 enum fe_hierarchy *hierarchy) in mxl1x1sf_demod_get_tps_hierarchy() argument
181 *hierarchy = HIERARCHY_NONE; in mxl1x1sf_demod_get_tps_hierarchy()
184 *hierarchy = HIERARCHY_1; in mxl1x1sf_demod_get_tps_hierarchy()
187 *hierarchy = HIERARCHY_2; in mxl1x1sf_demod_get_tps_hierarchy()
190 *hierarchy = HIERARCHY_4; in mxl1x1sf_demod_get_tps_hierarchy()
523 &p->hierarchy); in mxl111sf_demod_get_frontend()
/linux-6.15/drivers/soc/rockchip/
H A DKconfig26 tristate "Rockchip DTPM hierarchy"
29 Describe the hierarchy for the Dynamic Thermal Power Management tree

123456789