/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_fdinfo_test.c | 86 struct child { struct 92 static struct child clone_newns(int (*fn)(void *), void *args, 96 struct child ret; 120 ksft_print_msg("New child: %d, fd: %d\n", ret.pid, ret.fd); 125 static inline void child_close(struct child *child) argument 127 close(child->fd); 130 static inline int child_join(struct child *child, struct error *err) argument 134 r = wait_for_pid(child 150 child_join_close(struct child *child, struct error *err) argument [all...] |
/linux-master/arch/x86/kernel/ |
H A D | ptrace.c | 151 * does not yet catch signals sent when the child dies. 374 static int putreg(struct task_struct *child, argument 384 return set_segment_reg(child, offset, value); 387 return set_flags(child, value); 393 x86_fsbase_write_task(child, value); 398 x86_gsbase_write_task(child, value); 403 *pt_regs_access(task_pt_regs(child), offset) = value; 718 void ptrace_disable(struct task_struct *child) argument 720 user_disable_single_step(child); 730 long arch_ptrace(struct task_struct *child, lon argument 873 putreg32(struct task_struct *child, unsigned regno, u32 value) argument 971 getreg32(struct task_struct *child, unsigned regno, u32 *val) argument 1064 ia32_arch_ptrace(struct task_struct *child, compat_long_t request, compat_ulong_t caddr, compat_ulong_t cdata) argument 1132 x32_arch_ptrace(struct task_struct *child, compat_long_t request, compat_ulong_t caddr, compat_ulong_t cdata) argument 1220 compat_arch_ptrace(struct task_struct *child, compat_long_t request, compat_ulong_t caddr, compat_ulong_t cdata) argument [all...] |
/linux-master/include/trace/events/ |
H A D | timer_migration.h | 36 TP_PROTO(struct tmigr_group *child), 38 TP_ARGS(child), 41 __field( void *, child ) 50 __entry->child = child; 51 __entry->parent = child->parent; 52 __entry->lvl = child->parent->level; 53 __entry->numa_node = child->parent->numa_node; 54 __entry->num_children = child->parent->num_children; 55 __entry->childmask = child [all...] |
/linux-master/tools/include/linux/ |
H A D | rbtree_augmented.h | 126 RBSTRUCT *child; \ 129 child = rb_entry(node->RBFIELD.rb_left, RBSTRUCT, RBFIELD); \ 130 if (child->RBAUGMENTED > max) \ 131 max = child->RBAUGMENTED; \ 134 child = rb_entry(node->RBFIELD.rb_right, RBSTRUCT, RBFIELD); \ 135 if (child->RBAUGMENTED > max) \ 136 max = child->RBAUGMENTED; \ 190 struct rb_node *child = node->rb_right; local 197 * Case 1: node to erase has no more than 1 child (easy!) 199 * Note that if there is one child i [all...] |
/linux-master/drivers/platform/x86/ |
H A D | serdev_helpers.h | 30 struct device *ctrl_dev, *child; local 66 child = device_find_child_by_name(ctrl_dev, name); 68 if (!child) { 74 ctrl_dev = child;
|
/linux-master/arch/powerpc/kernel/ |
H A D | pci-hotplug.c | 24 struct pci_bus *child = NULL; local 31 child = find_bus_among_children(tmp, dn); 32 if (child) 36 return child; 83 /* First go down child busses */ 124 dn->child && PCI_DN(dn->child)) { 132 slotno = PCI_SLOT(PCI_DN(dn->child)->devfn);
|
/linux-master/arch/arm/mach-mvebu/ |
H A D | mvebu-soc-id.c | 61 struct device_node *child; local 71 child = of_get_next_child(np, NULL); 72 if (child == NULL) { 78 clk = of_clk_get_by_name(child, NULL); 91 pci_base = of_iomap(child, 0); 119 if (!of_device_is_available(child) || !IS_ENABLED(CONFIG_PCI_MVEBU)) { 125 of_node_put(child);
|
/linux-master/tools/testing/selftests/firmware/ |
H A D | fw_namespace.c | 65 pid_t child; local 71 child = fork(); 72 if (child == -1) { 76 if (child != 0) { /* parent */ 80 pid = waitpid(child, &status, 0); 85 if (pid != child) { 87 child, pid); 90 die("child did not terminate cleanly\n"); 102 die("remount root in child ns failed\n"); 106 die("blocking firmware in child n [all...] |
/linux-master/drivers/leds/ |
H A D | leds-max5970.c | 48 struct fwnode_handle *led_node, *child; local 62 fwnode_for_each_available_child_node(led_node, child) { 65 if (fwnode_property_read_u32(child, "reg", ®)) 75 fwnode_handle_put(child); 83 if (fwnode_property_read_string(child, "label", &ddata->cdev.name)) 84 ddata->cdev.name = fwnode_get_name(child); 92 fwnode_handle_put(child);
|
/linux-master/tools/testing/selftests/mm/ |
H A D | map_populate.c | 33 static void parent_f(int sock, unsigned long *smap, int child) argument 47 waitpid(child, &status, 0); 79 int sock[2], child, ret; local 104 child = fork(); 105 BUG_ON(child == -1, "fork()"); 107 if (child) { 111 parent_f(sock[1], smap, child);
|
/linux-master/crypto/ |
H A D | geniv.c | 24 return crypto_aead_setkey(ctx->child, key, keylen); 32 return crypto_aead_setauthsize(ctx->child, authsize); 113 struct crypto_aead *child; local 133 child = crypto_spawn_aead(aead_instance_ctx(inst)); 134 err = PTR_ERR(child); 135 if (IS_ERR(child)) 138 ctx->child = child; 139 crypto_aead_set_reqsize(aead, crypto_aead_reqsize(child) + 157 crypto_free_aead(ctx->child); [all...] |
/linux-master/tools/testing/selftests/rlimits/ |
H A D | rlimits-per-userns.c | 88 pid_t child[NR_CHILDS]; local 109 child[i] = fork_child(); 116 if (child[i] <= 0) 120 pid_t ret = waitpid(child[i], &wstatus[i], WNOHANG); 126 warn("(pid=%d): waitpid(%d)", pid, child[i]); 128 child[i] *= -1; 138 if (child[i] <= 0) 140 kill(child[i], SIGUSR1); 147 pid, -child[i], WEXITSTATUS(wstatus[i])); 150 pid, -child[ [all...] |
/linux-master/arch/hexagon/kernel/ |
H A D | ptrace.c | 23 void user_enable_single_step(struct task_struct *child) argument 25 pt_set_singlestep(task_pt_regs(child)); 26 set_tsk_thread_flag(child, TIF_SINGLESTEP); 29 void user_disable_single_step(struct task_struct *child) argument 31 pt_clr_singlestep(task_pt_regs(child)); 32 clear_tsk_thread_flag(child, TIF_SINGLESTEP); 163 void ptrace_disable(struct task_struct *child) argument 166 user_disable_single_step(child); 169 long arch_ptrace(struct task_struct *child, long request, argument 172 return ptrace_request(child, reques [all...] |
/linux-master/scripts/tracing/ |
H A D | draw_functrace.py | 47 @return: A reference to the newly created child node. 49 child = CallTree(func, calltime, self) 50 self._children.append(child) 51 return child 56 on a parent, then create it as new child of root 63 child = CallTree.ROOT.calls(func, None) 64 return child
|
/linux-master/drivers/bus/ |
H A D | arm-integrator-lm.c | 34 struct device_node *child; local 40 /* Walk over the child nodes and see what chipselects we use */ 41 for_each_available_child_of_node(np, child) { 44 ret = of_address_to_resource(child, 0, &res); 46 dev_info(dev, "no valid address on child\n"); 54 ret = of_platform_default_populate(child, NULL, dev); 57 of_node_put(child);
|
/linux-master/include/linux/ |
H A D | of_graph.h | 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) \ 37 for (child = of_graph_get_next_endpoint(parent, NULL); child != NULL; \ 38 child = of_graph_get_next_endpoint(parent, child))
|
/linux-master/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-noadv.c | 60 int ptrace_get_debugreg(struct task_struct *child, unsigned long addr, argument 68 dabr_fake = ((child->thread.hw_brk[0].address & (~HW_BRK_TYPE_DABR)) | 69 (child->thread.hw_brk[0].type & HW_BRK_TYPE_DABR)); 193 long ppc_set_hwdebug(struct task_struct *child, struct ppc_hw_breakpoint *bp_info) argument 198 struct thread_struct *thread = &child->thread; 243 bp = register_user_hw_breakpoint(&attr, ptrace_triggered, NULL, child); 256 i = find_empty_hw_brk(&child->thread); 263 child->thread.hw_brk[i] = brk; 268 long ppc_del_hwdebug(struct task_struct *child, long data) argument 272 struct thread_struct *thread = &child [all...] |
/linux-master/net/dccp/ |
H A D | minisocks.c | 146 struct sock *child = NULL; local 195 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL, 197 if (child) { 198 child = inet_csk_complete_hashdance(sk, child, req, own_req); 210 return child; 220 int dccp_child_process(struct sock *parent, struct sock *child, 222 __releases(child) 225 const int state = child->sk_state; 227 if (!sock_owned_by_user(child)) { [all...] |
/linux-master/tools/testing/selftests/landlock/ |
H A D | ptrace_test.c | 100 * Test multiple tracing combinations between a parent process P1 and a child 157 * Parent + child domain (siblings) 191 * Inherited + child domain 227 * Inherited + parent and child domain (siblings) 254 /* Test PTRACE_TRACEME and PTRACE_ATTACH for parent and child. */ 257 pid_t child, parent; local 273 * can_read_child is true if a parent process can read its child 275 * isolated from the child with a dedicated Landlock domain. 280 * can_trace_child is true if a parent process can trace its child 282 * - The parent process is not isolated from the child wit [all...] |
/linux-master/drivers/pci/pcie/ |
H A D | aspm.c | 262 struct pci_dev *child; local 264 list_for_each_entry(child, &linkbus->devices, bus_list) 265 if (PCI_FUNC(child->devfn) == 0) 266 return child; 330 struct pci_dev *child; local 334 list_for_each_entry(child, &linkbus->devices, bus_list) { 335 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, 338 pci_update_aspm_saved_state(child); 362 struct pci_dev *child; local 366 list_for_each_entry(child, 392 struct pci_dev *child, *parent = link->pdev; local 619 struct pci_dev *child = link->downstream, *parent = link->pdev; local 717 struct pci_dev *child = link->downstream, *parent = link->pdev; local 774 struct pci_dev *child = link->downstream, *parent = link->pdev; local 853 struct pci_dev *child = link->downstream, *parent = link->pdev; local 912 struct pci_dev *child = link->downstream, *parent = link->pdev; local 982 struct pci_dev *child; local 1058 struct pci_dev *child; local 1216 struct pci_dev *child; local [all...] |
/linux-master/tools/testing/selftests/cgroup/ |
H A D | test_kmem.c | 133 char *child; local 137 child = cg_name_indexed(parent, "child", i); 138 if (!child) 141 if (cg_create(child)) { 142 cg_destroy(child); 143 free(child); 147 if (cg_run(child, fn, NULL)) { 148 cg_destroy(child); 149 free(child); 355 char *parent, *child; local [all...] |
/linux-master/arch/xtensa/kernel/ |
H A D | ptrace.c | 225 void user_enable_single_step(struct task_struct *child) argument 227 set_tsk_thread_flag(child, TIF_SINGLESTEP); 230 void user_disable_single_step(struct task_struct *child) argument 232 clear_tsk_thread_flag(child, TIF_SINGLESTEP); 239 void ptrace_disable(struct task_struct *child) argument 244 static int ptrace_getregs(struct task_struct *child, void __user *uregs) argument 246 return copy_regset_to_user(child, &user_xtensa_view, REGSET_GPR, 250 static int ptrace_setregs(struct task_struct *child, void __user *uregs) argument 252 return copy_regset_from_user(child, &user_xtensa_view, REGSET_GPR, 256 static int ptrace_getxregs(struct task_struct *child, voi argument 262 ptrace_setxregs(struct task_struct *child, void __user *uregs) argument 268 ptrace_peekusr(struct task_struct *child, long regno, long __user *ret) argument 335 ptrace_pokeusr(struct task_struct *child, long regno, long val) argument 414 ptrace_gethbpregs(struct task_struct *child, long addr, long __user *datap) argument 448 ptrace_sethbpregs(struct task_struct *child, long addr, long __user *datap) argument 497 arch_ptrace(struct task_struct *child, long request, unsigned long addr, unsigned long data) argument [all...] |
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_pt_walk.c | 80 struct xe_ptw *child; local 91 child = entries ? entries[offset] : NULL; 93 &child, &action, walk); 101 if (likely(!level || !child || action == ACTION_CONTINUE)) 104 err = xe_pt_walk_range(child, level - 1, addr, next, walk); 108 next, &child, &action, walk); 130 * parent == *child. 144 struct xe_ptw *child = parent; local 149 &child, &action, walk); 157 &child, [all...] |
/linux-master/kernel/bpf/ |
H A D | lpm_trie.c | 26 struct lpm_trie_node __rcu *child[2]; member in struct:lpm_trie_node 61 * child pointers are %NULL. 72 * node (2) will become a child of (1). In child index depends on the next bit 74 * child[0] of (1): 90 * The child[1] slot of (1) could be filled with another node which has bit #17 110 * above (bit #17 is 0), it would normally be attached to (1) as child[0]. 138 * 192.168.1.1/32 would be a child of (5) etc. 147 * is a child that can be used to become more specific, the trie is traversed 272 node = rcu_dereference_check(node->child[next_bi [all...] |
/linux-master/tools/testing/selftests/mount/ |
H A D | unprivileged-remount-test.c | 185 pid_t child; local 187 child = fork(); 188 if (child == -1) { 192 if (child != 0) { /* parent */ 195 pid = waitpid(child, &status, 0); 200 if (pid != child) { 202 child, pid); 205 die("child did not terminate cleanly\n"); 259 pid_t child; local 265 child [all...] |