Home
last modified time | relevance | path

Searched full:hierarchy (Results 1 – 25 of 432) sorted by relevance

12345678910>>...18

/linux/security/landlock/
H A Ddomain.h73 * struct landlock_hierarchy - Node in a domain hierarchy
128 int landlock_init_hierarchy_log(struct landlock_hierarchy *const hierarchy);
131 landlock_free_hierarchy_details(struct landlock_hierarchy *const hierarchy) in landlock_free_hierarchy_details() argument
133 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()
143 landlock_init_hierarchy_log(struct landlock_hierarchy *const hierarchy) in landlock_init_hierarchy_log() argument
149 landlock_free_hierarchy_details(struct landlock_hierarchy *const hierarchy) in landlock_free_hierarchy_details() argument
156 landlock_get_hierarchy(struct landlock_hierarchy *const hierarchy) in landlock_get_hierarchy() argument
158 if (hierarchy) in landlock_get_hierarchy()
[all …]
H A Daudit.c104 static void log_domain(struct landlock_hierarchy *const hierarchy) in log_domain() argument
109 if (READ_ONCE(hierarchy->log_status) == LANDLOCK_LOG_RECORDED) in log_domain()
118 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()
124 audit_log_untrustedstring(ab, hierarchy->details->exe_path); in log_domain()
126 audit_log_untrustedstring(ab, hierarchy->details->comm); in log_domain()
133 WRITE_ONCE(hierarchy->log_status, LANDLOCK_LOG_RECORDED); in log_domain()
139 struct landlock_hierarchy *hierarchy = domain->hierarchy; in get_hierarchy() local
143 return hierarchy; in get_hierarchy()
[all …]
H A Ddomain.c112 * @hierarchy: The hierarchy to initialize.
117 * @hierarchy->parent and @hierarchy->usage should already be set.
119 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 Dtask.c53 for (walker = child->hierarchy; walker; walker = walker->parent) { in task_is_scoped()
54 if (walker == parent->hierarchy) in task_is_scoped()
55 /* @parent is in the scoped hierarchy of @child. */ in task_is_scoped()
191 client_walker = client->hierarchy; in sock_is_scoped()
199 server_walker = server ? server->hierarchy : NULL; in is_abstract_socket()
202 * Walks client's parent domains down to the same hierarchy level in is_abstract_socket()
213 * Walks server's parent domains down to the same hierarchy level as in hook_unix_stream_connect()
223 * hierarchy. If the client is scoped, the request is in hook_unix_stream_connect()
H A Druleset.c51 * hierarchy = NULL in create_ruleset()
364 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()
[all …]
/linux/Documentation/admin-guide/media/
H A Ddvb_intro.rst153 HIERARCHY = NONE
181 HIERARCHY = NONE
196 HIERARCHY = NONE
211 HIERARCHY = NONE
226 HIERARCHY = NONE
241 HIERARCHY = NONE
256 HIERARCHY = NONE
271 HIERARCHY = NONE
286 HIERARCHY = NONE
301 HIERARCHY = NONE
[all …]
/linux/Documentation/admin-guide/cgroup-v1/
H A Dcgroups.rst60 A *hierarchy* is a set of cgroups arranged in a tree, such that
62 hierarchy, and a set of subsystems; each subsystem has system-specific
63 state attached to each cgroup in the hierarchy. Each hierarchy has
67 cgroups. Each hierarchy is a partition of all tasks in the system.
72 a cgroup. Those creations and assignments only affect the hierarchy
101 Multiple hierarchy support is provided to allow for situations where
104 hierarchy to be a natural division of tasks, without having to handle
110 separate hierarchy; at the other extreme, all subsystems
111 would be attached to the same hierarchy.
149 With only a single hierarchy, he now would potentially have to create
[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,
H A Ddevices.rst57 4. Hierarchy
60 device cgroups maintain hierarchy by making sure a cgroup never has more
123 4.1 Hierarchy (internal implementation)
130 to devices will be propagated down the hierarchy.
/linux/drivers/powercap/
H A Ddtpm.c330 * dtpm_unregister - Unregister a dtpm node from the hierarchy tree
344 * dtpm_register - Register a dtpm node in the hierarchy tree
350 * is the root node of the hierarchy. If the root node already exists,
415 static struct dtpm *dtpm_setup_virtual(const struct dtpm_node *hierarchy, in dtpm_setup_virtual() argument
426 ret = dtpm_register(hierarchy->name, dtpm, parent); in dtpm_setup_virtual()
429 hierarchy->name, ret); in dtpm_setup_virtual()
437 static struct dtpm *dtpm_setup_dt(const struct dtpm_node *hierarchy, in dtpm_setup_dt() argument
443 np = of_find_node_by_path(hierarchy->name); in dtpm_setup_dt()
445 pr_err("Failed to find '%s'\n", hierarchy->name); in dtpm_setup_dt()
478 static int dtpm_for_each_child(const struct dtpm_node *hierarchy, in dtpm_for_each_child() argument
[all …]
/linux/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()
139 tune_args.hierarchy = HIER_UNKNOWN; in as102_fe_set_frontend()
149 * Detect a hierarchy selection in as102_fe_set_frontend()
152 if ((tune_args.hierarchy != HIER_NONE) && in as102_fe_set_frontend()
169 tune_args.hierarchy, in as102_fe_set_frontend()
209 /* extract hierarchy */ in as102_fe_get_frontend()
[all …]
H A Das102_fe_types.h19 /* hierarchy priority selection values */
30 /* hierarchy available values */
101 uint8_t hierarchy; member
117 /* hierarchy selection */
121 /* hierarchy */
122 uint8_t hierarchy; member
H A Ddib3000mb.c224 switch (c->hierarchy) { in dib3000mb_set_frontend()
226 deb_setf("hierarchy: none\n"); in dib3000mb_set_frontend()
229 deb_setf("hierarchy: alpha=1\n"); in dib3000mb_set_frontend()
233 deb_setf("hierarchy: alpha=2\n"); in dib3000mb_set_frontend()
237 deb_setf("hierarchy: alpha=4\n"); in dib3000mb_set_frontend()
241 deb_setf("hierarchy: alpha=auto\n"); 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()
[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()
335 printk("Unexpected value for hierarchy\n"); in get_frontend()
H A Dstv0367_priv.h106 FE_TER_HIER_NONE, /*Hierarchy None*/
107 FE_TER_HIER_LOW_PRIO, /*Hierarchy : Low Priority*/
108 FE_TER_HIER_HIGH_PRIO, /*Hierarchy : High Priority*/
109 FE_TER_HIER_PRIO_ANY /*Hierarchy :Any*/
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()
/linux/Documentation/core-api/irq/
H A Dirq-domain.rst212 Hierarchy IRQ Domain
229 interrupt controller and those irq_domains are organized into hierarchy.
230 When building irq_domain hierarchy, the irq_domain near to the device is
231 child and the irq_domain near to CPU is parent. So a hierarchy structure
242 There are four major interfaces to use hierarchy irq_domain:
253 The following is needed to support hierarchy irq_domain:
256 maintain irq_domain hierarchy information.
258 build hierarchy irq_data to match hierarchy irq_domains. The
262 struct irq_domain_ops to support hierarchy irq_domain operations.
264 With the support of hierarchy irq_domain and hierarchy irq_data ready,
[all …]
/linux/kernel/time/
H A Dtimer_migration.h22 * struct tmigr_group - timer migration hierarchy group
23 * @lock: Lock protecting the event information and group hierarchy
26 * new hierarchy level is added because of a CPU coming
45 * @level: Hierarchy level of the group; Required during setup
59 * hierarchy groups
84 * idle before the timer migration hierarchy hotplug AP is
88 * hierarchy
93 * hierarchy is completely idle and remote expiry was done;
H A Dtimer_migration.c21 * The timer migration mechanism is built on a hierarchy of groups. The
49 * hierarchy up to the point where it is assigned the migrator role or if
76 * propagated up the hierarchy so hand over from other leaves can happen at
77 * all hierarchy levels w/o doing a search.
80 * duties up to the top level of the hierarchy (LVL2 in the example). It
90 * just won't participate in the hierarchy management anymore. Destroying
137 * walk the hierarchy.
152 * has to walk the hierarchy. Both CPUs (CPU0 and CPU1) now walk the
153 * hierarchy to perform the needed update from their point of view. The
168 * step 2) through the hierarchy to GRP1:0 before CPU0 (step 1) did. The
[all …]
/linux/tools/testing/selftests/landlock/
H A Dptrace_test.c89 FIXTURE(hierarchy) {};
92 FIXTURE_VARIANT(hierarchy) in FIXTURE_VARIANT()
116 FIXTURE_VARIANT_ADD(hierarchy, allow_without_domain) { in FIXTURE_VARIANT_ADD()
133 FIXTURE_VARIANT_ADD(hierarchy, allow_with_one_domain) { in FIXTURE_VARIANT_ADD()
149 FIXTURE_VARIANT_ADD(hierarchy, deny_with_parent_domain) { in FIXTURE_VARIANT_ADD()
166 FIXTURE_VARIANT_ADD(hierarchy, deny_with_sibling_domain) { in FIXTURE_VARIANT_ADD()
183 FIXTURE_VARIANT_ADD(hierarchy, allow_sibling_domain) { in FIXTURE_VARIANT_ADD()
201 FIXTURE_VARIANT_ADD(hierarchy, allow_with_nested_domain) { in FIXTURE_VARIANT_ADD()
219 FIXTURE_VARIANT_ADD(hierarchy, deny_with_nested_and_parent_domain) { in FIXTURE_VARIANT_ADD()
239 FIXTURE_VARIANT_ADD(hierarchy, deny_with_forked_domai in FIXTURE_VARIANT_ADD()
87 FIXTURE(hierarchy) FIXTURE() argument
90 FIXTURE_VARIANT(hierarchy) FIXTURE_VARIANT() argument
114 FIXTURE_VARIANT_ADD(hierarchy,allow_without_domain) FIXTURE_VARIANT_ADD() argument
131 FIXTURE_VARIANT_ADD(hierarchy,allow_with_one_domain) FIXTURE_VARIANT_ADD() argument
147 FIXTURE_VARIANT_ADD(hierarchy,deny_with_parent_domain) FIXTURE_VARIANT_ADD() argument
164 FIXTURE_VARIANT_ADD(hierarchy,deny_with_sibling_domain) FIXTURE_VARIANT_ADD() argument
181 FIXTURE_VARIANT_ADD(hierarchy,allow_sibling_domain) FIXTURE_VARIANT_ADD() argument
199 FIXTURE_VARIANT_ADD(hierarchy,allow_with_nested_domain) FIXTURE_VARIANT_ADD() argument
217 FIXTURE_VARIANT_ADD(hierarchy,deny_with_nested_and_parent_domain) FIXTURE_VARIANT_ADD() argument
237 FIXTURE_VARIANT_ADD(hierarchy,deny_with_forked_domain) FIXTURE_VARIANT_ADD() argument
244 FIXTURE_SETUP(hierarchy) FIXTURE_SETUP() argument
248 FIXTURE_TEARDOWN(hierarchy) FIXTURE_TEARDOWN() argument
253 TEST_F(hierarchy,trace) TEST_F() argument
[all...]
/linux/include/linux/
H A Dcgroup-defs.h138 __CFTYPE_ONLY_ON_DFL = (1 << 16), /* only on default hierarchy */
139 __CFTYPE_NOT_ON_DFL = (1 << 17), /* not on default hierarchy */
295 * On the default hierarchy, ->subsys[ssid] may point to a css
357 * hierarchy on reads.
449 * step down the hierarchy increments the level. This along with
451 * descendant of another without traversing the hierarchy.
530 * On the default hierarchy, a css_set for a cgroup with some
602 * A cgroup_root represents the root of a cgroup hierarchy, and may be
603 * associated with a kernfs_root to form an active hierarchy. This is
609 /* The bitmask of subsystems attached to this hierarchy */
[all …]
/linux/fs/9p/
H A Dv9fs.h18 * @V9FS_ACCESS_SINGLE: only the mounting user can access the hierarchy
93 * @uname: string user name to mount hierarchy as
94 * @aname: mount specifier for remote hierarchy
96 * @dfltuid: default numeric userid to mount hierarchy as
97 * @dfltgid: default numeric groupid to mount hierarchy as
98 * @uid: if %V9FS_ACCESS_SINGLE, the numeric uid which mounted the hierarchy
122 char *aname; /* name of remote hierarchy being mounted */
/linux/Documentation/userspace-api/
H A Dlandlock.rst39 For these rules, the object is a file hierarchy,
146 file hierarchy ``/usr``. Without another rule, write actions would then be
230 It is recommended to set access rights to file hierarchy leaves as much as
232 read-only hierarchy and ``~/tmp/`` as a read-write hierarchy, compared to
233 ``~/`` as a read-only hierarchy and ``~/tmp/`` as a read-write hierarchy.
272 A bind mount mirrors a source file hierarchy to a destination. The destination
273 hierarchy is then composed of the exact same files, on which Landlock rules can
281 the mount point. This merge hierarchy may include files from the upper and
282 lower layers, but modifications performed on the merge hierarchy only reflect
286 OverlayFS layer will not restrict the resulted merged hierarchy, and vice versa.
[all …]
/linux/Documentation/devicetree/bindings/power/
H A Drenesas,sysc-rmobile.yaml36 This node contains a hierarchy of PM domain nodes, which should match the
37 Power Area Hierarchy in the Power Domain Specifications section of the
90 // This shows a subset of the r8a7740 PM domain hierarchy, containing the
/linux/Documentation/driver-api/pci/
H A Dp2pdma.rst13 transactions between hierarchy domains, and in PCIe, each Root Port
14 defines a separate hierarchy domain. To make things worse, there is no
18 same PCI bridge, as such devices are all in the same PCI hierarchy
20 hierarchy will be routable, but it does not require routing

12345678910>>...18