tag | line | file | source code |
mpnt | 89 | drivers/char/mem.c | struct vm_area_struct * mpnt; |
mpnt | 98 | drivers/char/mem.c | mpnt = (struct vm_area_struct * ) kmalloc(sizeof(struct vm_area_struct), GFP_KERNEL); |
mpnt | 99 | drivers/char/mem.c | if (!mpnt) |
mpnt | 102 | drivers/char/mem.c | mpnt->vm_task = current; |
mpnt | 103 | drivers/char/mem.c | mpnt->vm_start = addr; |
mpnt | 104 | drivers/char/mem.c | mpnt->vm_end = addr + len; |
mpnt | 105 | drivers/char/mem.c | mpnt->vm_page_prot = prot; |
mpnt | 106 | drivers/char/mem.c | mpnt->vm_flags = 0; |
mpnt | 107 | drivers/char/mem.c | mpnt->vm_share = NULL; |
mpnt | 108 | drivers/char/mem.c | mpnt->vm_inode = inode; |
mpnt | 110 | drivers/char/mem.c | mpnt->vm_offset = off; |
mpnt | 111 | drivers/char/mem.c | mpnt->vm_ops = NULL; |
mpnt | 112 | drivers/char/mem.c | insert_vm_struct(current, mpnt); |
mpnt | 183 | drivers/char/mem.c | struct vm_area_struct *mpnt; |
mpnt | 193 | drivers/char/mem.c | mpnt = (struct vm_area_struct *)kmalloc(sizeof(*mpnt), GFP_KERNEL); |
mpnt | 194 | drivers/char/mem.c | if (!mpnt) |
mpnt | 197 | drivers/char/mem.c | mpnt->vm_task = current; |
mpnt | 198 | drivers/char/mem.c | mpnt->vm_start = addr; |
mpnt | 199 | drivers/char/mem.c | mpnt->vm_end = addr + len; |
mpnt | 200 | drivers/char/mem.c | mpnt->vm_page_prot = prot; |
mpnt | 201 | drivers/char/mem.c | mpnt->vm_flags = 0; |
mpnt | 202 | drivers/char/mem.c | mpnt->vm_share = NULL; |
mpnt | 203 | drivers/char/mem.c | mpnt->vm_inode = NULL; |
mpnt | 204 | drivers/char/mem.c | mpnt->vm_offset = off; |
mpnt | 205 | drivers/char/mem.c | mpnt->vm_ops = NULL; |
mpnt | 206 | drivers/char/mem.c | insert_vm_struct(current, mpnt); |
mpnt | 317 | fs/exec.c | struct vm_area_struct *mpnt; |
mpnt | 319 | fs/exec.c | mpnt = (struct vm_area_struct *)kmalloc(sizeof(*mpnt), GFP_KERNEL); |
mpnt | 320 | fs/exec.c | if (mpnt) { |
mpnt | 321 | fs/exec.c | mpnt->vm_task = current; |
mpnt | 322 | fs/exec.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
mpnt | 323 | fs/exec.c | mpnt->vm_end = TASK_SIZE; |
mpnt | 324 | fs/exec.c | mpnt->vm_page_prot = PAGE_PRIVATE|PAGE_DIRTY; |
mpnt | 325 | fs/exec.c | mpnt->vm_flags = VM_GROWSDOWN; |
mpnt | 326 | fs/exec.c | mpnt->vm_share = NULL; |
mpnt | 327 | fs/exec.c | mpnt->vm_inode = NULL; |
mpnt | 328 | fs/exec.c | mpnt->vm_offset = 0; |
mpnt | 329 | fs/exec.c | mpnt->vm_ops = NULL; |
mpnt | 330 | fs/exec.c | insert_vm_struct(current, mpnt); |
mpnt | 514 | fs/exec.c | struct vm_area_struct * mpnt, *mpnt1; |
mpnt | 534 | fs/exec.c | mpnt = current->mm->mmap; |
mpnt | 536 | fs/exec.c | while (mpnt) { |
mpnt | 537 | fs/exec.c | mpnt1 = mpnt->vm_next; |
mpnt | 538 | fs/exec.c | if (mpnt->vm_ops && mpnt->vm_ops->close) |
mpnt | 539 | fs/exec.c | mpnt->vm_ops->close(mpnt); |
mpnt | 540 | fs/exec.c | if (mpnt->vm_inode) |
mpnt | 541 | fs/exec.c | iput(mpnt->vm_inode); |
mpnt | 542 | fs/exec.c | kfree(mpnt); |
mpnt | 543 | fs/exec.c | mpnt = mpnt1; |
mpnt | 353 | fs/namei.c | struct vm_area_struct * mpnt; |
mpnt | 360 | fs/namei.c | for(mpnt = (*p)->mm->mmap; mpnt; mpnt = mpnt->vm_next) { |
mpnt | 361 | fs/namei.c | if (mpnt->vm_page_prot & PAGE_RW) |
mpnt | 363 | fs/namei.c | if (inode == mpnt->vm_inode) { |
mpnt | 91 | fs/nfs/mmap.c | struct vm_area_struct * mpnt; |
mpnt | 104 | fs/nfs/mmap.c | mpnt = (struct vm_area_struct * ) kmalloc(sizeof(struct vm_area_struct), GFP_KERNEL); |
mpnt | 105 | fs/nfs/mmap.c | if (!mpnt) |
mpnt | 109 | fs/nfs/mmap.c | mpnt->vm_task = current; |
mpnt | 110 | fs/nfs/mmap.c | mpnt->vm_start = addr; |
mpnt | 111 | fs/nfs/mmap.c | mpnt->vm_end = addr + len; |
mpnt | 112 | fs/nfs/mmap.c | mpnt->vm_page_prot = prot; |
mpnt | 113 | fs/nfs/mmap.c | mpnt->vm_flags = 0; |
mpnt | 114 | fs/nfs/mmap.c | mpnt->vm_share = NULL; |
mpnt | 115 | fs/nfs/mmap.c | mpnt->vm_inode = inode; |
mpnt | 117 | fs/nfs/mmap.c | mpnt->vm_offset = off; |
mpnt | 118 | fs/nfs/mmap.c | mpnt->vm_ops = &nfs_file_mmap; |
mpnt | 119 | fs/nfs/mmap.c | insert_vm_struct(current, mpnt); |
mpnt | 113 | fs/proc/fd.c | struct vm_area_struct * mpnt; |
mpnt | 114 | fs/proc/fd.c | for (mpnt = p->mm->mmap; mpnt; mpnt = mpnt->vm_next) |
mpnt | 115 | fs/proc/fd.c | if (mpnt->vm_inode) |
mpnt | 170 | fs/proc/fd.c | struct vm_area_struct * mpnt; |
mpnt | 171 | fs/proc/fd.c | for (mpnt = p->mm->mmap ; mpnt ; mpnt = mpnt->vm_next) |
mpnt | 172 | fs/proc/fd.c | if (mpnt->vm_inode) |
mpnt | 182 | fs/proc/inode.c | struct vm_area_struct * mpnt; |
mpnt | 183 | fs/proc/inode.c | for (mpnt = p->mm->mmap ; mpnt ; mpnt = mpnt->vm_next) |
mpnt | 184 | fs/proc/inode.c | if(mpnt->vm_inode) |
mpnt | 87 | fs/proc/link.c | struct vm_area_struct * mpnt; |
mpnt | 88 | fs/proc/link.c | for(mpnt = p->mm->mmap; mpnt && j >= 0; |
mpnt | 89 | fs/proc/link.c | mpnt = mpnt->vm_next){ |
mpnt | 90 | fs/proc/link.c | if(mpnt->vm_inode) { |
mpnt | 92 | fs/proc/link.c | inode = mpnt->vm_inode; |
mpnt | 61 | ibcs/binfmt_elf.c | struct vm_area_struct *mpnt; |
mpnt | 63 | ibcs/binfmt_elf.c | mpnt = (struct vm_area_struct *)kmalloc(sizeof(*mpnt), GFP_KERNEL); |
mpnt | 64 | ibcs/binfmt_elf.c | if (mpnt) { |
mpnt | 65 | ibcs/binfmt_elf.c | mpnt->vm_task = current; |
mpnt | 66 | ibcs/binfmt_elf.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
mpnt | 67 | ibcs/binfmt_elf.c | mpnt->vm_end = TASK_SIZE; |
mpnt | 68 | ibcs/binfmt_elf.c | mpnt->vm_page_prot = PAGE_PRIVATE|PAGE_DIRTY; |
mpnt | 69 | ibcs/binfmt_elf.c | mpnt->vm_share = NULL; |
mpnt | 70 | ibcs/binfmt_elf.c | mpnt->vm_inode = NULL; |
mpnt | 71 | ibcs/binfmt_elf.c | mpnt->vm_offset = 0; |
mpnt | 72 | ibcs/binfmt_elf.c | mpnt->vm_ops = NULL; |
mpnt | 73 | ibcs/binfmt_elf.c | insert_vm_struct(current, mpnt); |
mpnt | 74 | ibcs/binfmt_elf.c | current->mm->stk_vma = mpnt; |
mpnt | 360 | kernel/exit.c | struct vm_area_struct * mpnt; |
mpnt | 362 | kernel/exit.c | mpnt = current->mm->mmap; |
mpnt | 364 | kernel/exit.c | while (mpnt) { |
mpnt | 365 | kernel/exit.c | struct vm_area_struct * next = mpnt->vm_next; |
mpnt | 366 | kernel/exit.c | if (mpnt->vm_ops && mpnt->vm_ops->close) |
mpnt | 367 | kernel/exit.c | mpnt->vm_ops->close(mpnt); |
mpnt | 368 | kernel/exit.c | if (mpnt->vm_inode) |
mpnt | 369 | kernel/exit.c | iput(mpnt->vm_inode); |
mpnt | 370 | kernel/exit.c | kfree(mpnt); |
mpnt | 371 | kernel/exit.c | mpnt = next; |
mpnt | 94 | kernel/fork.c | struct vm_area_struct * mpnt, **p, *tmp; |
mpnt | 98 | kernel/fork.c | for (mpnt = current->mm->mmap ; mpnt ; mpnt = mpnt->vm_next) { |
mpnt | 102 | kernel/fork.c | *tmp = *mpnt; |
mpnt | 816 | mm/memory.c | struct vm_area_struct * mpnt; |
mpnt | 823 | mm/memory.c | for (mpnt = (*p)->mm->mmap; mpnt; mpnt = mpnt->vm_next) { |
mpnt | 825 | mm/memory.c | if (mpnt->vm_inode != inode) |
mpnt | 828 | mm/memory.c | if ((mpnt->vm_offset ^ area->vm_offset) & ~PAGE_MASK) |
mpnt | 831 | mm/memory.c | from_address = offset + mpnt->vm_start - mpnt->vm_offset; |
mpnt | 832 | mm/memory.c | if (from_address < mpnt->vm_start || from_address >= mpnt->vm_end) |
mpnt | 835 | mm/memory.c | if (!try_to_share(address, area, from_address, mpnt, give_page)) |
mpnt | 181 | mm/mmap.c | struct vm_area_struct *mpnt; |
mpnt | 214 | mm/mmap.c | mpnt = (struct vm_area_struct *)kmalloc(sizeof(*mpnt), GFP_KERNEL); |
mpnt | 216 | mm/mmap.c | *mpnt = *area; |
mpnt | 217 | mm/mmap.c | mpnt->vm_offset += (end - area->vm_start); |
mpnt | 218 | mm/mmap.c | mpnt->vm_start = end; |
mpnt | 219 | mm/mmap.c | if (mpnt->vm_inode) |
mpnt | 220 | mm/mmap.c | mpnt->vm_inode->i_count++; |
mpnt | 222 | mm/mmap.c | insert_vm_struct(current, mpnt); |
mpnt | 226 | mm/mmap.c | mpnt = (struct vm_area_struct *)kmalloc(sizeof(*mpnt), GFP_KERNEL); |
mpnt | 227 | mm/mmap.c | *mpnt = *area; |
mpnt | 228 | mm/mmap.c | insert_vm_struct(current, mpnt); |
mpnt | 250 | mm/mmap.c | struct vm_area_struct *mpnt, **npp, *free; |
mpnt | 266 | mm/mmap.c | for (mpnt = *npp; mpnt != NULL; mpnt = *npp) { |
mpnt | 269 | mm/mmap.c | if ((addr < mpnt->vm_start && end <= mpnt->vm_start) || |
mpnt | 270 | mm/mmap.c | (addr >= mpnt->vm_end && end > mpnt->vm_end)) |
mpnt | 272 | mm/mmap.c | npp = &mpnt->vm_next; |
mpnt | 276 | mm/mmap.c | *npp = mpnt->vm_next; |
mpnt | 277 | mm/mmap.c | mpnt->vm_next = free; |
mpnt | 278 | mm/mmap.c | free = mpnt; |
mpnt | 293 | mm/mmap.c | mpnt = free; |
mpnt | 296 | mm/mmap.c | st = addr < mpnt->vm_start ? mpnt->vm_start : addr; |
mpnt | 298 | mm/mmap.c | end = end > mpnt->vm_end ? mpnt->vm_end : end; |
mpnt | 300 | mm/mmap.c | if (mpnt->vm_ops && mpnt->vm_ops->unmap) |
mpnt | 301 | mm/mmap.c | mpnt->vm_ops->unmap(mpnt, st, end-st); |
mpnt | 303 | mm/mmap.c | unmap_fixup(mpnt, st, end-st); |
mpnt | 305 | mm/mmap.c | kfree(mpnt); |
mpnt | 316 | mm/mmap.c | struct vm_area_struct * mpnt; |
mpnt | 336 | mm/mmap.c | mpnt = (struct vm_area_struct * ) kmalloc(sizeof(struct vm_area_struct), GFP_KERNEL); |
mpnt | 337 | mm/mmap.c | if (!mpnt) |
mpnt | 341 | mm/mmap.c | mpnt->vm_task = current; |
mpnt | 342 | mm/mmap.c | mpnt->vm_start = addr; |
mpnt | 343 | mm/mmap.c | mpnt->vm_end = addr + len; |
mpnt | 344 | mm/mmap.c | mpnt->vm_page_prot = prot; |
mpnt | 345 | mm/mmap.c | mpnt->vm_flags = 0; |
mpnt | 346 | mm/mmap.c | mpnt->vm_share = NULL; |
mpnt | 347 | mm/mmap.c | mpnt->vm_inode = inode; |
mpnt | 349 | mm/mmap.c | mpnt->vm_offset = off; |
mpnt | 350 | mm/mmap.c | mpnt->vm_ops = &file_mmap; |
mpnt | 351 | mm/mmap.c | insert_vm_struct(current, mpnt); |
mpnt | 365 | mm/mmap.c | struct vm_area_struct **nxtpp, *mpnt; |
mpnt | 369 | mm/mmap.c | for(mpnt = t->mm->mmap; mpnt != NULL; mpnt = mpnt->vm_next) |
mpnt | 371 | mm/mmap.c | if (mpnt->vm_start > vmp->vm_start) |
mpnt | 373 | mm/mmap.c | nxtpp = &mpnt->vm_next; |
mpnt | 375 | mm/mmap.c | if ((vmp->vm_start >= mpnt->vm_start && |
mpnt | 376 | mm/mmap.c | vmp->vm_start < mpnt->vm_end) || |
mpnt | 377 | mm/mmap.c | (vmp->vm_end >= mpnt->vm_start && |
mpnt | 378 | mm/mmap.c | vmp->vm_end < mpnt->vm_end)) |
mpnt | 381 | mm/mmap.c | mpnt->vm_start, vmp->vm_end); |
mpnt | 384 | mm/mmap.c | vmp->vm_next = mpnt; |
mpnt | 394 | mm/mmap.c | void merge_segments(struct vm_area_struct *mpnt, |
mpnt | 399 | mm/mmap.c | if (mpnt == NULL) |
mpnt | 402 | mm/mmap.c | for(prev = mpnt, mpnt = mpnt->vm_next; |
mpnt | 403 | mm/mmap.c | mpnt != NULL; |
mpnt | 404 | mm/mmap.c | prev = mpnt, mpnt = next) |
mpnt | 408 | mm/mmap.c | next = mpnt->vm_next; |
mpnt | 413 | mm/mmap.c | mp = prev->vm_offset + psz == mpnt->vm_offset; |
mpnt | 416 | mm/mmap.c | mp = (*mergep)(prev, mpnt, mpd); |
mpnt | 423 | mm/mmap.c | if (prev->vm_ops != mpnt->vm_ops || |
mpnt | 424 | mm/mmap.c | prev->vm_page_prot != mpnt->vm_page_prot || |
mpnt | 425 | mm/mmap.c | prev->vm_inode != mpnt->vm_inode || |
mpnt | 426 | mm/mmap.c | prev->vm_end != mpnt->vm_start || |
mpnt | 428 | mm/mmap.c | prev->vm_flags != mpnt->vm_flags || |
mpnt | 429 | mm/mmap.c | prev->vm_share != mpnt->vm_share || /* ?? */ |
mpnt | 430 | mm/mmap.c | prev->vm_next != mpnt) /* !!! */ |
mpnt | 438 | mm/mmap.c | prev->vm_end = mpnt->vm_end; |
mpnt | 439 | mm/mmap.c | prev->vm_next = mpnt->vm_next; |
mpnt | 440 | mm/mmap.c | kfree_s(mpnt, sizeof(*mpnt)); |
mpnt | 441 | mm/mmap.c | mpnt = prev; |
mpnt | 453 | mm/mmap.c | struct vm_area_struct * mpnt; |
mpnt | 458 | mm/mmap.c | mpnt = (struct vm_area_struct * ) kmalloc(sizeof(struct vm_area_struct), GFP_KERNEL); |
mpnt | 459 | mm/mmap.c | if (!mpnt) |
mpnt | 462 | mm/mmap.c | mpnt->vm_task = current; |
mpnt | 463 | mm/mmap.c | mpnt->vm_start = addr; |
mpnt | 464 | mm/mmap.c | mpnt->vm_end = addr + len; |
mpnt | 465 | mm/mmap.c | mpnt->vm_page_prot = mask; |
mpnt | 466 | mm/mmap.c | mpnt->vm_flags = 0; |
mpnt | 467 | mm/mmap.c | mpnt->vm_share = NULL; |
mpnt | 468 | mm/mmap.c | mpnt->vm_inode = NULL; |
mpnt | 469 | mm/mmap.c | mpnt->vm_offset = 0; |
mpnt | 470 | mm/mmap.c | mpnt->vm_ops = NULL; |
mpnt | 471 | mm/mmap.c | insert_vm_struct(current, mpnt); |