/linux/security/landlock/ |
H A D | domain.h | 73 * 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 162 landlock_put_hierarchy(struct landlock_hierarchy * hierarchy) landlock_put_hierarchy() argument [all...] |
H A D | audit.c | 104 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 in get_hierarchy() local 476 landlock_log_drop_domain(const struct landlock_hierarchy * const hierarchy) landlock_log_drop_domain() argument [all...] |
H A D | domain.c | 112 * @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 in landlock_init_hierarchy_log() [all...] |
H A D | ruleset.c | 51 * 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() [all...] |
H A D | audit.h | 56 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 D | task.c | 53 for (walker = child->hierarchy; walker; walker = walker->parent) { in domain_scope_le() 54 if (walker == parent->hierarchy) in domain_scope_le() 55 /* @parent is in the scoped hierarchy of @child. */ in domain_scope_le() 191 client_walker = client->hierarchy; in domain_is_scoped() 199 server_walker = server ? server->hierarchy : NULL; in domain_is_scoped() 202 * Walks client's parent domains down to the same hierarchy level in domain_is_scoped() 213 * Walks server's parent domains down to the same hierarchy level as in domain_is_scoped() 223 * hierarchy. If the client is scoped, the request is in domain_is_scoped()
|
H A D | syscalls.c | 555 new_dom->hierarchy->log_same_exec = log_same_exec; in SYSCALL_DEFINE2() 556 new_dom->hierarchy->log_new_exec = log_new_exec; in SYSCALL_DEFINE2() 558 new_dom->hierarchy->log_status = LANDLOCK_LOG_DISABLED; in SYSCALL_DEFINE2()
|
/linux/net/shaper/ |
H A D | shaper.c | 254 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); in net_shaper_lookup() local 257 if (!hierarchy || xa_get_mark(&hierarchy->shapers, index, in net_shaper_lookup() 261 return xa_load(&hierarchy->shapers, index); in net_shaper_lookup() 264 /* Allocate on demand the per device shaper's hierarchy container. 270 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); in net_shaper_hierarchy_setup() local 272 if (hierarchy) in net_shaper_hierarchy_setup() 273 return hierarchy; in net_shaper_hierarchy_setup() 275 hierarchy = kmalloc(sizeof(*hierarchy), GFP_KERNE in net_shaper_hierarchy_setup() 298 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); net_shaper_pre_insert() local 365 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); net_shaper_commit() local 391 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); net_shaper_rollback() local 778 struct net_shaper_hierarchy *hierarchy; net_shaper_nl_get_dumpit() local 803 struct net_shaper_hierarchy *hierarchy; net_shaper_nl_set_doit() local 858 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); __net_shaper_delete() local 1013 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); net_shaper_pre_del_node() local 1069 struct net_shaper_hierarchy *hierarchy; net_shaper_nl_delete_doit() local 1141 struct net_shaper_hierarchy *hierarchy; net_shaper_nl_group_doit() local 1356 struct net_shaper_hierarchy *hierarchy = net_shaper_hierarchy(binding); net_shaper_flush() local 1388 struct net_shaper_hierarchy *hierarchy; net_shaper_set_real_num_tx_queues() local [all...] |
/linux/drivers/powercap/ |
H A D | dtpm.c | 330 * 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 552 const struct dtpm_node *hierarchy; dtpm_create_hierarchy() local [all...] |
/linux/drivers/media/dvb-frontends/ |
H A D | as102_fe.c | 125 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 D | l64781.c | 157 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\ in get_frontend() [all...] |
H A D | mt352.c | 201 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 D | zl10353.c | 258 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 D | rtl2830.c | 326 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 D | as102_fe_types.h | 19 /* 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 D | cxd2820r_t.c | 179 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()
|
H A D | rtl2832.c | 582 c->hierarchy = HIERARCHY_NONE; in rtl2832_get_frontend() 585 c->hierarchy = HIERARCHY_1; in rtl2832_get_frontend() 588 c->hierarchy = HIERARCHY_2; in rtl2832_get_frontend() 591 c->hierarchy = HIERARCHY_4; in rtl2832_get_frontend() 687 unsigned hierarchy, constellation; in rtl2832_read_status() local 705 hierarchy = (u8tmp >> 4) & 0x07; /* [6:4] */ in rtl2832_read_status() 706 if (hierarchy > HIERARCHY_NUM - 1) in rtl2832_read_status() 715 tmp = (constant[constellation][hierarchy] - in rtl2832_read_status()
|
/linux/Documentation/admin-guide/cgroup-v1/ |
H A D | cgroups.rst | 60 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 [all...] |
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | rl.c | 37 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() [all...] |
H A D | mlx5_core.h | 247 bool mlx5_qos_element_type_supported(struct mlx5_core_dev *dev, int type, u8 hierarchy); 248 bool mlx5_qos_tsar_type_supported(struct mlx5_core_dev *dev, int type, u8 hierarchy); 249 int mlx5_create_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy, 251 int mlx5_modify_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy, 254 int mlx5_destroy_scheduling_element_cmd(struct mlx5_core_dev *dev, u8 hierarchy,
|
/linux/Documentation/core-api/irq/ |
H A D | irq-domain.rst | 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_domai [all...] |
/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | mxl111sf-demod.c | 171 enum fe_hierarchy *hierarchy) in mxl1x1sf_demod_get_tps_hierarchy() argument 175 /* bit<6:4> - 000:Non hierarchy, 001:1, 010:2, 011:4 */ in mxl1x1sf_demod_get_tps_hierarchy() 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/Documentation/devicetree/bindings/arm/omap/ |
H A D | prcm.txt | 4 a DT hierarchy. Each TI SoC can have multiple PRCM entities listed for it, 5 each describing one module and the clock hierarchy under it. see [1] for
|
/linux/drivers/media/usb/as102/ |
H A D | as10x_cmd.c | 119 preq->body.set_tune.req.args.hierarchy = ptune->hierarchy; in as10x_cmd_set_tune() 245 ptps->hierarchy = prsp->body.get_tps.rsp.tps.hierarchy; in as10x_cmd_get_tps()
|
/linux/Documentation/userspace-api/ |
H A D | landlock.rst | 39 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 ma [all...] |