tag | line | file | source code |
tsk | 26 | fs/nfs/mmap.c | extern int share_page(struct vm_area_struct * area, struct task_struct * tsk, |
tsk | 30 | fs/nfs/mmap.c | extern unsigned long put_page(struct task_struct * tsk,unsigned long page, |
tsk | 91 | include/linux/mm.h | extern unsigned long put_dirty_page(struct task_struct * tsk,unsigned long page, |
tsk | 93 | include/linux/mm.h | extern void free_page_tables(struct task_struct * tsk); |
tsk | 94 | include/linux/mm.h | extern void clear_page_tables(struct task_struct * tsk); |
tsk | 102 | include/linux/mm.h | struct task_struct *tsk, unsigned long user_esp); |
tsk | 104 | include/linux/mm.h | struct task_struct *tsk, unsigned long user_esp); |
tsk | 305 | include/linux/sched.h | extern void notify_parent(struct task_struct * tsk); |
tsk | 344 | include/linux/sched.h | #define switch_to(tsk) \ |
tsk | 356 | include/linux/sched.h | :"m" (*(((char *)&tsk->tss.tr)-4)), \ |
tsk | 357 | include/linux/sched.h | "c" (tsk) \ |
tsk | 70 | kernel/exit.c | void notify_parent(struct task_struct * tsk) |
tsk | 72 | kernel/exit.c | if (tsk->p_pptr == task[1]) |
tsk | 73 | kernel/exit.c | tsk->exit_signal = SIGCHLD; |
tsk | 74 | kernel/exit.c | send_sig(tsk->exit_signal, tsk->p_pptr, 1); |
tsk | 75 | kernel/exit.c | wake_up_interruptible(&tsk->p_pptr->wait_chldexit); |
tsk | 90 | kernel/fork.c | int dup_mmap(struct task_struct * tsk) |
tsk | 94 | kernel/fork.c | tsk->mmap = NULL; |
tsk | 95 | kernel/fork.c | tsk->stk_vma = NULL; |
tsk | 96 | kernel/fork.c | p = &tsk->mmap; |
tsk | 102 | kernel/fork.c | tmp->vm_task = tsk; |
tsk | 109 | kernel/fork.c | tsk->stk_vma = tmp; |
tsk | 88 | kernel/ptrace.c | static unsigned long get_long(struct task_struct * tsk, |
tsk | 94 | kernel/ptrace.c | page = *PAGE_DIR_OFFSET(tsk->tss.cr3,addr); |
tsk | 101 | kernel/ptrace.c | do_no_page(0,addr,tsk,0); |
tsk | 118 | kernel/ptrace.c | static void put_long(struct task_struct * tsk, unsigned long addr, |
tsk | 125 | kernel/ptrace.c | page = *PAGE_DIR_OFFSET(tsk->tss.cr3,addr); |
tsk | 133 | kernel/ptrace.c | do_no_page(0 /* PAGE_RW */ ,addr,tsk,0); |
tsk | 139 | kernel/ptrace.c | do_wp_page(PAGE_RW | PAGE_PRESENT,addr,tsk,0); |
tsk | 157 | kernel/ptrace.c | static int read_long(struct task_struct * tsk, unsigned long addr, |
tsk | 165 | kernel/ptrace.c | low = get_long(tsk,addr & ~(sizeof(long)-1)); |
tsk | 166 | kernel/ptrace.c | high = get_long(tsk,(addr+sizeof(long)) & ~(sizeof(long)-1)); |
tsk | 183 | kernel/ptrace.c | *result = get_long(tsk,addr); |
tsk | 191 | kernel/ptrace.c | static int write_long(struct task_struct * tsk, unsigned long addr, |
tsk | 199 | kernel/ptrace.c | low = get_long(tsk,addr & ~(sizeof(long)-1)); |
tsk | 200 | kernel/ptrace.c | high = get_long(tsk,(addr+sizeof(long)) & ~(sizeof(long)-1)); |
tsk | 224 | kernel/ptrace.c | put_long(tsk,addr & ~(sizeof(long)-1),low); |
tsk | 225 | kernel/ptrace.c | put_long(tsk,(addr+sizeof(long)) & ~(sizeof(long)-1),high); |
tsk | 227 | kernel/ptrace.c | put_long(tsk,addr,data); |
tsk | 146 | kernel/sys.c | static void mark_screen_rdonly(struct task_struct * tsk) |
tsk | 151 | kernel/sys.c | if ((tmp = tsk->tss.cr3) != 0) { |
tsk | 119 | mm/memory.c | void clear_page_tables(struct task_struct * tsk) |
tsk | 125 | mm/memory.c | if (!tsk) |
tsk | 127 | mm/memory.c | if (tsk == task[0]) |
tsk | 129 | mm/memory.c | pg_dir = tsk->tss.cr3; |
tsk | 139 | mm/memory.c | oom(tsk); |
tsk | 145 | mm/memory.c | tsk->tss.cr3 = (unsigned long) new_pg; |
tsk | 157 | mm/memory.c | void free_page_tables(struct task_struct * tsk) |
tsk | 163 | mm/memory.c | if (!tsk) |
tsk | 165 | mm/memory.c | if (tsk == task[0]) { |
tsk | 169 | mm/memory.c | pg_dir = tsk->tss.cr3; |
tsk | 174 | mm/memory.c | tsk->tss.cr3 = (unsigned long) swapper_pg_dir; |
tsk | 175 | mm/memory.c | if (tsk == current) |
tsk | 176 | mm/memory.c | __asm__ __volatile__("movl %0,%%cr3": :"a" (tsk->tss.cr3)); |
tsk | 194 | mm/memory.c | int clone_page_tables(struct task_struct * tsk) |
tsk | 200 | mm/memory.c | tsk->tss.cr3 = pg_dir; |
tsk | 209 | mm/memory.c | int copy_page_tables(struct task_struct * tsk) |
tsk | 218 | mm/memory.c | tsk->tss.cr3 = new_pg_dir; |
tsk | 240 | mm/memory.c | free_page_tables(tsk); |
tsk | 470 | mm/memory.c | unsigned long put_page(struct task_struct * tsk,unsigned long page, |
tsk | 481 | mm/memory.c | page_table = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
tsk | 486 | mm/memory.c | oom(tsk); |
tsk | 507 | mm/memory.c | unsigned long put_dirty_page(struct task_struct * tsk, unsigned long page, unsigned long address) |
tsk | 515 | mm/memory.c | page_table = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
tsk | 552 | mm/memory.c | struct task_struct * tsk, unsigned long user_esp) |
tsk | 558 | mm/memory.c | pde = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
tsk | 573 | mm/memory.c | tsk->min_flt++; |
tsk | 579 | mm/memory.c | ++tsk->rss; |
tsk | 587 | mm/memory.c | oom(tsk); |
tsk | 600 | mm/memory.c | send_sig(SIGKILL, tsk, 1); |
tsk | 605 | mm/memory.c | send_sig(SIGKILL, tsk, 1); |
tsk | 617 | mm/memory.c | struct task_struct * tsk, unsigned long user_esp) |
tsk | 622 | mm/memory.c | pg_table = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
tsk | 634 | mm/memory.c | if (user_esp && tsk == current) { |
tsk | 636 | mm/memory.c | send_sig(SIGSEGV, tsk, 1); |
tsk | 645 | mm/memory.c | __do_wp_page(error_code, address, tsk, user_esp); |
tsk | 676 | mm/memory.c | static inline void get_empty_page(struct task_struct * tsk, unsigned long address) |
tsk | 681 | mm/memory.c | oom(tsk); |
tsk | 684 | mm/memory.c | if (!put_page(tsk,tmp,address,PAGE_PRIVATE)) |
tsk | 702 | mm/memory.c | static int try_to_share(unsigned long address, struct task_struct * tsk, |
tsk | 711 | mm/memory.c | to_page = (unsigned long)PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
tsk | 761 | mm/memory.c | int share_page(struct vm_area_struct * area, struct task_struct * tsk, |
tsk | 772 | mm/memory.c | if (tsk == *p) |
tsk | 791 | mm/memory.c | if (try_to_share(address,tsk,*p,error_code,newpage)) |
tsk | 800 | mm/memory.c | static inline unsigned long get_empty_pgtable(struct task_struct * tsk,unsigned long address) |
tsk | 805 | mm/memory.c | p = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
tsk | 813 | mm/memory.c | p = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
tsk | 832 | mm/memory.c | struct task_struct *tsk, unsigned long user_esp) |
tsk | 838 | mm/memory.c | page = get_empty_pgtable(tsk,address); |
tsk | 846 | mm/memory.c | ++tsk->rss; |
tsk | 848 | mm/memory.c | ++tsk->maj_flt; |
tsk | 854 | mm/memory.c | for (mpnt = tsk->mmap; mpnt != NULL; mpnt = mpnt->vm_next) { |
tsk | 862 | mm/memory.c | ++tsk->min_flt; |
tsk | 863 | mm/memory.c | get_empty_page(tsk,address); |
tsk | 869 | mm/memory.c | ++tsk->min_flt; |
tsk | 870 | mm/memory.c | get_empty_page(tsk,address); |
tsk | 871 | mm/memory.c | if (tsk != current) |
tsk | 873 | mm/memory.c | if (address >= tsk->end_data && address < tsk->brk) |
tsk | 875 | mm/memory.c | if (mpnt && mpnt == tsk->stk_vma && |
tsk | 877 | mm/memory.c | tsk->rlim[RLIMIT_STACK].rlim_cur > mpnt->vm_end - address) { |
tsk | 881 | mm/memory.c | tsk->tss.cr2 = address; |
tsk | 882 | mm/memory.c | send_sig(SIGSEGV,tsk,1); |