Home
last modified time | relevance | path

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

12345678910>>...43

/Linux-v5.10/drivers/mtd/
Dmtdpart.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org>
30 kfree(mtd->name); in free_partition()
34 static struct mtd_info *allocate_partition(struct mtd_info *parent, in allocate_partition() argument
38 struct mtd_info *master = mtd_get_master(parent); in allocate_partition()
39 int wr_alignment = (parent->flags & MTD_NO_ERASE) ? in allocate_partition()
40 master->writesize : master->erasesize; in allocate_partition()
41 u64 parent_size = mtd_is_partition(parent) ? in allocate_partition()
42 parent->part.size : parent->size; in allocate_partition()
43 struct mtd_info *child; in allocate_partition() local
[all …]
/Linux-v5.10/tools/testing/selftests/cgroup/
Dtest_core.c1 /* SPDX-License-Identifier: GPL-2.0 */
25 return -1; in touch_anon()
33 return -1; in touch_anon()
37 size -= ret; in touch_anon()
54 return -1; in alloc_and_touch_anon_noexit()
58 return -1; in alloc_and_touch_anon_noexit()
69 * Create a child process that allocates and touches 100MB, then waits to be
70 * killed. Wait until the child is attached to the cgroup, kill all processes
97 /* wait for the child to enter cgroup */ in test_cgcore_destroy()
128 * 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_memcontrol.c1 /* SPDX-License-Identifier: GPL-2.0 */
29 char *parent, *child, *parent2 = NULL, *child2 = NULL; in test_memcg_subtree_control() local
34 parent = cg_name(root, "memcg_test_0"); in test_memcg_subtree_control()
35 child = cg_name(root, "memcg_test_0/memcg_test_1"); in test_memcg_subtree_control()
36 if (!parent || !child) in test_memcg_subtree_control()
39 if (cg_create(parent)) in test_memcg_subtree_control()
42 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_memcg_subtree_control()
45 if (cg_create(child)) in test_memcg_subtree_control()
48 if (cg_read_strstr(child, "cgroup.controllers", "memory")) in test_memcg_subtree_control()
79 cg_destroy(child); in test_memcg_subtree_control()
[all …]
Dtest_freezer.c1 /* SPDX-License-Identifier: GPL-2.0 */
34 return -1; in cg_check_frozen()
42 return -1; in cg_check_frozen()
62 int fd, ret = -1; in cg_prepare_for_wait()
65 if (fd == -1) { in cg_prepare_for_wait()
72 if (ret == -1) { in cg_prepare_for_wait()
75 fd = -1; in cg_prepare_for_wait()
87 int ret = -1; in cg_wait_for()
96 if (ret == -1) { in cg_wait_for()
119 int fd, ret = -1; in cg_enter_and_wait_for_frozen()
[all …]
/Linux-v5.10/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-v5.10/drivers/pci/pcie/
Daspm.c1 // SPDX-License-Identifier: GPL-2.0
53 struct pcie_link_state *parent; /* pointer to the parent Link state */ member
121 return link->aspm_default; in policy_to_aspm_state()
137 return link->clkpm_default; in policy_to_clkpm_state()
144 struct pci_dev *child; in pcie_set_clkpm_nocheck() local
145 struct pci_bus *linkbus = link->pdev->subordinate; in pcie_set_clkpm_nocheck()
148 list_for_each_entry(child, &linkbus->devices, bus_list) in pcie_set_clkpm_nocheck()
149 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck()
152 link->clkpm_enabled = !!enable; in pcie_set_clkpm_nocheck()
161 if (!link->clkpm_capable || link->clkpm_disable) in pcie_set_clkpm()
[all …]
/Linux-v5.10/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-v5.10/drivers/scsi/libsas/
Dsas_expander.c1 // SPDX-License-Identifier: GPL-2.0
29 /* ---------- SMP task management ---------- */
34 struct sas_task *task = slow->task; in smp_task_timedout()
37 spin_lock_irqsave(&task->task_state_lock, flags); in smp_task_timedout()
38 if (!(task->task_state_flags & SAS_TASK_STATE_DONE)) { in smp_task_timedout()
39 task->task_state_flags |= SAS_TASK_STATE_ABORTED; in smp_task_timedout()
40 complete(&task->slow_task->completion); in smp_task_timedout()
42 spin_unlock_irqrestore(&task->task_state_lock, flags); in smp_task_timedout()
47 del_timer(&task->slow_task->timer); in smp_task_done()
48 complete(&task->slow_task->completion); in smp_task_done()
[all …]
/Linux-v5.10/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 …]
Dof_graph.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd.
18 * struct of_endpoint - the OF graph endpoint data structure
30 * for_each_endpoint_of_node - iterate over every endpoint in a device node
31 * @parent: parent device node containing ports and endpoints
32 * @child: loop variable pointing to the current endpoint node
34 * When breaking out of the loop, of_node_put(child) has to be called manually.
36 #define for_each_endpoint_of_node(parent, child) \ argument
37 for (child = of_graph_get_next_endpoint(parent, NULL); child != NULL; \
38 child = of_graph_get_next_endpoint(parent, child))
[all …]
/Linux-v5.10/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-v5.10/drivers/firmware/efi/
Ddev-path-parser.c1 // SPDX-License-Identifier: GPL-2.0
3 * dev-path-parser.c - EFI Device Path parser
28 if (adev->pnp.unique_id) in match_acpi_dev()
29 return !strcmp(adev->pnp.unique_id, hid_uid.uid); in match_acpi_dev()
35 struct device *parent, struct device **child) in parse_acpi_path() argument
40 if (node->header.length != 12) in parse_acpi_path()
41 return -EINVAL; in parse_acpi_path()
44 'A' + ((node->acpi.hid >> 10) & 0x1f) - 1, in parse_acpi_path()
45 'A' + ((node->acpi.hid >> 5) & 0x1f) - 1, in parse_acpi_path()
46 'A' + ((node->acpi.hid >> 0) & 0x1f) - 1, in parse_acpi_path()
[all …]
/Linux-v5.10/drivers/iio/multiplexer/
Diio-mux.c1 // SPDX-License-Identifier: GPL-2.0
31 struct iio_channel *parent; member
35 struct mux_child *child; member
40 struct mux_child *child = &mux->child[idx]; in iio_mux_select() local
41 struct iio_chan_spec const *chan = &mux->chan[idx]; in iio_mux_select()
45 ret = mux_control_select(mux->control, chan->channel); in iio_mux_select()
47 mux->cached_state = -1; in iio_mux_select()
51 if (mux->cached_state == chan->channel) in iio_mux_select()
54 if (chan->ext_info) { in iio_mux_select()
55 for (i = 0; chan->ext_info[i].name; ++i) { in iio_mux_select()
[all …]
/Linux-v5.10/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-v5.10/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-v5.10/drivers/mfd/
Dmfd-core.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drivers/mfd/mfd-core.c
40 if (!cell->enable) { in mfd_cell_enable()
41 dev_dbg(&pdev->dev, "No .enable() call-back registered\n"); in mfd_cell_enable()
45 return cell->enable(pdev); in mfd_cell_enable()
53 if (!cell->disable) { in mfd_cell_disable()
54 dev_dbg(&pdev->dev, "No .disable() call-back registered\n"); in mfd_cell_disable()
58 return cell->disable(pdev); in mfd_cell_disable()
66 const struct mfd_cell_acpi_match *match = cell->acpi_match; in mfd_acpi_add_device()
67 struct acpi_device *parent, *child; in mfd_acpi_add_device() local
[all …]
/Linux-v5.10/drivers/pci/hotplug/
Dpnv_php.c1 // SPDX-License-Identifier: GPL-2.0+
14 #include <asm/pnv-pci.h>
15 #include <asm/ppc-pci.h>
22 ((sl)->pdev ? pci_warn((sl)->pdev, x) : dev_warn(&(sl)->bus->dev, x))
40 struct pci_dev *pdev = php_slot->pdev; in pnv_php_disable_irq()
41 int irq = php_slot->irq; in pnv_php_disable_irq()
44 if (php_slot->irq > 0) { in pnv_php_disable_irq()
51 free_irq(php_slot->irq, php_slot); in pnv_php_disable_irq()
52 php_slot->irq = 0; in pnv_php_disable_irq()
55 if (php_slot->wq) { in pnv_php_disable_irq()
[all …]
/Linux-v5.10/kernel/bpf/
Dlpm_trie.c1 // SPDX-License-Identifier: GPL-2.0-only
25 struct lpm_trie_node __rcu *child[2]; member
55 * [0xc0, 0xa8, 0x00, 0x00] in big-endian notation. This documentation will
56 * stick to IP-address notation for readability though.
60 * child pointers are %NULL.
62 * +----------------+
67 * +----------------+
71 * node (2) will become a child of (1). In child index depends on the next bit
73 * child[0] of (1):
75 * +----------------+
[all …]
/Linux-v5.10/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 …]
Dptrace-pkey.c1 // SPDX-License-Identifier: GPL-2.0+
9 #include "child.h"
29 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY))
36 /* Information shared between the parent and the child. */
40 /* AMR value the parent expects to read from the child. */
43 /* AMR value the parent is expected to write to the child. */
46 /* AMR value that ptrace should refuse to write to the child. */
49 /* IAMR value the parent expects to read from the child. */
52 /* UAMOR value the parent expects to read from the child. */
56 * IAMR and UAMOR values that ptrace should refuse to write to the child
[all …]
/Linux-v5.10/Documentation/admin-guide/cgroup-v1/
Dpids.rst6 --------
17 -----
27 policy through fork() or clone(). fork() and clone() will return -EAGAIN if the
34 pids.current tracks all child cgroup hierarchies, so parent/pids.current is a
35 superset of parent/child/pids.current.
39 - max: Number of times fork failed because limit was hit.
42 -------
46 # mkdir -p /sys/fs/cgroup/pids
47 # mount -t cgroup -o pids none /sys/fs/cgroup/pids
51 # mkdir -p /sys/fs/cgroup/pids/parent/child
[all …]
/Linux-v5.10/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 …]
/Linux-v5.10/drivers/md/persistent-data/
Ddm-btree-remove.c7 #include "dm-btree.h"
8 #include "dm-btree-internal.h"
9 #include "dm-transaction-manager.h"
49 * Once this rebalancing has occurred we can then step into the child node
58 uint32_t nr_entries = le32_to_cpu(n->header.nr_entries); in node_shift()
59 uint32_t value_size = le32_to_cpu(n->header.value_size); in node_shift()
62 shift = -shift; in node_shift()
67 (nr_entries - shift) * sizeof(__le64)); in node_shift()
70 (nr_entries - shift) * value_size); in node_shift()
72 BUG_ON(nr_entries + shift > le32_to_cpu(n->header.max_entries)); in node_shift()
[all …]
/Linux-v5.10/lib/
Dradix-tree.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 #include <linux/radix-tree.h>
36 * The radix tree is variable-height, so an insert operation not only has
46 #define RADIX_TREE_PRELOAD_SIZE (RADIX_TREE_MAX_PATH * 2 - 1)
52 #define IDR_INDEX_BITS (8 /* CHAR_BIT */ * sizeof(int) - 1)
55 #define IDR_PRELOAD_SIZE (IDR_MAX_PATH * 2 - 1)
58 * Per-cpu pool of preloaded nodes
78 get_slot_offset(const struct radix_tree_node *parent, void __rcu **slot) in get_slot_offset() argument
80 return parent ? slot - parent->slots : 0; in get_slot_offset()
83 static unsigned int radix_tree_descend(const struct radix_tree_node *parent, in radix_tree_descend() argument
[all …]

12345678910>>...43