Home
last modified time | relevance | path

Searched refs:lock_size (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/tools/testing/selftests/vm/
Dmlock-random-test.c51 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()
69 return (int)(lock_size << 10); in get_proc_locked_vm_size()
162 int lock_size = rand() % alloc_size; in test_mlock_within_limit() local
163 int start_offset = rand() % (alloc_size - lock_size); in test_mlock_within_limit()
166 ret = mlock(p + start_offset, lock_size); in test_mlock_within_limit()
168 ret = mlock2_(p + start_offset, lock_size, in test_mlock_within_limit()
175 p + start_offset, lock_size); in test_mlock_within_limit()
233 int lock_size = (rand() % (alloc_size - cur.rlim_cur)) in test_mlock_outof_limit() local
235 int start_offset = rand() % (alloc_size - lock_size); in test_mlock_outof_limit()
[all …]
/linux-6.1.9/fs/dlm/
Drcom.c571 int lock_size = sizeof(struct dlm_rcom) + sizeof(struct rcom_lock); in dlm_receive_rcom() local
635 if (le16_to_cpu(rc->rc_header.h_length) < lock_size) in dlm_receive_rcom()
653 if (le16_to_cpu(rc->rc_header.h_length) < lock_size) in dlm_receive_rcom()