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 | 463 | fs/proc/array.c | # define KSTK_EIP(tsk) (((unsigned long *)tsk->kernel_stack_page)[1019]) |
tsk | 464 | fs/proc/array.c | # define KSTK_ESP(tsk) (((unsigned long *)tsk->kernel_stack_page)[1022]) |
tsk | 471 | fs/proc/array.c | # define KSTK_EIP(tsk) (*(unsigned long *)(tsk->kernel_stack_page + PT_REG(pc))) |
tsk | 472 | fs/proc/array.c | # define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->tss.usp) |
tsk | 622 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
tsk | 624 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
tsk | 626 | fs/proc/array.c | buffer = task_name(tsk, buffer); |
tsk | 627 | fs/proc/array.c | buffer = task_state(tsk, buffer); |
tsk | 628 | fs/proc/array.c | buffer = task_mem(tsk, buffer); |
tsk | 629 | fs/proc/array.c | buffer = task_sig(tsk, buffer); |
tsk | 635 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
tsk | 642 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
tsk | 644 | fs/proc/array.c | if (tsk->state < 0 || tsk->state > 5) |
tsk | 647 | fs/proc/array.c | state = "RSDZTW"[tsk->state]; |
tsk | 649 | fs/proc/array.c | if (tsk->mm && tsk->mm != &init_mm) { |
tsk | 650 | fs/proc/array.c | struct vm_area_struct *vma = tsk->mm->mmap; |
tsk | 655 | fs/proc/array.c | if (tsk->kernel_stack_page) { |
tsk | 656 | fs/proc/array.c | eip = KSTK_EIP(tsk); |
tsk | 657 | fs/proc/array.c | esp = KSTK_ESP(tsk); |
tsk | 660 | fs/proc/array.c | wchan = get_wchan(tsk); |
tsk | 661 | fs/proc/array.c | if (tsk->sig) { |
tsk | 664 | fs/proc/array.c | switch((unsigned long) tsk->sig->action[i].sa_handler) { |
tsk | 676 | fs/proc/array.c | if (tsk->tty) |
tsk | 677 | fs/proc/array.c | tty_pgrp = tsk->tty->pgrp; |
tsk | 683 | fs/proc/array.c | priority = tsk->counter; |
tsk | 685 | fs/proc/array.c | nice = tsk->priority; |
tsk | 692 | fs/proc/array.c | tsk->comm, |
tsk | 694 | fs/proc/array.c | tsk->p_pptr->pid, |
tsk | 695 | fs/proc/array.c | tsk->pgrp, |
tsk | 696 | fs/proc/array.c | tsk->session, |
tsk | 697 | fs/proc/array.c | tsk->tty ? kdev_t_to_nr(tsk->tty->device) : 0, |
tsk | 699 | fs/proc/array.c | tsk->flags, |
tsk | 700 | fs/proc/array.c | tsk->min_flt, |
tsk | 701 | fs/proc/array.c | tsk->cmin_flt, |
tsk | 702 | fs/proc/array.c | tsk->maj_flt, |
tsk | 703 | fs/proc/array.c | tsk->cmaj_flt, |
tsk | 704 | fs/proc/array.c | tsk->utime, |
tsk | 705 | fs/proc/array.c | tsk->stime, |
tsk | 706 | fs/proc/array.c | tsk->cutime, |
tsk | 707 | fs/proc/array.c | tsk->cstime, |
tsk | 710 | fs/proc/array.c | tsk->timeout, |
tsk | 711 | fs/proc/array.c | tsk->it_real_value, |
tsk | 712 | fs/proc/array.c | tsk->start_time, |
tsk | 714 | fs/proc/array.c | tsk->mm ? tsk->mm->rss : 0, /* you might want to shift this left 3 */ |
tsk | 715 | fs/proc/array.c | tsk->rlim ? tsk->rlim[RLIMIT_RSS].rlim_cur : 0, |
tsk | 716 | fs/proc/array.c | tsk->mm ? tsk->mm->start_code : 0, |
tsk | 717 | fs/proc/array.c | tsk->mm ? tsk->mm->end_code : 0, |
tsk | 718 | fs/proc/array.c | tsk->mm ? tsk->mm->start_stack : 0, |
tsk | 721 | fs/proc/array.c | tsk->signal, |
tsk | 722 | fs/proc/array.c | tsk->blocked, |
tsk | 803 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
tsk | 806 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
tsk | 808 | fs/proc/array.c | if (tsk->mm && tsk->mm != &init_mm) { |
tsk | 809 | fs/proc/array.c | struct vm_area_struct * vma = tsk->mm->mmap; |
tsk | 812 | 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 | 295 | include/asm-alpha/pgtable.h | extern inline void SET_PAGE_DIR(struct task_struct * tsk, pgd_t * pgdir) |
tsk | 298 | include/asm-alpha/pgtable.h | tsk->tss.ptbr = ((unsigned long) pgdir - PAGE_OFFSET) >> PAGE_SHIFT; |
tsk | 299 | include/asm-alpha/pgtable.h | if (tsk == current) |
tsk | 304 | include/asm-alpha/pgtable.h | : "r" (&tsk->tss), "i" (PAL_swpctx) |
tsk | 308 | 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 | 181 | include/linux/mm.h | extern unsigned long put_dirty_page(struct task_struct * tsk,unsigned long page, |
tsk | 184 | include/linux/mm.h | extern void free_page_tables(struct task_struct * tsk); |
tsk | 185 | include/linux/mm.h | extern void clear_page_tables(struct task_struct * tsk); |
tsk | 186 | include/linux/mm.h | extern int new_page_tables(struct task_struct * tsk); |
tsk | 196 | 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 | 197 | 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 | 202 | 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 | 75 | kernel/exit.c | void notify_parent(struct task_struct * tsk) |
tsk | 77 | kernel/exit.c | if (tsk->p_pptr == task[smp_num_cpus]) /* Init */ |
tsk | 78 | kernel/exit.c | tsk->exit_signal = SIGCHLD; |
tsk | 79 | kernel/exit.c | send_sig(tsk->exit_signal, tsk->p_pptr, 1); |
tsk | 80 | kernel/exit.c | wake_up_interruptible(&tsk->p_pptr->wait_chldexit); |
tsk | 363 | kernel/exit.c | static inline void __exit_files(struct task_struct *tsk) |
tsk | 365 | kernel/exit.c | struct files_struct * files = tsk->files; |
tsk | 368 | kernel/exit.c | tsk->files = NULL; |
tsk | 383 | kernel/exit.c | void exit_files(struct task_struct *tsk) |
tsk | 385 | kernel/exit.c | __exit_files(tsk); |
tsk | 388 | kernel/exit.c | static inline void __exit_fs(struct task_struct *tsk) |
tsk | 390 | kernel/exit.c | struct fs_struct * fs = tsk->fs; |
tsk | 393 | kernel/exit.c | tsk->fs = NULL; |
tsk | 402 | kernel/exit.c | void exit_fs(struct task_struct *tsk) |
tsk | 404 | kernel/exit.c | __exit_fs(tsk); |
tsk | 407 | kernel/exit.c | static inline void __exit_sighand(struct task_struct *tsk) |
tsk | 409 | kernel/exit.c | struct signal_struct * sig = tsk->sig; |
tsk | 412 | kernel/exit.c | tsk->sig = NULL; |
tsk | 419 | kernel/exit.c | void exit_sighand(struct task_struct *tsk) |
tsk | 421 | kernel/exit.c | __exit_sighand(tsk); |
tsk | 114 | kernel/fork.c | static inline int copy_mm(unsigned long clone_flags, struct task_struct * tsk) |
tsk | 117 | kernel/fork.c | SET_PAGE_DIR(tsk, current->mm->pgd); |
tsk | 121 | kernel/fork.c | tsk->mm = kmalloc(sizeof(*tsk->mm), GFP_KERNEL); |
tsk | 122 | kernel/fork.c | if (!tsk->mm) |
tsk | 124 | kernel/fork.c | *tsk->mm = *current->mm; |
tsk | 125 | kernel/fork.c | tsk->mm->count = 1; |
tsk | 126 | kernel/fork.c | tsk->mm->def_flags = 0; |
tsk | 127 | kernel/fork.c | tsk->min_flt = tsk->maj_flt = 0; |
tsk | 128 | kernel/fork.c | tsk->cmin_flt = tsk->cmaj_flt = 0; |
tsk | 129 | kernel/fork.c | tsk->nswap = tsk->cnswap = 0; |
tsk | 130 | kernel/fork.c | if (new_page_tables(tsk)) |
tsk | 132 | kernel/fork.c | if (dup_mmap(tsk->mm)) { |
tsk | 133 | kernel/fork.c | free_page_tables(tsk); |
tsk | 139 | kernel/fork.c | static inline int copy_fs(unsigned long clone_flags, struct task_struct * tsk) |
tsk | 145 | kernel/fork.c | tsk->fs = kmalloc(sizeof(*tsk->fs), GFP_KERNEL); |
tsk | 146 | kernel/fork.c | if (!tsk->fs) |
tsk | 148 | kernel/fork.c | tsk->fs->count = 1; |
tsk | 149 | kernel/fork.c | tsk->fs->umask = current->fs->umask; |
tsk | 150 | kernel/fork.c | if ((tsk->fs->root = current->fs->root)) |
tsk | 151 | kernel/fork.c | tsk->fs->root->i_count++; |
tsk | 152 | kernel/fork.c | if ((tsk->fs->pwd = current->fs->pwd)) |
tsk | 153 | kernel/fork.c | tsk->fs->pwd->i_count++; |
tsk | 157 | kernel/fork.c | static inline int copy_files(unsigned long clone_flags, struct task_struct * tsk) |
tsk | 165 | kernel/fork.c | tsk->files = kmalloc(sizeof(*tsk->files), GFP_KERNEL); |
tsk | 166 | kernel/fork.c | if (!tsk->files) |
tsk | 168 | kernel/fork.c | tsk->files->count = 1; |
tsk | 169 | kernel/fork.c | memcpy(&tsk->files->close_on_exec, ¤t->files->close_on_exec, |
tsk | 170 | kernel/fork.c | sizeof(tsk->files->close_on_exec)); |
tsk | 175 | kernel/fork.c | tsk->files->fd[i] = f; |
tsk | 180 | kernel/fork.c | static inline int copy_sighand(unsigned long clone_flags, struct task_struct * tsk) |
tsk | 186 | kernel/fork.c | tsk->sig = kmalloc(sizeof(*tsk->sig), GFP_KERNEL); |
tsk | 187 | kernel/fork.c | if (!tsk->sig) |
tsk | 189 | kernel/fork.c | tsk->sig->count = 1; |
tsk | 190 | kernel/fork.c | memcpy(tsk->sig->action, current->sig->action, sizeof(tsk->sig->action)); |
tsk | 139 | mm/memory.c | void clear_page_tables(struct task_struct * tsk) |
tsk | 144 | mm/memory.c | page_dir = tsk->mm->pgd; |
tsk | 146 | mm/memory.c | printk("%s trying to clear kernel page-directory: not good\n", tsk->comm); |
tsk | 151 | mm/memory.c | invalidate_mm(tsk->mm); |
tsk | 160 | mm/memory.c | void free_page_tables(struct task_struct * tsk) |
tsk | 165 | mm/memory.c | page_dir = tsk->mm->pgd; |
tsk | 167 | mm/memory.c | printk("%s trying to free kernel page-directory: not good\n", tsk->comm); |
tsk | 170 | mm/memory.c | invalidate_mm(tsk->mm); |
tsk | 171 | mm/memory.c | SET_PAGE_DIR(tsk, swapper_pg_dir); |
tsk | 172 | mm/memory.c | tsk->mm->pgd = swapper_pg_dir; /* or else... */ |
tsk | 178 | mm/memory.c | int new_page_tables(struct task_struct * tsk) |
tsk | 187 | mm/memory.c | invalidate_mm(tsk->mm); |
tsk | 188 | mm/memory.c | SET_PAGE_DIR(tsk, new_pg); |
tsk | 189 | mm/memory.c | tsk->mm->pgd = new_pg; |
tsk | 544 | mm/memory.c | unsigned long put_dirty_page(struct task_struct * tsk, unsigned long page, unsigned long address) |
tsk | 554 | mm/memory.c | pgd = pgd_offset(tsk->mm,address); |
tsk | 558 | mm/memory.c | oom(tsk); |
tsk | 564 | mm/memory.c | oom(tsk); |
tsk | 594 | mm/memory.c | void do_wp_page(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 622 | mm/memory.c | tsk->min_flt++; |
tsk | 638 | mm/memory.c | oom(tsk); |
tsk | 649 | mm/memory.c | send_sig(SIGKILL, tsk, 1); |
tsk | 653 | mm/memory.c | send_sig(SIGKILL, tsk, 1); |
tsk | 657 | mm/memory.c | send_sig(SIGKILL, tsk, 1); |
tsk | 746 | mm/memory.c | static inline void get_empty_page(struct task_struct * tsk, struct vm_area_struct * vma, pte_t * page_table) |
tsk | 751 | mm/memory.c | oom(tsk); |
tsk | 838 | mm/memory.c | static inline pte_t * get_empty_pgtable(struct task_struct * tsk,unsigned long address) |
tsk | 844 | mm/memory.c | pgd = pgd_offset(tsk->mm, address); |
tsk | 847 | mm/memory.c | oom(tsk); |
tsk | 852 | mm/memory.c | oom(tsk); |
tsk | 858 | mm/memory.c | static inline void do_swap_page(struct task_struct * tsk, |
tsk | 865 | mm/memory.c | swap_in(tsk, vma, page_table, pte_val(entry), write_access); |
tsk | 876 | mm/memory.c | ++tsk->maj_flt; |
tsk | 887 | mm/memory.c | void do_no_page(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 894 | mm/memory.c | page_table = get_empty_pgtable(tsk, address); |
tsk | 901 | mm/memory.c | do_swap_page(tsk, vma, address, page_table, entry, write_access); |
tsk | 907 | mm/memory.c | ++tsk->min_flt; |
tsk | 908 | mm/memory.c | get_empty_page(tsk, vma, page_table); |
tsk | 911 | mm/memory.c | ++tsk->maj_flt; |
tsk | 274 | mm/page_alloc.c | void swap_in(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 286 | mm/page_alloc.c | oom(tsk); |
tsk | 295 | 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 | 104 | mm/vmscan.c | pid_t pid = tsk->pid; |
tsk | 116 | mm/vmscan.c | tsk->nswap++; |
tsk | 156 | mm/vmscan.c | static inline int swap_out_pmd(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 178 | mm/vmscan.c | tsk->swap_address = address + PAGE_SIZE; |
tsk | 179 | mm/vmscan.c | result = try_to_swap_out(tsk, vma, address, pte, limit, wait); |
tsk | 188 | mm/vmscan.c | static inline int swap_out_pgd(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 209 | mm/vmscan.c | int result = swap_out_pmd(tsk, vma, pmd, address, end, limit, wait); |
tsk | 218 | mm/vmscan.c | static int swap_out_vma(struct task_struct * tsk, struct vm_area_struct * vma, |
tsk | 230 | mm/vmscan.c | int result = swap_out_pgd(tsk, vma, pgdir, start, end, limit, wait); |
tsk | 606 | net/unix/af_unix.c | unix_socket *newsk, *tsk; |
tsk | 648 | net/unix/af_unix.c | tsk=skb->sk; |
tsk | 651 | net/unix/af_unix.c | newsk->protinfo.af_unix.other=tsk; |
tsk | 652 | net/unix/af_unix.c | tsk->protinfo.af_unix.other=newsk; |
tsk | 653 | net/unix/af_unix.c | tsk->state=TCP_ESTABLISHED; |
tsk | 657 | net/unix/af_unix.c | tsk->protinfo.af_unix.locks++; /* Back lock */ |
tsk | 659 | net/unix/af_unix.c | tsk->state_change(tsk); /* Wake up any sleeping connect */ |
tsk | 660 | net/unix/af_unix.c | sock_wake_async(tsk->socket, 0); |