tag | line | file | source code |
tsk | 235 | arch/alpha/kernel/ptrace.c | static struct vm_area_struct * find_extend_vma(struct task_struct * tsk, unsigned long addr) |
tsk | 240 | arch/alpha/kernel/ptrace.c | vma = find_vma(tsk,addr); |
tsk | 247 | arch/alpha/kernel/ptrace.c | if (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur) |
tsk | 258 | arch/alpha/kernel/ptrace.c | static int read_long(struct task_struct * tsk, unsigned long addr, |
tsk | 261 | arch/alpha/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 323 | arch/alpha/kernel/ptrace.c | static int write_long(struct task_struct * tsk, unsigned long addr, |
tsk | 326 | arch/alpha/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 399 | arch/alpha/kernel/ptrace.c | static int read_int(struct task_struct * tsk, unsigned long addr, unsigned int *data) |
tsk | 407 | arch/alpha/kernel/ptrace.c | res = read_long(tsk, addr, &l); |
tsk | 425 | arch/alpha/kernel/ptrace.c | static int write_int(struct task_struct * tsk, unsigned long addr, unsigned int data) |
tsk | 433 | arch/alpha/kernel/ptrace.c | res = read_long(tsk, addr, &l); |
tsk | 442 | arch/alpha/kernel/ptrace.c | return write_long(tsk, addr, l); |
tsk | 186 | arch/i386/kernel/ptrace.c | static struct vm_area_struct * find_extend_vma(struct task_struct * tsk, unsigned long addr) |
tsk | 191 | arch/i386/kernel/ptrace.c | vma = find_vma(tsk,addr); |
tsk | 198 | arch/i386/kernel/ptrace.c | if (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur) |
tsk | 209 | arch/i386/kernel/ptrace.c | static int read_long(struct task_struct * tsk, unsigned long addr, |
tsk | 212 | arch/i386/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 251 | arch/i386/kernel/ptrace.c | static int write_long(struct task_struct * tsk, unsigned long addr, |
tsk | 254 | arch/i386/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 37 | arch/i386/kernel/traps.c | #define DO_ERROR(trapnr, signr, str, name, tsk) \ |
tsk | 40 | arch/i386/kernel/traps.c | tsk->tss.error_code = error_code; \ |
tsk | 41 | arch/i386/kernel/traps.c | tsk->tss.trap_no = trapnr; \ |
tsk | 44 | 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, 0xA0000); |
tsk | 163 | arch/mips/kernel/ptrace.c | static struct vm_area_struct * find_extend_vma(struct task_struct * tsk, unsigned long addr) |
tsk | 168 | arch/mips/kernel/ptrace.c | vma = find_vma(tsk, addr); |
tsk | 175 | arch/mips/kernel/ptrace.c | if (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur) |
tsk | 186 | arch/mips/kernel/ptrace.c | static int read_long(struct task_struct * tsk, unsigned long addr, |
tsk | 189 | arch/mips/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 228 | arch/mips/kernel/ptrace.c | static int write_long(struct task_struct * tsk, unsigned long addr, |
tsk | 231 | arch/mips/kernel/ptrace.c | struct vm_area_struct * vma = find_extend_vma(tsk, addr); |
tsk | 217 | arch/sparc/mm/srmmu.c | srmmu_pgd_offset(struct task_struct * tsk, unsigned long address) |
tsk | 219 | arch/sparc/mm/srmmu.c | return ((pgd_t *) tsk->tss.pgd_ptr) + |
tsk | 241 | arch/sparc/mm/srmmu.c | srmmu_update_rootmmu_dir(struct task_struct *tsk, pgd_t *pgdir) |
tsk | 244 | arch/sparc/mm/srmmu.c | if(tsk->tss.context != -1) { |
tsk | 247 | arch/sparc/mm/srmmu.c | ctable_ptr += tsk->tss.context; |
tsk | 253 | arch/sparc/mm/srmmu.c | tsk->tss.pgd_ptr = (unsigned long) pgdir; |
tsk | 108 | arch/sparc/mm/sun4c.c | sun4c_update_rootmmu_dir(struct task_struct *tsk, pgd_t *pgdir) |
tsk | 110 | arch/sparc/mm/sun4c.c | (tsk)->tss.pgd_ptr = (unsigned long) (pgdir); |
tsk | 207 | arch/sparc/mm/sun4c.c | sun4c_pgd_offset(struct task_struct * tsk, unsigned long address) |
tsk | 209 | arch/sparc/mm/sun4c.c | return ((pgd_t *) (tsk->tss.pgd_ptr)) + |
tsk | 32 | fs/proc/mem.c | struct task_struct * tsk; |
tsk | 41 | fs/proc/mem.c | tsk = NULL; |
tsk | 44 | fs/proc/mem.c | tsk = task[i]; |
tsk | 47 | fs/proc/mem.c | if (!tsk) |
tsk | 54 | fs/proc/mem.c | page_dir = pgd_offset(tsk,addr); |
tsk | 94 | fs/proc/mem.c | struct task_struct * tsk; |
tsk | 104 | fs/proc/mem.c | tsk = NULL; |
tsk | 107 | fs/proc/mem.c | tsk = task[i]; |
tsk | 110 | fs/proc/mem.c | if (!tsk) |
tsk | 116 | fs/proc/mem.c | page_dir = pgd_offset(tsk,addr); |
tsk | 176 | fs/proc/mem.c | struct task_struct *tsk; |
tsk | 186 | fs/proc/mem.c | tsk = NULL; |
tsk | 189 | fs/proc/mem.c | tsk = task[i]; |
tsk | 193 | fs/proc/mem.c | if (!tsk) |
tsk | 201 | fs/proc/mem.c | src_vma = tsk->mm->mmap; |
tsk | 209 | fs/proc/mem.c | src_dir = pgd_offset(tsk, stmp); |
tsk | 236 | fs/proc/mem.c | src_vma = tsk->mm->mmap; |
tsk | 244 | fs/proc/mem.c | src_dir = pgd_offset(tsk, stmp); |
tsk | 236 | include/asm-alpha/pgtable.h | extern inline void SET_PAGE_DIR(struct task_struct * tsk, pgd_t * pgdir) |
tsk | 239 | include/asm-alpha/pgtable.h | tsk->tss.ptbr = ((unsigned long) pgdir - PAGE_OFFSET) >> PAGE_SHIFT; |
tsk | 240 | include/asm-alpha/pgtable.h | if (tsk == current) |
tsk | 245 | include/asm-alpha/pgtable.h | : "r" (&tsk->tss), "i" (PAL_swpctx) |
tsk | 249 | include/asm-alpha/pgtable.h | #define PAGE_DIR_OFFSET(tsk,address) pgd_offset((tsk),(address)) |
tsk | 252 | include/asm-alpha/pgtable.h | extern inline pgd_t * pgd_offset(struct task_struct * tsk, unsigned long address) |
tsk | 254 | include/asm-alpha/pgtable.h | return (pgd_t *) ((tsk->tss.ptbr << PAGE_SHIFT) + PAGE_OFFSET) + |
tsk | 123 | include/asm-i386/pgtable.h | #define SET_PAGE_DIR(tsk,pgdir) \ |
tsk | 125 | include/asm-i386/pgtable.h | (tsk)->tss.cr3 = (unsigned long) (pgdir); \ |
tsk | 126 | include/asm-i386/pgtable.h | if ((tsk) == current) \ |
tsk | 127 | include/asm-i386/pgtable.h | __asm__ __volatile__("movl %0,%%cr3": :"a" ((tsk)->tss.cr3)); \ |
tsk | 206 | include/asm-i386/pgtable.h | extern inline pgd_t * pgd_offset(struct task_struct * tsk, unsigned long address) |
tsk | 208 | include/asm-i386/pgtable.h | return (pgd_t *) tsk->tss.cr3 + (address >> PGDIR_SHIFT); |
tsk | 50 | include/asm-i386/system.h | #define switch_to(tsk) do { \ |
tsk | 60 | include/asm-i386/system.h | :"m" (*(((char *)&tsk->tss.tr)-4)), \ |
tsk | 61 | include/asm-i386/system.h | "c" (tsk) \ |
tsk | 162 | include/asm-mips/page.h | #define PAGE_DIR_OFFSET(tsk,address) \ |
tsk | 163 | include/asm-mips/page.h | ((((unsigned long)(address)) >> PGDIR_SHIFT) + (pgd_t *) (tsk)->tss.pg_dir) |
tsk | 173 | include/asm-mips/page.h | #define SET_PAGE_DIR(tsk,pgdir) \ |
tsk | 175 | include/asm-mips/page.h | (tsk)->tss.pg_dir = (unsigned long) (pgdir); \ |
tsk | 176 | include/asm-mips/page.h | if ((tsk) == current) \ |
tsk | 199 | include/asm-mips/processor.h | asmlinkage void resume(struct task_struct *tsk, int offset); |
tsk | 178 | include/asm-sparc/pgtable.h | #define SET_PAGE_DIR(tsk,pgdir) \ |
tsk | 179 | include/asm-sparc/pgtable.h | do { sparc_update_rootmmu_dir(tsk, pgdir); } while (0) |
tsk | 172 | include/linux/mm.h | extern unsigned long put_dirty_page(struct task_struct * tsk,unsigned long page, |
tsk | 175 | include/linux/mm.h | extern void free_page_tables(struct task_struct * tsk); |
tsk | 176 | include/linux/mm.h | extern void clear_page_tables(struct task_struct * tsk); |
tsk | 190 | include/linux/mm.h | extern void oom(struct task_struct * tsk); |
tsk | 278 | include/linux/sched.h | extern void wake_up_process(struct task_struct * tsk); |
tsk | 280 | include/linux/sched.h | extern void notify_parent(struct task_struct * tsk); |
tsk | 74 | kernel/exit.c | void notify_parent(struct task_struct * tsk) |
tsk | 76 | kernel/exit.c | if (tsk->p_pptr == task[1]) |
tsk | 77 | kernel/exit.c | tsk->exit_signal = SIGCHLD; |
tsk | 78 | kernel/exit.c | send_sig(tsk->exit_signal, tsk->p_pptr, 1); |
tsk | 79 | kernel/exit.c | wake_up_interruptible(&tsk->p_pptr->wait_chldexit); |
tsk | 85 | kernel/fork.c | static int dup_mmap(struct task_struct * tsk) |
tsk | 89 | kernel/fork.c | tsk->mm->mmap = NULL; |
tsk | 90 | kernel/fork.c | p = &tsk->mm->mmap; |
tsk | 94 | kernel/fork.c | exit_mmap(tsk); |
tsk | 98 | kernel/fork.c | tmp->vm_task = tsk; |
tsk | 112 | kernel/fork.c | build_mmap_avl(tsk); |
tsk | 150 | mm/memory.c | void clear_page_tables(struct task_struct * tsk) |
tsk | 155 | mm/memory.c | if (!tsk) |
tsk | 157 | mm/memory.c | if (tsk == task[0]) |
tsk | 159 | mm/memory.c | page_dir = pgd_offset(tsk, 0); |
tsk | 161 | mm/memory.c | printk("%s trying to clear kernel page-directory: not good\n", tsk->comm); |
tsk | 168 | mm/memory.c | oom(tsk); |
tsk | 173 | mm/memory.c | SET_PAGE_DIR(tsk, new_pg); |
tsk | 186 | mm/memory.c | void free_page_tables(struct task_struct * tsk) |
tsk | 191 | mm/memory.c | if (!tsk) |
tsk | 193 | mm/memory.c | if (tsk == task[0]) { |
tsk | 197 | mm/memory.c | page_dir = pgd_offset(tsk, 0); |
tsk | 199 | mm/memory.c | printk("%s trying to free kernel page-directory: not good\n", tsk->comm); |
tsk | 202 | mm/memory.c | SET_PAGE_DIR(tsk, swapper_pg_dir); |
tsk | 219 | mm/memory.c | int clone_page_tables(struct task_struct * tsk) |
tsk | 225 | mm/memory.c | SET_PAGE_DIR(tsk, pg_dir); |
tsk | 318 | mm/memory.c | int copy_page_tables(struct task_struct * tsk) |
tsk | 327 | mm/memory.c | SET_PAGE_DIR(tsk, new_pgd); |
tsk | 332 | mm/memory.c | free_page_tables(tsk); |
tsk | 576 | mm/memory.c | unsigned long put_dirty_page(struct task_struct * tsk, unsigned long page, unsigned long address) |
tsk | 586 | mm/memory.c | pgd = pgd_offset(tsk,address); |
tsk | 590 | mm/memory.c | oom(tsk); |
tsk | 596 | mm/memory.c | oom(tsk); |
tsk | 957 | mm/memory.c | static inline pte_t * get_empty_pgtable(struct task_struct * tsk,unsigned long address) |
tsk | 963 | mm/memory.c | pgd = pgd_offset(tsk, address); |
tsk | 966 | mm/memory.c | oom(tsk); |
tsk | 971 | mm/memory.c | oom(tsk); |