Home
last modified time | relevance | path

Searched +full:parent +full:- +full:child (Results 1 – 25 of 1050) sorted by relevance

12345678910>>...42

/Linux-v6.1/drivers/mtd/
Dmtdpart.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org>
31 kfree(mtd->name); in free_partition()
35 static struct mtd_info *allocate_partition(struct mtd_info *parent, in allocate_partition() argument
39 struct mtd_info *master = mtd_get_master(parent); in allocate_partition()
40 int wr_alignment = (parent->flags & MTD_NO_ERASE) ? in allocate_partition()
41 master->writesize : master->erasesize; in allocate_partition()
42 u64 parent_size = mtd_is_partition(parent) ? in allocate_partition()
43 parent->part.size : parent->size; in allocate_partition()
44 struct mtd_info *child; in allocate_partition() local
[all …]
/Linux-v6.1/drivers/pwm/
Dsysfs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 struct device child; member
24 static struct pwm_export *child_to_pwm_export(struct device *child) in child_to_pwm_export() argument
26 return container_of(child, struct pwm_export, child); in child_to_pwm_export()
29 static struct pwm_device *child_to_pwm_device(struct device *child) in child_to_pwm_device() argument
31 struct pwm_export *export = child_to_pwm_export(child); in child_to_pwm_device()
33 return export->pwm; in child_to_pwm_device()
36 static ssize_t period_show(struct device *child, in period_show() argument
40 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show()
48 static ssize_t period_store(struct device *child, in period_store() argument
[all …]
/Linux-v6.1/tools/testing/selftests/cgroup/
Dtest_core.c1 /* SPDX-License-Identifier: GPL-2.0 */
28 return -1; in touch_anon()
36 return -1; in touch_anon()
40 size -= ret; in touch_anon()
57 return -1; in alloc_and_touch_anon_noexit()
61 return -1; in alloc_and_touch_anon_noexit()
72 * Create a child process that allocates and touches 100MB, then waits to be
73 * killed. Wait until the child is attached to the cgroup, kill all processes
100 /* wait for the child to enter cgroup */ in test_cgcore_destroy()
131 * A(0) - B(0) - C(1)
[all …]
Dtest_kmem.c1 // SPDX-License-Identifier: GPL-2.0
38 "/something-non-existent-with-a-long-name-%64lu-%d", in alloc_dcache()
101 int ret = -1; in alloc_kmem_smp()
105 return -1; in alloc_kmem_smp()
111 return -1; in alloc_kmem_smp()
125 static int cg_run_in_subcgroups(const char *parent, in cg_run_in_subcgroups() argument
129 char *child; in cg_run_in_subcgroups() local
133 child = cg_name_indexed(parent, "child", i); in cg_run_in_subcgroups()
134 if (!child) in cg_run_in_subcgroups()
135 return -1; in cg_run_in_subcgroups()
[all …]
Dtest_cpu.c1 // SPDX-License-Identifier: GPL-2.0
40 char *parent = NULL, *child = NULL, *parent2 = NULL, *child2 = NULL; in test_cpucg_subtree_control() local
44 parent = cg_name(root, "cpucg_test_0"); in test_cpucg_subtree_control()
45 if (!parent) in test_cpucg_subtree_control()
48 if (cg_create(parent)) in test_cpucg_subtree_control()
51 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in test_cpucg_subtree_control()
54 child = cg_name(parent, "cpucg_test_child"); in test_cpucg_subtree_control()
55 if (!child) in test_cpucg_subtree_control()
58 if (cg_create(child)) in test_cpucg_subtree_control()
61 if (cg_read_strstr(child, "cgroup.controllers", "cpu")) in test_cpucg_subtree_control()
[all …]
Dtest_freezer.c1 /* SPDX-License-Identifier: GPL-2.0 */
32 return -1; in cg_check_frozen()
40 return -1; in cg_check_frozen()
62 int fd, ret = -1; in cg_enter_and_wait_for_frozen()
95 int fd, ret = -1; in cg_freeze_wait()
119 * re-parented.
245 * Wait until all child processes will enter in test_cgfreezer_tree()
329 for (i = 9; i >= 0 && cgroup[i]; i--) { in test_cgfreezer_tree()
395 * The test creates a cgroups and freezes it. Then it creates a child cgroup
396 * and populates it with a task. After that it checks that the child cgroup
[all …]
Dtest_memcontrol.c1 /* SPDX-License-Identifier: GPL-2.0 */
33 char *parent, *child, *parent2 = NULL, *child2 = NULL; in test_memcg_subtree_control() local
38 parent = cg_name(root, "memcg_test_0"); in test_memcg_subtree_control()
39 child = cg_name(root, "memcg_test_0/memcg_test_1"); in test_memcg_subtree_control()
40 if (!parent || !child) in test_memcg_subtree_control()
43 if (cg_create(parent)) in test_memcg_subtree_control()
46 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_memcg_subtree_control()
49 if (cg_create(child)) in test_memcg_subtree_control()
52 if (cg_read_strstr(child, "cgroup.controllers", "memory")) in test_memcg_subtree_control()
83 cg_destroy(child); in test_memcg_subtree_control()
[all …]
/Linux-v6.1/security/landlock/
Dptrace.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Landlock LSM - Ptrace hooks
5 * Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net>
6 * Copyright © 2019-2020 ANSSI
24 * domain_scope_le - Checks domain ordering for scoped ptrace
26 * @parent: Parent domain.
27 * @child: Potential child of @parent.
29 * Checks if the @parent domain is less or equal to (i.e. an ancestor, which
30 * means a subset of) the @child domain.
32 static bool domain_scope_le(const struct landlock_ruleset *const parent, in domain_scope_le() argument
[all …]
/Linux-v6.1/drivers/scsi/libsas/
Dsas_expander.c1 // SPDX-License-Identifier: GPL-2.0
29 /* ---------- SMP task management ---------- */
40 to_sas_internal(dev->port->ha->core.shost->transportt); in smp_execute_task_sg()
41 struct sas_ha_struct *ha = dev->port->ha; in smp_execute_task_sg()
43 pm_runtime_get_sync(ha->dev); in smp_execute_task_sg()
44 mutex_lock(&dev->ex_dev.cmd_mutex); in smp_execute_task_sg()
46 if (test_bit(SAS_DEV_GONE, &dev->state)) { in smp_execute_task_sg()
47 res = -ECOMM; in smp_execute_task_sg()
53 res = -ENOMEM; in smp_execute_task_sg()
56 task->dev = dev; in smp_execute_task_sg()
[all …]
/Linux-v6.1/fs/
Dpnode.c1 // SPDX-License-Identifier: GPL-2.0-only
19 return list_entry(p->mnt_share.next, struct mount, mnt_share); in next_peer()
24 return list_entry(p->mnt_slave_list.next, struct mount, mnt_slave); in first_slave()
29 return list_entry(p->mnt_slave_list.prev, struct mount, mnt_slave); in last_slave()
34 return list_entry(p->mnt_slave.next, struct mount, mnt_slave); in next_slave()
45 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root()
64 for (m = mnt->mnt_master; m != NULL; m = m->mnt_master) { in get_dominating_id()
65 struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id()
67 return d->mnt_group_id; in get_dominating_id()
77 if (list_empty(&mnt->mnt_share)) { in do_make_slave()
[all …]
/Linux-v6.1/tools/testing/selftests/landlock/
Dptrace_test.c1 // SPDX-License-Identifier: GPL-2.0
3 * Landlock tests - Ptrace
5 * Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net>
6 * Copyright © 2019-2020 ANSSI
63 /* clang-format off */
65 /* clang-format on */
75 * Test multiple tracing combinations between a parent process P1 and a child
86 * P1-. P1 -> P2 : allow
87 * \ P2 -> P1 : allow
90 /* clang-format off */
[all …]
/Linux-v6.1/drivers/pci/pcie/
Daspm.c1 // SPDX-License-Identifier: GPL-2.0
49 struct pcie_link_state *parent; /* pointer to the parent Link state */ member
101 struct pci_dev *child; in pci_function_0() local
103 list_for_each_entry(child, &linkbus->devices, bus_list) in pci_function_0()
104 if (PCI_FUNC(child->devfn) == 0) in pci_function_0()
105 return child; in pci_function_0()
122 return link->aspm_default; in policy_to_aspm_state()
138 return link->clkpm_default; in policy_to_clkpm_state()
145 struct pci_dev *child; in pcie_set_clkpm_nocheck() local
146 struct pci_bus *linkbus = link->pdev->subordinate; in pcie_set_clkpm_nocheck()
[all …]
/Linux-v6.1/include/linux/
Drbtree_augmented.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
20 * Please note - only struct rb_augment_callbacks and the prototypes for
24 * See Documentation/core-api/rbtree.rst for documentation and samples.
50 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented()
59 root->rb_leftmost = node; in rb_insert_augmented_cached()
60 rb_insert_augmented(node, &root->rb_root, augment); in rb_insert_augmented_cached()
83 rb = rb_parent(&node->RBFIELD); \
91 new->RBAUGMENTED = old->RBAUGMENTED; \
98 new->RBAUGMENTED = old->RBAUGMENTED; \
117 * RBCOMPUTE: name of function that returns the per-node RBTYPE scalar
[all …]
Dbootconfig.h1 /* SPDX-License-Identifier: GPL-2.0 */
27 #define BOOTCONFIG_ALIGN_MASK (BOOTCONFIG_ALIGN - 1)
30 * xbc_calc_checksum() - Calculate checksum of bootconfig
43 while (size--) in xbc_calc_checksum()
52 uint16_t child; member
53 uint16_t parent; member
59 /* Maximum size of boot config is 32KB - 1 */
60 #define XBC_DATA_MAX (XBC_VALUE - 1)
75 * xbc_node_is_value() - Test the node is a value node
82 return node->data & XBC_VALUE; in xbc_node_is_value()
[all …]
/Linux-v6.1/tools/include/linux/
Drbtree_augmented.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
22 * Please note - only struct rb_augment_callbacks and the prototypes for
26 * See Documentation/core-api/rbtree.rst for documentation and samples.
52 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented()
61 root->rb_leftmost = node; in rb_insert_augmented_cached()
62 rb_insert_augmented(node, &root->rb_root, augment); in rb_insert_augmented_cached()
85 rb = rb_parent(&node->RBFIELD); \
93 new->RBAUGMENTED = old->RBAUGMENTED; \
100 new->RBAUGMENTED = old->RBAUGMENTED; \
119 * RBCOMPUTE: name of function that returns the per-node RBTYPE scalar
[all …]
/Linux-v6.1/drivers/iio/multiplexer/
Diio-mux.c1 // SPDX-License-Identifier: GPL-2.0
32 struct iio_channel *parent; member
36 struct mux_child *child; member
42 struct mux_child *child = &mux->child[idx]; in iio_mux_select() local
43 struct iio_chan_spec const *chan = &mux->chan[idx]; in iio_mux_select()
47 ret = mux_control_select_delay(mux->control, chan->channel, in iio_mux_select()
48 mux->delay_us); in iio_mux_select()
50 mux->cached_state = -1; in iio_mux_select()
54 if (mux->cached_state == chan->channel) in iio_mux_select()
57 if (chan->ext_info) { in iio_mux_select()
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dcg_storage_multi.c1 // SPDX-License-Identifier: GPL-2.0-only
18 #define CHILD_CGROUP "/cgroup_storage/child"
31 "map-lookup", "errno %d", errno)) in assert_storage()
34 "assert-storage", "storages differ")) in assert_storage()
48 "map-lookup", "succeeded, expected ENOENT")) in assert_storage_noexist()
51 "map-lookup", "errno %d, expected ENOENT", errno)) in assert_storage_noexist()
60 int server_fd = -1, client_fd = -1; in connect_send()
95 if (CHECK(!obj, "skel-load", "errno %d", errno)) in test_egress_only()
98 /* Attach to parent cgroup, trigger packet from child. in test_egress_only()
100 * parent cgroup's storage. in test_egress_only()
[all …]
/Linux-v6.1/drivers/firmware/efi/
Ddev-path-parser.c1 // SPDX-License-Identifier: GPL-2.0
3 * dev-path-parser.c - EFI Device Path parser
16 struct device *parent, struct device **child) in parse_acpi_path() argument
24 if (node->header.length != 12) in parse_acpi_path()
25 return -EINVAL; in parse_acpi_path()
28 'A' + ((node->acpi.hid >> 10) & 0x1f) - 1, in parse_acpi_path()
29 'A' + ((node->acpi.hid >> 5) & 0x1f) - 1, in parse_acpi_path()
30 'A' + ((node->acpi.hid >> 0) & 0x1f) - 1, in parse_acpi_path()
31 node->acpi.hid >> 16); in parse_acpi_path()
33 for_each_acpi_dev_match(adev, hid, NULL, -1) { in parse_acpi_path()
[all …]
/Linux-v6.1/drivers/powercap/
Ddtpm.c1 // SPDX-License-Identifier: GPL-2.0-only
12 * parent node is a virtual description of the aggregation of the
42 return -ENOSYS; in get_time_window_us()
47 return -ENOSYS; in set_time_window_us()
54 *max_power_uw = dtpm->power_max - dtpm->power_min; in get_max_power_range_uw()
61 struct dtpm *child; in __get_power_uw() local
65 if (dtpm->ops) { in __get_power_uw()
66 *power_uw = dtpm->ops->get_power_uw(dtpm); in __get_power_uw()
72 list_for_each_entry(child, &dtpm->children, sibling) { in __get_power_uw()
73 ret = __get_power_uw(child, &power); in __get_power_uw()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dhtb.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
11 struct mlx5e_qos_node *parent; member
16 u32 classid; /* 16-bit, except root. */
39 hash_for_each(htb->qos_tc2node, bkt, node, hnode) { in mlx5e_htb_enumerate_leaves()
40 if (node->qid == MLX5E_QOS_QID_INNER) in mlx5e_htb_enumerate_leaves()
42 err = callback(data, node->qid, node->hw_id); in mlx5e_htb_enumerate_leaves()
53 last = find_last_bit(htb->qos_used_qids, mlx5e_qos_max_leaf_nodes(htb->mdev)); in mlx5e_htb_cur_leaf_nodes()
54 return last == mlx5e_qos_max_leaf_nodes(htb->mdev) ? 0 : last + 1; in mlx5e_htb_cur_leaf_nodes()
59 int size = mlx5e_qos_max_leaf_nodes(htb->mdev); in mlx5e_htb_find_unused_qos_qid()
60 struct mlx5e_priv *priv = htb->priv; in mlx5e_htb_find_unused_qos_qid()
[all …]
/Linux-v6.1/drivers/pci/hotplug/
Dpnv_php.c1 // SPDX-License-Identifier: GPL-2.0+
15 #include <asm/pnv-pci.h>
16 #include <asm/ppc-pci.h>
23 ((sl)->pdev ? pci_warn((sl)->pdev, x) : dev_warn(&(sl)->bus->dev, x))
41 struct pci_dev *pdev = php_slot->pdev; in pnv_php_disable_irq()
42 int irq = php_slot->irq; in pnv_php_disable_irq()
45 if (php_slot->irq > 0) { in pnv_php_disable_irq()
52 free_irq(php_slot->irq, php_slot); in pnv_php_disable_irq()
53 php_slot->irq = 0; in pnv_php_disable_irq()
56 if (php_slot->wq) { in pnv_php_disable_irq()
[all …]
/Linux-v6.1/kernel/bpf/
Dlpm_trie.c1 // SPDX-License-Identifier: GPL-2.0-only
26 struct lpm_trie_node __rcu *child[2]; member
56 * [0xc0, 0xa8, 0x00, 0x00] in big-endian notation. This documentation will
57 * stick to IP-address notation for readability though.
61 * child pointers are %NULL.
63 * +----------------+
68 * +----------------+
72 * node (2) will become a child of (1). In child index depends on the next bit
74 * child[0] of (1):
76 * +----------------+
[all …]
/Linux-v6.1/fs/notify/
Dfsnotify.c1 // SPDX-License-Identifier: GPL-2.0-or-later
32 * fsnotify_unmount_inodes - an sb is unmounting. handle any watched inodes.
36 * concurrent modifiers. We temporarily drop sb->s_inode_list_lock and CAN block.
42 spin_lock(&sb->s_inode_list_lock); in fsnotify_unmount_inodes()
43 list_for_each_entry(inode, &sb->s_inodes, i_sb_list) { in fsnotify_unmount_inodes()
49 spin_lock(&inode->i_lock); in fsnotify_unmount_inodes()
50 if (inode->i_state & (I_FREEING|I_WILL_FREE|I_NEW)) { in fsnotify_unmount_inodes()
51 spin_unlock(&inode->i_lock); in fsnotify_unmount_inodes()
64 if (!atomic_read(&inode->i_count)) { in fsnotify_unmount_inodes()
65 spin_unlock(&inode->i_lock); in fsnotify_unmount_inodes()
[all …]
/Linux-v6.1/tools/testing/selftests/powerpc/ptrace/
Dchild.h1 // SPDX-License-Identifier: GPL-2.0+
3 * Helper functions to sync execution between parent and child processes.
12 * Information in a shared memory location for synchronization between child and
13 * parent.
16 /* The parent waits on this semaphore. */
19 /* If true, the child should give up as well. */
22 /* The child waits on this semaphore. */
25 /* If true, the parent should give up as well. */
34 (sync)->child_gave_up = true; \
45 (sync)->parent_gave_up = true; \
[all …]
/Linux-v6.1/drivers/acpi/acpica/
Dnsalloc.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: nsalloc - Namespace allocation and deletion utilities
19 * PARAMETERS: name - Name of the new node (4 char ACPI name)
40 ACPI_MEM_TRACKING(acpi_gbl_ns_node_list->total_allocated++); in acpi_ns_create_node()
43 temp = acpi_gbl_ns_node_list->total_allocated - in acpi_ns_create_node()
44 acpi_gbl_ns_node_list->total_freed; in acpi_ns_create_node()
45 if (temp > acpi_gbl_ns_node_list->max_occupied) { in acpi_ns_create_node()
46 acpi_gbl_ns_node_list->max_occupied = temp; in acpi_ns_create_node()
50 node->name.integer = name; in acpi_ns_create_node()
59 * PARAMETERS: node - Node to be deleted
[all …]

12345678910>>...42