Home
last modified time | relevance | path

Searched refs:lock_limit (Results 1 – 7 of 7) sorted by relevance

/linux-2.6.39/mm/
Dmlock.c476 unsigned long lock_limit; in SYSCALL_DEFINE2() local
491 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE2()
492 lock_limit >>= PAGE_SHIFT; in SYSCALL_DEFINE2()
495 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in SYSCALL_DEFINE2()
542 unsigned long lock_limit; in SYSCALL_DEFINE1() local
556 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE1()
557 lock_limit >>= PAGE_SHIFT; in SYSCALL_DEFINE1()
560 if (!(flags & MCL_CURRENT) || (current->mm->total_vm <= lock_limit) || in SYSCALL_DEFINE1()
590 unsigned long lock_limit, locked; in user_shm_lock() local
594 lock_limit = rlimit(RLIMIT_MEMLOCK); in user_shm_lock()
[all …]
Dmremap.c293 unsigned long locked, lock_limit; in vma_to_resize() local
295 lock_limit = rlimit(RLIMIT_MEMLOCK); in vma_to_resize()
297 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in vma_to_resize()
Dmmap.c1038 unsigned long locked, lock_limit; in do_mmap_pgoff() local
1041 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_mmap_pgoff()
1042 lock_limit >>= PAGE_SHIFT; in do_mmap_pgoff()
1043 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in do_mmap_pgoff()
2200 unsigned long locked, lock_limit; in do_brk() local
2203 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_brk()
2204 lock_limit >>= PAGE_SHIFT; in do_brk()
2205 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in do_brk()
/linux-2.6.39/drivers/infiniband/hw/qib/
Dqib_user_pages.c57 unsigned long lock_limit; in __qib_get_user_pages() local
61 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in __qib_get_user_pages()
63 if (num_pages > lock_limit && !capable(CAP_IPC_LOCK)) { in __qib_get_user_pages()
/linux-2.6.39/drivers/infiniband/hw/ipath/
Dipath_user_pages.c59 unsigned long lock_limit; in __ipath_get_user_pages() local
63 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in __ipath_get_user_pages()
65 if (num_pages > lock_limit) { in __ipath_get_user_pages()
/linux-2.6.39/drivers/infiniband/core/
Dumem.c85 unsigned long lock_limit; in ib_umem_get() local
140 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in ib_umem_get()
142 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in ib_umem_get()
/linux-2.6.39/kernel/
Dperf_event.c3725 unsigned long locked, lock_limit; in perf_mmap() local
3783 lock_limit = rlimit(RLIMIT_MEMLOCK); in perf_mmap()
3784 lock_limit >>= PAGE_SHIFT; in perf_mmap()
3787 if ((locked > lock_limit) && perf_paranoid_tracepoint_raw() && in perf_mmap()