Lines Matching refs:tk
209 static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags) in kill_proc() argument
211 struct task_struct *t = tk->tsk; in kill_proc()
212 short addr_lsb = tk->size_shift; in kill_proc()
219 ret = force_sig_mceerr(BUS_MCEERR_AR, (void __user *)tk->addr, in kill_proc()
228 ret = send_sig_mceerr(BUS_MCEERR_AO, (void __user *)tk->addr, in kill_proc()
313 struct to_kill *tk; in add_to_kill() local
316 tk = *tkc; in add_to_kill()
319 tk = kmalloc(sizeof(struct to_kill), GFP_ATOMIC); in add_to_kill()
320 if (!tk) { in add_to_kill()
325 tk->addr = page_address_in_vma(p, vma); in add_to_kill()
327 tk->size_shift = dev_pagemap_mapping_shift(p, vma); in add_to_kill()
329 tk->size_shift = compound_order(compound_head(p)) + PAGE_SHIFT; in add_to_kill()
341 if (tk->addr == -EFAULT) { in add_to_kill()
344 } else if (tk->size_shift == 0) { in add_to_kill()
345 kfree(tk); in add_to_kill()
349 tk->tsk = tsk; in add_to_kill()
350 list_add_tail(&tk->nd, to_kill); in add_to_kill()
364 struct to_kill *tk, *next; in kill_procs() local
366 list_for_each_entry_safe (tk, next, to_kill, nd) { in kill_procs()
373 if (fail || tk->addr == -EFAULT) { in kill_procs()
375 pfn, tk->tsk->comm, tk->tsk->pid); in kill_procs()
377 tk->tsk, PIDTYPE_PID); in kill_procs()
386 else if (kill_proc(tk, pfn, flags) < 0) in kill_procs()
388 pfn, tk->tsk->comm, tk->tsk->pid); in kill_procs()
390 put_task_struct(tk->tsk); in kill_procs()
391 kfree(tk); in kill_procs()
515 struct to_kill *tk; in collect_procs() local
520 tk = kmalloc(sizeof(struct to_kill), GFP_NOIO); in collect_procs()
521 if (!tk) in collect_procs()
524 collect_procs_anon(page, tokill, &tk, force_early); in collect_procs()
526 collect_procs_file(page, tokill, &tk, force_early); in collect_procs()
527 kfree(tk); in collect_procs()
1162 struct to_kill *tk; in memory_failure_dev_pagemap() local
1207 list_for_each_entry(tk, &tokill, nd) in memory_failure_dev_pagemap()
1208 if (tk->size_shift) in memory_failure_dev_pagemap()
1209 size = max(size, 1UL << tk->size_shift); in memory_failure_dev_pagemap()