tag | line | file | source code |
tsk | 163 | arch/alpha/kernel/ptrace.c | static unsigned long get_long(struct task_struct * tsk, |
tsk | 175 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
tsk | 185 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
tsk | 195 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
tsk | 215 | arch/alpha/kernel/ptrace.c | static void put_long(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 226 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
tsk | 236 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
tsk | 246 | arch/alpha/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
tsk | 251 | arch/alpha/kernel/ptrace.c | do_wp_page(tsk, vma, addr, 1); |
tsk | 263 | arch/alpha/kernel/ptrace.c | static struct vm_area_struct * find_extend_vma(struct task_struct * tsk, |
tsk | 269 | arch/alpha/kernel/ptrace.c | vma = find_vma(tsk,addr); |
tsk | 276 | arch/alpha/kernel/ptrace.c | if (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur) |
tsk | 287 | arch/alpha/kernel/ptrace.c | static int read_long(struct task_struct * tsk, unsigned long addr, |
tsk | 290 | arch/alpha/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 308 | arch/alpha/kernel/ptrace.c | low = get_long(tsk, vma, addr); |
tsk | 312 | arch/alpha/kernel/ptrace.c | high = get_long(tsk, vma_high, addr + sizeof(long)); |
tsk | 318 | arch/alpha/kernel/ptrace.c | long l = get_long(tsk, vma, addr); |
tsk | 330 | arch/alpha/kernel/ptrace.c | static int write_long(struct task_struct * tsk, unsigned long addr, |
tsk | 333 | arch/alpha/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 348 | arch/alpha/kernel/ptrace.c | low = get_long(tsk, vma, addr); |
tsk | 349 | arch/alpha/kernel/ptrace.c | high = get_long(tsk, vma_high, addr + sizeof(long)); |
tsk | 354 | arch/alpha/kernel/ptrace.c | put_long(tsk, vma, addr, low); |
tsk | 355 | arch/alpha/kernel/ptrace.c | put_long(tsk, vma_high, addr + sizeof(long), high); |
tsk | 357 | arch/alpha/kernel/ptrace.c | put_long(tsk, vma, addr, data); |
tsk | 364 | arch/alpha/kernel/ptrace.c | static int read_int(struct task_struct * tsk, unsigned long addr, |
tsk | 373 | arch/alpha/kernel/ptrace.c | res = read_long(tsk, addr, &l); |
tsk | 391 | arch/alpha/kernel/ptrace.c | static int write_int(struct task_struct * tsk, unsigned long addr, |
tsk | 400 | arch/alpha/kernel/ptrace.c | res = read_long(tsk, addr, &l); |
tsk | 409 | arch/alpha/kernel/ptrace.c | return write_long(tsk, addr, l); |
tsk | 86 | arch/i386/kernel/ptrace.c | static unsigned long get_long(struct task_struct * tsk, |
tsk | 97 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
tsk | 107 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
tsk | 117 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 0); |
tsk | 137 | arch/i386/kernel/ptrace.c | static void put_long(struct task_struct * tsk, struct vm_area_struct * vma, unsigned long addr, |
tsk | 148 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
tsk | 158 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
tsk | 168 | arch/i386/kernel/ptrace.c | do_no_page(tsk, vma, addr, 1); |
tsk | 173 | arch/i386/kernel/ptrace.c | do_wp_page(tsk, vma, addr, 1); |
tsk | 185 | arch/i386/kernel/ptrace.c | static struct vm_area_struct * find_extend_vma(struct task_struct * tsk, unsigned long addr) |
tsk | 190 | arch/i386/kernel/ptrace.c | vma = find_vma(tsk,addr); |
tsk | 197 | arch/i386/kernel/ptrace.c | if (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur) |
tsk | 208 | arch/i386/kernel/ptrace.c | static int read_long(struct task_struct * tsk, unsigned long addr, |
tsk | 211 | arch/i386/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 224 | arch/i386/kernel/ptrace.c | low = get_long(tsk, vma, addr & ~(sizeof(long)-1)); |
tsk | 225 | arch/i386/kernel/ptrace.c | high = get_long(tsk, vma_high, (addr+sizeof(long)) & ~(sizeof(long)-1)); |
tsk | 242 | arch/i386/kernel/ptrace.c | *result = get_long(tsk, vma, addr); |
tsk | 250 | arch/i386/kernel/ptrace.c | static int write_long(struct task_struct * tsk, unsigned long addr, |
tsk | 253 | arch/i386/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 266 | arch/i386/kernel/ptrace.c | low = get_long(tsk, vma, addr & ~(sizeof(long)-1)); |
tsk | 267 | arch/i386/kernel/ptrace.c | high = get_long(tsk, vma_high, (addr+sizeof(long)) & ~(sizeof(long)-1)); |
tsk | 291 | arch/i386/kernel/ptrace.c | put_long(tsk, vma, addr & ~(sizeof(long)-1),low); |
tsk | 292 | arch/i386/kernel/ptrace.c | put_long(tsk, vma_high, (addr+sizeof(long)) & ~(sizeof(long)-1),high); |
tsk | 294 | arch/i386/kernel/ptrace.c | put_long(tsk, vma, addr, data); |
tsk | 38 | arch/i386/kernel/traps.c | #define DO_ERROR(trapnr, signr, str, name, tsk) \ |
tsk | 41 | arch/i386/kernel/traps.c | tsk->tss.error_code = error_code; \ |
tsk | 42 | arch/i386/kernel/traps.c | tsk->tss.trap_no = trapnr; \ |
tsk | 45 | arch/i386/kernel/traps.c | send_sig(signr, tsk, 1); \ |
tsk | 70 | arch/i386/kernel/vm86.c | static void mark_screen_rdonly(struct task_struct * tsk) |
tsk | 77 | arch/i386/kernel/vm86.c | pgd = pgd_offset(tsk->mm, 0xA0000); |
tsk | 162 | arch/mips/kernel/ptrace.c | static struct vm_area_struct * find_extend_vma(struct task_struct * tsk, unsigned long addr) |
tsk | 167 | arch/mips/kernel/ptrace.c | vma = find_vma(tsk, addr); |
tsk | 174 | arch/mips/kernel/ptrace.c | if (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur) |
tsk | 185 | arch/mips/kernel/ptrace.c | static int read_long(struct task_struct * tsk, unsigned long addr, |
tsk | 188 | arch/mips/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 227 | arch/mips/kernel/ptrace.c | static int write_long(struct task_struct * tsk, unsigned long addr, |
tsk | 230 | arch/mips/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 19 | arch/sparc/mm/loadmmu.c | unsigned long (*alloc_kernel_stack)(struct task_struct *tsk); |
tsk | 22 | arch/sparc/mm/loadmmu.c | void (*free_task_struct)(struct task_struct *tsk); |
tsk | 59 | arch/sparc/mm/loadmmu.c | void (*switch_to_context)(struct task_struct *tsk); |
tsk | 225 | arch/sparc/mm/srmmu.c | static void srmmu_update_rootmmu_dir(struct task_struct *tsk, pgd_t *pgdp) |
tsk | 227 | arch/sparc/mm/srmmu.c | if(tsk->mm->context != NO_CONTEXT) |
tsk | 228 | arch/sparc/mm/srmmu.c | srmmu_ctxd_set(&srmmu_context_table[tsk->mm->context], pgdp); |
tsk | 693 | arch/sparc/mm/srmmu.c | static void srmmu_switch_to_context(struct task_struct *tsk) |
tsk | 700 | arch/sparc/mm/srmmu.c | if((tsk->tss.flags & SPARC_FLAG_KTHREAD) || |
tsk | 701 | arch/sparc/mm/srmmu.c | (tsk->flags & PF_EXITING)) |
tsk | 703 | arch/sparc/mm/srmmu.c | if(tsk->mm->context == NO_CONTEXT) { |
tsk | 704 | arch/sparc/mm/srmmu.c | alloc_context(tsk->mm); |
tsk | 705 | arch/sparc/mm/srmmu.c | srmmu_ctxd_set(&srmmu_context_table[tsk->mm->context], tsk->mm->pgd); |
tsk | 707 | arch/sparc/mm/srmmu.c | srmmu_set_context(tsk->mm->context); |
tsk | 901 | arch/sparc/mm/srmmu.c | unsigned long srmmu_alloc_kernel_stack(struct task_struct *tsk) |
tsk | 912 | arch/sparc/mm/srmmu.c | static void srmmu_free_task_struct(struct task_struct *tsk) |
tsk | 914 | arch/sparc/mm/srmmu.c | free_page((unsigned long) tsk); |
tsk | 717 | arch/sparc/mm/sun4c.c | static unsigned long sun4c_alloc_kernel_stack(struct task_struct *tsk) |
tsk | 719 | arch/sparc/mm/sun4c.c | unsigned long saddr = (unsigned long) tsk; |
tsk | 752 | arch/sparc/mm/sun4c.c | static void sun4c_free_task_struct(struct task_struct *tsk) |
tsk | 754 | arch/sparc/mm/sun4c.c | unsigned long tsaddr = (unsigned long) tsk; |
tsk | 1010 | arch/sparc/mm/sun4c.c | static void sun4c_switch_to_context(struct task_struct *tsk) |
tsk | 1017 | arch/sparc/mm/sun4c.c | if((tsk->tss.flags & SPARC_FLAG_KTHREAD) || |
tsk | 1018 | arch/sparc/mm/sun4c.c | (tsk->flags & PF_EXITING)) |
tsk | 1020 | arch/sparc/mm/sun4c.c | if(tsk->mm->context == NO_CONTEXT) |
tsk | 1021 | arch/sparc/mm/sun4c.c | sun4c_alloc_context(tsk->mm); |
tsk | 1023 | arch/sparc/mm/sun4c.c | sun4c_set_context(tsk->mm->context); |
tsk | 1205 | arch/sparc/mm/sun4c.c | static void sun4c_update_rootmmu_dir(struct task_struct *tsk, pgd_t *pgdir) |
tsk | 466 | fs/proc/array.c | # define KSTK_EIP(tsk) (((unsigned long *)tsk->kernel_stack_page)[1019]) |
tsk | 467 | fs/proc/array.c | # define KSTK_ESP(tsk) (((unsigned long *)tsk->kernel_stack_page)[1022]) |
tsk | 474 | fs/proc/array.c | # define KSTK_EIP(tsk) (*(unsigned long *)(tsk->kernel_stack_page + PT_REG(pc))) |
tsk | 475 | fs/proc/array.c | # define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->tss.usp) |
tsk | 625 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
tsk | 627 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
tsk | 629 | fs/proc/array.c | buffer = task_name(tsk, buffer); |
tsk | 630 | fs/proc/array.c | buffer = task_state(tsk, buffer); |
tsk | 631 | fs/proc/array.c | buffer = task_mem(tsk, buffer); |
tsk | 632 | fs/proc/array.c | buffer = task_sig(tsk, buffer); |
tsk | 638 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
tsk | 645 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
tsk | 647 | fs/proc/array.c | if (tsk->state < 0 || tsk->state > 5) |
tsk | 650 | fs/proc/array.c | state = "RSDZTW"[tsk->state]; |
tsk | 652 | fs/proc/array.c | if (tsk->mm && tsk->mm != &init_mm) { |
tsk | 653 | fs/proc/array.c | struct vm_area_struct *vma = tsk->mm->mmap; |
tsk | 658 | fs/proc/array.c | if (tsk->kernel_stack_page) { |
tsk | 659 | fs/proc/array.c | eip = KSTK_EIP(tsk); |
tsk | 660 | fs/proc/array.c | esp = KSTK_ESP(tsk); |
tsk | 663 | fs/proc/array.c | wchan = get_wchan(tsk); |
tsk | 664 | fs/proc/array.c | if (tsk->sig) { |
tsk | 667 | fs/proc/array.c | switch((unsigned long) tsk->sig->action[i].sa_handler) { |
tsk | 679 | fs/proc/array.c | if (tsk->tty) |
tsk | 680 | fs/proc/array.c | tty_pgrp = tsk->tty->pgrp; |
tsk | 686 | fs/proc/array.c | priority = tsk->counter; |
tsk | 688 | fs/proc/array.c | nice = tsk->priority; |
tsk | 695 | fs/proc/array.c | tsk->comm, |
tsk | 697 | fs/proc/array.c | tsk->p_pptr->pid, |
tsk | 698 | fs/proc/array.c | tsk->pgrp, |
tsk | 699 | fs/proc/array.c | tsk->session, |
tsk | 700 | fs/proc/array.c | tsk->tty ? kdev_t_to_nr(tsk->tty->device) : 0, |
tsk | 702 | fs/proc/array.c | tsk->flags, |
tsk | 703 | fs/proc/array.c | tsk->min_flt, |
tsk | 704 | fs/proc/array.c | tsk->cmin_flt, |
tsk | 705 | fs/proc/array.c | tsk->maj_flt, |
tsk | 706 | fs/proc/array.c | tsk->cmaj_flt, |
tsk | 707 | fs/proc/array.c | tsk->utime, |
tsk | 708 | fs/proc/array.c | tsk->stime, |
tsk | 709 | fs/proc/array.c | tsk->cutime, |
tsk | 710 | fs/proc/array.c | tsk->cstime, |
tsk | 713 | fs/proc/array.c | tsk->timeout, |
tsk | 714 | fs/proc/array.c | tsk->it_real_value, |
tsk | 715 | fs/proc/array.c | tsk->start_time, |
tsk | 717 | fs/proc/array.c | tsk->mm ? tsk->mm->rss : 0, /* you might want to shift this left 3 */ |
tsk | 718 | fs/proc/array.c | tsk->rlim ? tsk->rlim[RLIMIT_RSS].rlim_cur : 0, |
tsk | 719 | fs/proc/array.c | tsk->mm ? tsk->mm->start_code : 0, |
tsk | 720 | fs/proc/array.c | tsk->mm ? tsk->mm->end_code : 0, |
tsk | 721 | fs/proc/array.c | tsk->mm ? tsk->mm->start_stack : 0, |
tsk | 724 | fs/proc/array.c | tsk->signal, |
tsk | 725 | fs/proc/array.c | tsk->blocked, |
tsk | 806 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
tsk | 809 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
tsk | 811 | fs/proc/array.c | if (tsk->mm && tsk->mm != &init_mm) { |
tsk | 812 | fs/proc/array.c | struct vm_area_struct * vma = tsk->mm->mmap; |
tsk | 815 | fs/proc/array.c | pgd_t *pgd = pgd_offset(tsk->mm, vma->vm_start); |
tsk | 26 | fs/proc/mem.c | static int check_range(struct task_struct * tsk, unsigned long addr, int count) |
tsk | 31 | fs/proc/mem.c | vma = find_vma(tsk, addr); |
tsk | 59 | fs/proc/mem.c | struct task_struct * tsk; |
tsk | 68 | fs/proc/mem.c | tsk = NULL; |
tsk | 71 | fs/proc/mem.c | tsk = task[i]; |
tsk | 74 | fs/proc/mem.c | if (!tsk) |
tsk | 77 | fs/proc/mem.c | count = check_range(tsk, addr, count); |
tsk | 84 | fs/proc/mem.c | page_dir = pgd_offset(tsk->mm,addr); |
tsk | 124 | fs/proc/mem.c | struct task_struct * tsk; |
tsk | 134 | fs/proc/mem.c | tsk = NULL; |
tsk | 137 | fs/proc/mem.c | tsk = task[i]; |
tsk | 140 | fs/proc/mem.c | if (!tsk) |
tsk | 146 | fs/proc/mem.c | page_dir = pgd_offset(tsk,addr); |
tsk | 206 | fs/proc/mem.c | struct task_struct *tsk; |
tsk | 216 | fs/proc/mem.c | tsk = NULL; |
tsk | 219 | fs/proc/mem.c | tsk = task[i]; |
tsk | 223 | fs/proc/mem.c | if (!tsk) |
tsk | 231 | fs/proc/mem.c | src_vma = tsk->mm->mmap; |
tsk | 239 | fs/proc/mem.c | src_dir = pgd_offset(tsk->mm, stmp); |
tsk | 266 | fs/proc/mem.c | src_vma = tsk->mm->mmap; |
tsk | 274 | fs/proc/mem.c | src_dir = pgd_offset(tsk->mm, stmp); |
tsk | 287 | fs/proc/mem.c | do_no_page(tsk, src_vma, stmp, 1); |
tsk | 290 | fs/proc/mem.c | do_wp_page(tsk, src_vma, stmp, 1); |
tsk | 282 | include/asm-alpha/pgtable.h | extern inline void SET_PAGE_DIR(struct task_struct * tsk, pgd_t * pgdir) |
tsk | 285 | include/asm-alpha/pgtable.h | tsk->tss.ptbr = ((unsigned long) pgdir - PAGE_OFFSET) >> PAGE_SHIFT; |
tsk | 286 | include/asm-alpha/pgtable.h | if (tsk == current) |
tsk | 291 | include/asm-alpha/pgtable.h | : "r" (&tsk->tss), "i" (PAL_swpctx) |
tsk | 295 | include/asm-alpha/pgtable.h | #define PAGE_DIR_OFFSET(tsk,address) pgd_offset((tsk),(address)) |
tsk | 282 | include/asm-i386/pgtable.h | #define SET_PAGE_DIR(tsk,pgdir) \ |
tsk | 284 | include/asm-i386/pgtable.h | (tsk)->tss.cr3 = (unsigned long) (pgdir); \ |
tsk | 285 | include/asm-i386/pgtable.h | if ((tsk) == current) \ |
tsk | 286 | include/asm-i386/pgtable.h | __asm__ __volatile__("movl %0,%%cr3": :"a" ((tsk)->tss.cr3)); \ |
tsk | 34 | include/asm-i386/system.h | #define loaddebug(tsk,register) \ |
tsk | 38 | include/asm-i386/system.h | :"m" (tsk->debugreg[register]) \ |
tsk | 197 | include/asm-mips/pgtable.h | #define SET_PAGE_DIR(tsk,pgdir) \ |
tsk | 199 | include/asm-mips/pgtable.h | (tsk)->tss.pg_dir = ((unsigned long) (pgdir)) - PT_OFFSET; \ |
tsk | 200 | include/asm-mips/pgtable.h | if ((tsk) == current) \ |
tsk | 204 | include/asm-mips/pgtable.h | load_pgd((tsk)->tss.pg_dir); \ |
tsk | 197 | include/asm-mips/processor.h | asmlinkage void resume(struct task_struct *tsk, int offset); |
tsk | 188 | include/asm-ppc/pgtable.h | #define SET_PAGE_DIR(tsk,pgdir) \ |
tsk | 190 | include/asm-ppc/pgtable.h | (tsk)->tss.pg_tables = (unsigned long *)(pgdir); \ |
tsk | 191 | include/asm-ppc/pgtable.h | if ((tsk) == current) \ |
tsk | 149 | include/asm-sparc/pgtable.h | #define SET_PAGE_DIR(tsk,pgdir) sparc_update_rootmmu_dir(tsk, pgdir) |
tsk | 255 | include/asm-sparc/pgtable.h | extern void (*switch_to_context)(struct task_struct *tsk); |
tsk | 130 | include/asm-sparc/processor.h | extern unsigned long (*alloc_kernel_stack)(struct task_struct *tsk); |
tsk | 133 | include/asm-sparc/processor.h | extern void (*free_task_struct)(struct task_struct *tsk); |
tsk | 169 | include/linux/mm.h | extern unsigned long put_dirty_page(struct task_struct * tsk,unsigned long page, |
tsk | 172 | include/linux/mm.h | extern void free_page_tables(struct task_struct * tsk); |
tsk | 173 | include/linux/mm.h | extern void clear_page_tables(struct task_struct * tsk); |
tsk | 174 | include/linux/mm.h | extern int new_page_tables(struct task_struct * tsk); |
tsk | 184 | include/linux/mm.h | extern void do_wp_page(struct task_struct * tsk, struct vm_area_struct * vma, unsigned long address, int write_access); |
tsk | 185 | include/linux/mm.h | extern void do_no_page(struct task_struct * tsk, struct vm_area_struct * vma, unsigned long address, int write_access); |
tsk | 190 | include/linux/mm.h | extern void oom(struct task_struct * tsk); |
tsk | 343 | include/linux/sched.h | extern void wake_up_process(struct task_struct * tsk); |
tsk | 345 | include/linux/sched.h | extern void notify_parent(struct task_struct * tsk); |
tsk | 77 | kernel/exit.c | void notify_parent(struct task_struct * tsk) |
tsk | 79 | kernel/exit.c | if (tsk->p_pptr == task[smp_num_cpus]) /* Init */ |
tsk | 80 | kernel/exit.c | tsk->exit_signal = SIGCHLD; |
tsk | 81 | kernel/exit.c | send_sig(tsk->exit_signal, tsk->p_pptr, 1); |
tsk | 82 | kernel/exit.c | wake_up_interruptible(&tsk->p_pptr->wait_chldexit); |
tsk | 365 | kernel/exit.c | static inline void __exit_files(struct task_struct *tsk) |
tsk | 367 | kernel/exit.c | struct files_struct * files = tsk->files; |
tsk | 370 | kernel/exit.c | tsk->files = NULL; |
tsk | 385 | kernel/exit.c | void exit_files(struct task_struct *tsk) |
tsk | 387 | kernel/exit.c | __exit_files(tsk); |
tsk | 390 | kernel/exit.c | static inline void __exit_fs(struct task_struct *tsk) |
tsk | 392 | kernel/exit.c | struct fs_struct * fs = tsk->fs; |
tsk | 395 | kernel/exit.c | tsk->fs = NULL; |
tsk | 404 | kernel/exit.c | void exit_fs(struct task_struct *tsk) |
tsk | 406 | kernel/exit.c | __exit_fs(tsk); |
tsk | 409 | kernel/exit.c | static inline void __exit_sighand(struct task_struct *tsk) |
tsk | 411 | kernel/exit.c | struct signal_struct * sig = tsk->sig; |
tsk | 414 | kernel/exit.c | tsk->sig = NULL; |
tsk | 421 | kernel/exit.c | void exit_sighand(struct task_struct *tsk) |
tsk | 423 | kernel/exit.c | __exit_sighand(tsk); |
tsk | 115 | kernel/fork.c | static inline int copy_mm(unsigned long clone_flags, struct task_struct * tsk) |
tsk | 118 | kernel/fork.c | SET_PAGE_DIR(tsk, current->mm->pgd); |
tsk | 122 | kernel/fork.c | tsk->mm = kmalloc(sizeof(*tsk->mm), GFP_KERNEL); |
tsk | 123 | kernel/fork.c | if (!tsk->mm) |
tsk | 125 | kernel/fork.c | *tsk->mm = *current->mm; |
tsk | 126 | kernel/fork.c | tsk->mm->count = 1; |
tsk | 127 | kernel/fork.c | tsk->mm->def_flags = 0; |
tsk | 128 | kernel/fork.c | tsk->min_flt = tsk->maj_flt = 0; |
tsk | 129 | kernel/fork.c | tsk->cmin_flt = tsk->cmaj_flt = 0; |
tsk | 130 | kernel/fork.c | tsk->nswap = tsk->cnswap = 0; |
tsk | 131 | kernel/fork.c | if (new_page_tables(tsk)) |
tsk | 133 | kernel/fork.c | if (dup_mmap(tsk->mm)) { |
tsk | 134 | kernel/fork.c | free_page_tables(tsk); |
tsk | 140 | kernel/fork.c | static inline int copy_fs(unsigned long clone_flags, struct task_struct * tsk) |
tsk | 146 | kernel/fork.c | tsk->fs = kmalloc(sizeof(*tsk->fs), GFP_KERNEL); |
tsk | 147 | kernel/fork.c | if (!tsk->fs) |
tsk | 149 | kernel/fork.c | tsk->fs->count = 1; |
tsk | 150 | kernel/fork.c | tsk->fs->umask = current->fs->umask; |
tsk | 151 | kernel/fork.c | if ((tsk->fs->root = current->fs->root)) |
tsk | 152 | kernel/fork.c | tsk->fs->root->i_count++; |
tsk | 153 | kernel/fork.c | if ((tsk->fs->pwd = current->fs->pwd)) |
tsk | 154 | kernel/fork.c | tsk->fs->pwd->i_count++; |
tsk | 158 | kernel/fork.c | static inline int copy_files(unsigned long clone_flags, struct task_struct * tsk) |
tsk | 166 | kernel/fork.c | tsk->files = kmalloc(sizeof(*tsk->files), GFP_KERNEL); |
tsk | 167 | kernel/fork.c | if (!tsk->files) |
tsk | 169 | kernel/fork.c | tsk->files->count = 1; |
tsk | 170 | kernel/fork.c | memcpy(&tsk->files->close_on_exec, ¤t->files->close_on_exec, |
tsk | 171 | kernel/fork.c | sizeof(tsk->files->close_on_exec)); |
tsk | 176 | kernel/fork.c | tsk->files->fd[i] = f; |
tsk | 181 | kernel/fork.c | static inline int copy_sighand(unsigned long clone_flags, struct task_struct * tsk) |
tsk | 187 | kernel/fork.c | tsk->sig = kmalloc(sizeof(*tsk->sig), GFP_KERNEL); |
tsk | 188 | kernel/fork.c | if (!tsk->sig) |
tsk | 190 | kernel/fork.c | tsk->sig->count = 1; |
tsk | 191 | kernel/fork.c | memcpy(tsk->sig->action, current->sig->action, sizeof(tsk->sig->action)); |
tsk | 128 | mm/memory.c | void clear_page_tables(struct task_struct * tsk) |
tsk | 133 | mm/memory.c | page_dir = tsk->mm->pgd; |
tsk | 135 | mm/memory.c | printk("%s trying to clear kernel page-directory: not good\n", tsk->comm); |
tsk | 140 | mm/memory.c | invalidate_mm(tsk->mm); |
tsk | 149 | mm/memory.c | void free_page_tables(struct task_struct * tsk) |
tsk | 154 | mm/memory.c | page_dir = tsk->mm->pgd; |
tsk | 156 | mm/memory.c | printk("%s trying to free kernel page-directory: not good\n", tsk->comm); |
tsk | 159 | mm/memory.c | invalidate_mm(tsk->mm); |
tsk | 160 | mm/memory.c | SET_PAGE_DIR(tsk, swapper_pg_dir); |
tsk | 161 | mm/memory.c | tsk->mm->pgd = swapper_pg_dir; /* or else... */ |
tsk | 167 | mm/memory.c | int new_page_tables(struct task_struct * tsk) |
tsk | 176 | mm/memory.c | invalidate_mm(tsk->mm); |
tsk | 177 | mm/memory.c | SET_PAGE_DIR(tsk, new_pg); |
tsk | 178 | mm/memory.c | tsk->mm->pgd = new_pg; |
tsk | 535 | mm/memory.c | unsigned long put_dirty_page(struct task_struct * tsk, unsigned long page, unsigned long address) |
tsk | 545 | mm/memory.c | pgd = pgd_offset(tsk->mm,address); |
tsk | 549 | mm/memory.c | oom(tsk); |
tsk | 555 | mm/memory.c | oom(tsk); |
tsk | 585 | mm/memory.c | void do_wp_page(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 613 | mm/memory.c | tsk->min_flt++; |
tsk | 629 | mm/memory.c | oom(tsk); |
tsk | 640 | mm/memory.c | send_sig(SIGKILL, tsk, 1); |
tsk | 644 | mm/memory.c | send_sig(SIGKILL, tsk, 1); |
tsk | 648 | mm/memory.c | send_sig(SIGKILL, tsk, 1); |
tsk | 737 | mm/memory.c | static inline void get_empty_page(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 747 | mm/memory.c | tsk->min_flt++; |
tsk | 749 | mm/memory.c | oom(tsk); |
tsk | 836 | mm/memory.c | static inline pte_t * get_empty_pgtable(struct task_struct * tsk,unsigned long address) |
tsk | 842 | mm/memory.c | pgd = pgd_offset(tsk->mm, address); |
tsk | 845 | mm/memory.c | oom(tsk); |
tsk | 850 | mm/memory.c | oom(tsk); |
tsk | 856 | mm/memory.c | static inline void do_swap_page(struct task_struct * tsk, |
tsk | 863 | mm/memory.c | swap_in(tsk, vma, page_table, pte_val(entry), write_access); |
tsk | 874 | mm/memory.c | ++tsk->maj_flt; |
tsk | 885 | mm/memory.c | void do_no_page(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 892 | mm/memory.c | page_table = get_empty_pgtable(tsk, address); |
tsk | 899 | mm/memory.c | do_swap_page(tsk, vma, address, page_table, entry, write_access); |
tsk | 904 | mm/memory.c | get_empty_page(tsk, vma, page_table, write_access); |
tsk | 907 | mm/memory.c | ++tsk->maj_flt; |
tsk | 311 | mm/page_alloc.c | void swap_in(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 323 | mm/page_alloc.c | oom(tsk); |
tsk | 332 | mm/page_alloc.c | tsk->maj_flt++; |
tsk | 70 | mm/vmscan.c | static inline int try_to_swap_out(struct task_struct * tsk, struct vm_area_struct* vma, |
tsk | 103 | mm/vmscan.c | pid_t pid = tsk->pid; |
tsk | 115 | mm/vmscan.c | tsk->nswap++; |
tsk | 155 | mm/vmscan.c | static inline int swap_out_pmd(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 177 | mm/vmscan.c | tsk->swap_address = address + PAGE_SIZE; |
tsk | 178 | mm/vmscan.c | result = try_to_swap_out(tsk, vma, address, pte, dma, wait); |
tsk | 187 | mm/vmscan.c | static inline int swap_out_pgd(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 208 | mm/vmscan.c | int result = swap_out_pmd(tsk, vma, pmd, address, end, dma, wait); |
tsk | 217 | mm/vmscan.c | static int swap_out_vma(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 229 | mm/vmscan.c | int result = swap_out_pgd(tsk, vma, pgdir, start, end, dma, wait); |
tsk | 609 | net/unix/af_unix.c | unix_socket *newsk, *tsk; |
tsk | 651 | net/unix/af_unix.c | tsk=skb->sk; |
tsk | 654 | net/unix/af_unix.c | newsk->protinfo.af_unix.other=tsk; |
tsk | 655 | net/unix/af_unix.c | tsk->protinfo.af_unix.other=newsk; |
tsk | 656 | net/unix/af_unix.c | tsk->state=TCP_ESTABLISHED; |
tsk | 660 | net/unix/af_unix.c | tsk->protinfo.af_unix.locks++; /* Back lock */ |
tsk | 662 | net/unix/af_unix.c | tsk->state_change(tsk); /* Wake up any sleeping connect */ |
tsk | 663 | net/unix/af_unix.c | sock_wake_async(tsk->socket, 0); |