Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 438) sorted by relevance

12345678910>>...18

/linux-2.6.39/arch/score/kernel/
Dptrace.c129 read_tsk_long(struct task_struct *child, in read_tsk_long() argument
134 copied = access_process_vm(child, addr, res, sizeof(*res), 0); in read_tsk_long()
140 read_tsk_short(struct task_struct *child, in read_tsk_short() argument
145 copied = access_process_vm(child, addr, res, sizeof(*res), 0); in read_tsk_short()
151 write_tsk_short(struct task_struct *child, in write_tsk_short() argument
156 copied = access_process_vm(child, addr, &val, sizeof(val), 1); in write_tsk_short()
162 write_tsk_long(struct task_struct *child, in write_tsk_long() argument
167 copied = access_process_vm(child, addr, &val, sizeof(val), 1); in write_tsk_long()
172 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
179 struct pt_regs *regs = task_pt_regs(child); in user_enable_single_step()
[all …]
/linux-2.6.39/drivers/mfd/
Dtwl-core.c585 struct device *child; in add_children() local
589 child = add_child(SUB_CHIP_ID1, "twl4030_gpio", in add_children()
592 if (IS_ERR(child)) in add_children()
593 return PTR_ERR(child); in add_children()
597 child = add_child(SUB_CHIP_ID2, "twl4030_keypad", in add_children()
600 if (IS_ERR(child)) in add_children()
601 return PTR_ERR(child); in add_children()
605 child = add_child(2, "twl4030_madc", in add_children()
608 if (IS_ERR(child)) in add_children()
609 return PTR_ERR(child); in add_children()
[all …]
/linux-2.6.39/kernel/
Dptrace.c34 void __ptrace_link(struct task_struct *child, struct task_struct *new_parent) in __ptrace_link() argument
36 BUG_ON(!list_empty(&child->ptrace_entry)); in __ptrace_link()
37 list_add(&child->ptrace_entry, &new_parent->ptraced); in __ptrace_link()
38 child->parent = new_parent; in __ptrace_link()
48 static void ptrace_untrace(struct task_struct *child) in ptrace_untrace() argument
50 spin_lock(&child->sighand->siglock); in ptrace_untrace()
51 if (task_is_traced(child)) { in ptrace_untrace()
56 if (child->signal->flags & SIGNAL_STOP_STOPPED || in ptrace_untrace()
57 child->signal->group_stop_count) in ptrace_untrace()
58 __set_task_state(child, TASK_STOPPED); in ptrace_untrace()
[all …]
/linux-2.6.39/arch/x86/kernel/
Dstep.c9 unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs) in convert_ip_to_linear() argument
32 mutex_lock(&child->mm->context.lock); in convert_ip_to_linear()
33 if (unlikely((seg >> 3) >= child->mm->context.size)) in convert_ip_to_linear()
36 desc = child->mm->context.ldt + seg; in convert_ip_to_linear()
44 mutex_unlock(&child->mm->context.lock); in convert_ip_to_linear()
50 static int is_setting_trap_flag(struct task_struct *child, struct pt_regs *regs) in is_setting_trap_flag() argument
54 unsigned long addr = convert_ip_to_linear(child, regs); in is_setting_trap_flag()
56 copied = access_process_vm(child, addr, opcode, sizeof(opcode), 0); in is_setting_trap_flag()
104 static int enable_single_step(struct task_struct *child) in enable_single_step() argument
106 struct pt_regs *regs = task_pt_regs(child); in enable_single_step()
[all …]
/linux-2.6.39/arch/um/kernel/
Dptrace.c14 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
16 child->ptrace |= PT_DTRACE; in user_enable_single_step()
17 child->thread.singlestep_syscall = 0; in user_enable_single_step()
20 SUBARCH_SET_SINGLESTEPPING(child, 1); in user_enable_single_step()
24 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
26 child->ptrace &= ~PT_DTRACE; in user_disable_single_step()
27 child->thread.singlestep_syscall = 0; in user_disable_single_step()
30 SUBARCH_SET_SINGLESTEPPING(child, 0); in user_disable_single_step()
37 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
39 user_disable_single_step(child); in ptrace_disable()
[all …]
/linux-2.6.39/arch/m32r/kernel/
Dptrace.c217 check_condition_bit(struct task_struct *child) in check_condition_bit() argument
219 return (int)((get_stack_long(child, PT_PSW) >> 8) & 1); in check_condition_bit()
224 unsigned long regno2, struct task_struct *child) in check_condition_src() argument
228 reg2 = get_stack_long(child, reg_offset[regno2]); in check_condition_src()
232 reg1 = get_stack_long(child, reg_offset[regno1]); in check_condition_src()
235 reg1 = get_stack_long(child, reg_offset[regno1]); in check_condition_src()
258 struct task_struct *child) in compute_next_pc_for_16bit_insn() argument
280 if (!check_condition_bit(child)) { in compute_next_pc_for_16bit_insn()
288 if (check_condition_bit(child)) { in compute_next_pc_for_16bit_insn()
321 *next_pc = get_stack_long(child, PT_BPC); in compute_next_pc_for_16bit_insn()
[all …]
/linux-2.6.39/arch/powerpc/kernel/
Dptrace32.c46 static long compat_ptrace_old(struct task_struct *child, long request, in compat_ptrace_old() argument
51 return copy_regset_to_user(child, in compat_ptrace_old()
57 return copy_regset_from_user(child, in compat_ptrace_old()
72 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, in compat_arch_ptrace() argument
101 copied = access_process_vm(child, (u64)addrOthers, &tmp, in compat_arch_ptrace()
120 CHECK_FULL_REGS(child->thread.regs); in compat_arch_ptrace()
122 tmp = ptrace_get_reg(child, index); in compat_arch_ptrace()
124 flush_fp_to_thread(child); in compat_arch_ptrace()
130 tmp = ((unsigned int *)child->thread.fpr) in compat_arch_ptrace()
168 CHECK_FULL_REGS(child->thread.regs); in compat_arch_ptrace()
[all …]
Dptrace.c1030 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
1033 user_disable_single_step(child); in ptrace_disable()
1037 static long set_intruction_bp(struct task_struct *child, in set_intruction_bp() argument
1041 int slot1_in_use = ((child->thread.dbcr0 & DBCR0_IAC1) != 0); in set_intruction_bp()
1042 int slot2_in_use = ((child->thread.dbcr0 & DBCR0_IAC2) != 0); in set_intruction_bp()
1043 int slot3_in_use = ((child->thread.dbcr0 & DBCR0_IAC3) != 0); in set_intruction_bp()
1044 int slot4_in_use = ((child->thread.dbcr0 & DBCR0_IAC4) != 0); in set_intruction_bp()
1046 if (dbcr_iac_range(child) & DBCR_IAC12MODE) in set_intruction_bp()
1048 if (dbcr_iac_range(child) & DBCR_IAC34MODE) in set_intruction_bp()
1063 child->thread.iac1 = bp_info->addr; in set_intruction_bp()
[all …]
/linux-2.6.39/arch/mips/kernel/
Dptrace.c47 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
50 clear_tsk_thread_flag(child, TIF_LOAD_WATCH); in ptrace_disable()
58 int ptrace_getregs(struct task_struct *child, __s64 __user *data) in ptrace_getregs() argument
66 regs = task_pt_regs(child); in ptrace_getregs()
85 int ptrace_setregs(struct task_struct *child, __s64 __user *data) in ptrace_setregs() argument
93 regs = task_pt_regs(child); in ptrace_setregs()
106 int ptrace_getfpregs(struct task_struct *child, __u32 __user *data) in ptrace_getfpregs() argument
114 if (tsk_used_math(child)) { in ptrace_getfpregs()
115 fpureg_t *fregs = get_fpu_regs(child); in ptrace_getfpregs()
123 __put_user(child->thread.fpu.fcr31, data + 64); in ptrace_getfpregs()
[all …]
Dptrace32.c43 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, in compat_arch_ptrace() argument
73 copied = access_process_vm(child, (u64)addrOthers, &tmp, in compat_arch_ptrace()
86 regs = task_pt_regs(child); in compat_arch_ptrace()
94 if (tsk_used_math(child)) { in compat_arch_ptrace()
95 fpureg_t *fregs = get_fpu_regs(child); in compat_arch_ptrace()
126 tmp = child->thread.fpu.fcr31; in compat_arch_ptrace()
176 dregs = __get_dsp_regs(child); in compat_arch_ptrace()
186 tmp = child->thread.dsp.dspcontrol; in compat_arch_ptrace()
215 if (access_process_vm(child, (u64)addrOthers, &data, in compat_arch_ptrace()
225 regs = task_pt_regs(child); in compat_arch_ptrace()
[all …]
/linux-2.6.39/arch/m68k/kernel/
Dptrace_mm.c126 static inline void singlestep_disable(struct task_struct *child) in singlestep_disable() argument
128 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; in singlestep_disable()
129 put_reg(child, PT_SR, tmp); in singlestep_disable()
130 clear_tsk_thread_flag(child, TIF_DELAYED_TRACE); in singlestep_disable()
136 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
138 singlestep_disable(child); in ptrace_disable()
141 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
143 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; in user_enable_single_step()
144 put_reg(child, PT_SR, tmp | T1_BIT); in user_enable_single_step()
145 set_tsk_thread_flag(child, TIF_DELAYED_TRACE); in user_enable_single_step()
[all …]
Dptrace_no.c109 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
112 user_disable_single_step(child); in ptrace_disable()
115 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
134 tmp = get_reg(child, regno); in arch_ptrace()
138 tmp = child->thread.fp[regno - 21]; in arch_ptrace()
140 tmp = child->mm->start_code; in arch_ptrace()
142 tmp = child->mm->start_data; in arch_ptrace()
144 tmp = child->mm->end_code; in arch_ptrace()
159 data |= get_reg(child, PT_SR) & ~(SR_MASK << 16); in arch_ptrace()
162 if (put_reg(child, regno, data)) in arch_ptrace()
[all …]
/linux-2.6.39/arch/cris/arch-v32/kernel/
Dptrace.c32 static unsigned long get_pseudo_pc(struct task_struct *child);
81 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
89 if (!get_reg(child, PT_SPC)) { in user_enable_single_step()
91 tmp = get_reg(child, PT_ERP) & ~1; in user_enable_single_step()
92 put_reg(child, PT_SPC, tmp); in user_enable_single_step()
94 tmp = get_reg(child, PT_CCS) | SBIT_USER; in user_enable_single_step()
95 put_reg(child, PT_CCS, tmp); in user_enable_single_step()
98 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
100 put_reg(child, PT_SPC, 0); in user_disable_single_step()
102 if (!get_debugreg(child->pid, PT_BP_CTRL)) { in user_disable_single_step()
[all …]
/linux-2.6.39/arch/alpha/kernel/
Dptrace.c174 ptrace_set_bpt(struct task_struct * child) in ptrace_set_bpt() argument
180 pc = get_reg(child, REG_PC); in ptrace_set_bpt()
181 res = read_int(child, pc, (int *) &insn); in ptrace_set_bpt()
196 task_thread_info(child)->bpt_addr[nsaved++] = pc + 4; in ptrace_set_bpt()
198 task_thread_info(child)->bpt_addr[nsaved++] in ptrace_set_bpt()
203 task_thread_info(child)->bpt_addr[nsaved++] = get_reg(child, reg_b); in ptrace_set_bpt()
206 task_thread_info(child)->bpt_addr[nsaved++] = pc + 4; in ptrace_set_bpt()
212 res = read_int(child, task_thread_info(child)->bpt_addr[i], in ptrace_set_bpt()
216 task_thread_info(child)->bpt_insn[i] = insn; in ptrace_set_bpt()
218 task_thread_info(child)->bpt_addr[i])); in ptrace_set_bpt()
[all …]
/linux-2.6.39/arch/um/sys-i386/
Dptrace.c53 int putreg(struct task_struct *child, int regno, unsigned long value) in putreg() argument
60 PT_REGS_FS(&child->thread.regs) = value; in putreg()
65 PT_REGS_GS(&child->thread.regs) = value; in putreg()
81 value |= PT_REGS_EFLAGS(&child->thread.regs); in putreg()
84 PT_REGS_SET(&child->thread.regs, regno, value); in putreg()
88 int poke_user(struct task_struct *child, long addr, long data) in poke_user() argument
94 return putreg(child, addr, data); in poke_user()
101 child->thread.arch.debugregs[addr] = data; in poke_user()
107 unsigned long getreg(struct task_struct *child, int regno) in getreg() argument
122 retval &= PT_REG(&child->thread.regs, regno); in getreg()
[all …]
/linux-2.6.39/arch/um/sys-x86_64/
Dptrace.c21 int putreg(struct task_struct *child, int regno, unsigned long value) in putreg() argument
30 if (test_tsk_thread_flag(child, TIF_IA32)) in putreg()
53 tmp = PT_REGS_EFLAGS(&child->thread.regs) & ~FLAG_MASK; in putreg()
58 PT_REGS_SET(&child->thread.regs, regno, value); in putreg()
62 int poke_user(struct task_struct *child, long addr, long data) in poke_user() argument
68 return putreg(child, addr, data); in poke_user()
75 child->thread.arch.debugregs[addr] = data; in poke_user()
81 unsigned long getreg(struct task_struct *child, int regno) in getreg() argument
94 retval &= PT_REG(&child->thread.regs, regno); in getreg()
96 if (test_tsk_thread_flag(child, TIF_IA32)) in getreg()
[all …]
/linux-2.6.39/arch/tile/kernel/
Dptrace.c24 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
26 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_single_step()
29 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
31 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in user_disable_single_step()
37 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
39 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in ptrace_disable()
45 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); in ptrace_disable()
48 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
63 childreg = (char *)task_pt_regs(child) + addr; in arch_ptrace()
82 childreg = (char *)task_pt_regs(child) + addr; in arch_ptrace()
[all …]
/linux-2.6.39/arch/frv/kernel/
Dptrace.c242 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
244 child->thread.frame0->__status |= REG__STATUS_STEP; in user_enable_single_step()
247 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
249 child->thread.frame0->__status &= ~REG__STATUS_STEP; in user_disable_single_step()
252 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
254 user_disable_single_step(child); in ptrace_disable()
257 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
276 tmp = get_reg(child, regno); in arch_ptrace()
280 tmp = child->mm->end_code - child->mm->start_code; in arch_ptrace()
284 tmp = child->mm->end_data - child->mm->start_data; in arch_ptrace()
[all …]
/linux-2.6.39/arch/xtensa/kernel/
Dptrace.c34 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
36 child->ptrace |= PT_SINGLESTEP; in user_enable_single_step()
39 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
41 child->ptrace &= ~PT_SINGLESTEP; in user_disable_single_step()
48 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
53 int ptrace_getregs(struct task_struct *child, void __user *uregs) in ptrace_getregs() argument
55 struct pt_regs *regs = task_pt_regs(child); in ptrace_getregs()
82 int ptrace_setregs(struct task_struct *child, void __user *uregs) in ptrace_setregs() argument
84 struct pt_regs *regs = task_pt_regs(child); in ptrace_setregs()
119 int ptrace_getxregs(struct task_struct *child, void __user *uregs) in ptrace_getxregs() argument
[all …]
/linux-2.6.39/include/linux/
Dptrace.h103 extern long arch_ptrace(struct task_struct *child, long request,
109 extern int ptrace_request(struct task_struct *child, long request,
112 extern void __ptrace_link(struct task_struct *child,
114 extern void __ptrace_unlink(struct task_struct *child);
123 static inline int ptrace_reparented(struct task_struct *child) in ptrace_reparented() argument
125 return child->real_parent != child->parent; in ptrace_reparented()
128 static inline void ptrace_unlink(struct task_struct *child) in ptrace_unlink() argument
130 if (unlikely(child->ptrace)) in ptrace_unlink()
131 __ptrace_unlink(child); in ptrace_unlink()
182 static inline void ptrace_init_task(struct task_struct *child, bool ptrace) in ptrace_init_task() argument
[all …]
/linux-2.6.39/scripts/kconfig/
Dconf.c234 struct menu *child; in conf_choice() local
269 for (child = menu->list; child; child = child->next) { in conf_choice()
270 if (!menu_is_visible(child)) in conf_choice()
272 if (!child->sym) { in conf_choice()
273 printf("%*c %s\n", indent, '*', _(menu_get_prompt(child))); in conf_choice()
277 if (child->sym == def_sym) { in conf_choice()
282 printf(" %d. %s", cnt, _(menu_get_prompt(child))); in conf_choice()
283 if (child->sym->name) in conf_choice()
284 printf(" (%s)", child->sym->name); in conf_choice()
285 if (!sym_has_value(child->sym)) in conf_choice()
[all …]
/linux-2.6.39/arch/s390/kernel/
Dptrace.c108 static inline unsigned long __peek_user_per(struct task_struct *child, in __peek_user_per() argument
116 PER_EVENT_IFETCH : child->thread.per_user.control; in __peek_user_per()
120 0 : child->thread.per_user.start; in __peek_user_per()
124 PSW_ADDR_INSN : child->thread.per_user.end; in __peek_user_per()
131 return child->thread.per_user.start; in __peek_user_per()
134 return child->thread.per_user.end; in __peek_user_per()
138 child->thread.per_event.cause << (BITS_PER_LONG - 16); in __peek_user_per()
141 return child->thread.per_event.address; in __peek_user_per()
145 child->thread.per_event.paid << (BITS_PER_LONG - 8); in __peek_user_per()
158 static unsigned long __peek_user(struct task_struct *child, addr_t addr) in __peek_user() argument
[all …]
/linux-2.6.39/arch/h8300/kernel/
Dptrace.c39 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
48 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
50 user_disable_single_step(child); in ptrace_disable()
53 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
73 tmp = h8300_get_reg(child, regno); in arch_ptrace()
77 tmp = child->mm->start_code; in arch_ptrace()
80 tmp = child->mm->start_data; in arch_ptrace()
83 tmp = child->mm->end_code; in arch_ptrace()
86 tmp = child->mm->end_data; in arch_ptrace()
109 ret = h8300_put_reg(child, regno, data); in arch_ptrace()
[all …]
/linux-2.6.39/drivers/scsi/libsas/
Dsas_expander.c612 struct domain_device *child, in sas_ex_get_linkrate() argument
619 child->pathways = 0; in sas_ex_get_linkrate()
631 SAS_ADDR(child->sas_addr)) { in sas_ex_get_linkrate()
633 child->min_linkrate = min(parent->min_linkrate, in sas_ex_get_linkrate()
635 child->max_linkrate = max(parent->max_linkrate, in sas_ex_get_linkrate()
637 child->pathways++; in sas_ex_get_linkrate()
641 child->linkrate = min(parent_phy->linkrate, child->max_linkrate); in sas_ex_get_linkrate()
642 child->pathways = min(child->pathways, parent->pathways); in sas_ex_get_linkrate()
650 struct domain_device *child = NULL; in sas_ex_discover_end_dev() local
657 child = kzalloc(sizeof(*child), GFP_KERNEL); in sas_ex_discover_end_dev()
[all …]
/linux-2.6.39/drivers/pci/
Dprobe.c294 static void __devinit pci_read_bridge_io(struct pci_bus *child) in pci_read_bridge_io() argument
296 struct pci_dev *dev = child->self; in pci_read_bridge_io()
301 res = child->resource[0]; in pci_read_bridge_io()
329 static void __devinit pci_read_bridge_mmio(struct pci_bus *child) in pci_read_bridge_mmio() argument
331 struct pci_dev *dev = child->self; in pci_read_bridge_mmio()
336 res = child->resource[1]; in pci_read_bridge_mmio()
353 static void __devinit pci_read_bridge_mmio_pref(struct pci_bus *child) in pci_read_bridge_mmio_pref() argument
355 struct pci_dev *dev = child->self; in pci_read_bridge_mmio_pref()
360 res = child->resource[2]; in pci_read_bridge_mmio_pref()
404 void __devinit pci_read_bridge_bases(struct pci_bus *child) in pci_read_bridge_bases() argument
[all …]

12345678910>>...18