Lines Matching refs:lock_size
53 unsigned long lock_size = 0; in get_proc_locked_vm_size() local
61 ret = sscanf(line, "VmLck:\t%8lu kB", &lock_size); in get_proc_locked_vm_size()
68 return (int)(lock_size << 10); in get_proc_locked_vm_size()
154 int lock_size = rand() % alloc_size; in test_mlock_within_limit() local
155 int start_offset = rand() % (alloc_size - lock_size); in test_mlock_within_limit()
158 ret = mlock(p + start_offset, lock_size); in test_mlock_within_limit()
160 ret = mlock2_(p + start_offset, lock_size, in test_mlock_within_limit()
167 p + start_offset, lock_size); in test_mlock_within_limit()
215 int lock_size = (rand() % (alloc_size - cur.rlim_cur)) in test_mlock_outof_limit() local
217 int start_offset = rand() % (alloc_size - lock_size); in test_mlock_outof_limit()
220 ret = mlock(p + start_offset, lock_size); in test_mlock_outof_limit()
222 ret = mlock2_(p + start_offset, lock_size, in test_mlock_outof_limit()
227 p, alloc_size, p + start_offset, lock_size); in test_mlock_outof_limit()