Searched refs:lock_limit (Results 1 – 5 of 5) sorted by relevance
57 unsigned long lock_limit; in __qib_get_user_pages() local61 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()
59 unsigned long lock_limit; in __ipath_get_user_pages() local63 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in __ipath_get_user_pages()65 if (num_pages > lock_limit) { in __ipath_get_user_pages()
85 unsigned long lock_limit; in ib_umem_get() local151 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in ib_umem_get()153 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in ib_umem_get()
53 unsigned long locked, lock_limit, npages; in tce_iommu_enable() local86 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in tce_iommu_enable()87 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { in tce_iommu_enable()
107 unsigned long lock_limit; in usnic_uiom_get_pages() local134 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in usnic_uiom_get_pages()136 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in usnic_uiom_get_pages()