Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/mm/
H A Dmlock-random-test.c52 unsigned long lock_size = 0; in get_proc_locked_vm_size() local
62 ret = sscanf(line, "VmLck:\t%8lu kB", &lock_size); in get_proc_locked_vm_size()
70 return (int)(lock_size << 10); in get_proc_locked_vm_size()
163 int lock_size = rand() % alloc_size; in test_mlock_within_limit() local
164 int start_offset = rand() % (alloc_size - lock_size); in test_mlock_within_limit()
167 ret = mlock(p + start_offset, lock_size); in test_mlock_within_limit()
169 ret = mlock2_(p + start_offset, lock_size, in test_mlock_within_limit()
176 p + start_offset, lock_size); in test_mlock_within_limit()
234 int lock_size = (rand() % (alloc_size - cur.rlim_cur)) in test_mlock_outof_limit() local
236 int start_offset = rand() % (alloc_size - lock_size); in test_mlock_outof_limit()
[all …]
/openbmc/qemu/util/
H A Datomic64.c25 static size_t lock_size; variable
41 return lock_array + idx * lock_size; in addr_to_lock()
78 lock_size = ROUND_UP(sizeof(QemuSpin), qemu_dcache_linesize);
79 lock_array = qemu_memalign(qemu_dcache_linesize, lock_size * NR_LOCKS);
81 QemuSpin *lock = lock_array + i * lock_size;
/openbmc/linux/fs/dlm/
H A Drcom.c585 int lock_size = sizeof(struct dlm_rcom) + sizeof(struct rcom_lock); in dlm_receive_rcom() local
649 if (le16_to_cpu(rc->rc_header.h_length) < lock_size) in dlm_receive_rcom()
667 if (le16_to_cpu(rc->rc_header.h_length) < lock_size) in dlm_receive_rcom()