Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/mem/lib/
Dmem.c367 static void ksm_child_memset(int child_num, int size, int total_unit, in ksm_child_memset() argument
371 int unit = size / total_unit; in ksm_child_memset()
385 for (j = 0; j < total_unit; j++) { in ksm_child_memset()
400 int j, total_unit; in create_ksm_child() local
404 total_unit = size / unit; in create_ksm_child()
407 memory = malloc(total_unit * sizeof(char *)); in create_ksm_child()
408 for (j = 0; j < total_unit; j++) { in create_ksm_child()
426 ksm_child_memset(child_num, size, total_unit, in create_ksm_child()
436 verify(memory, 'e', child_num, total_unit - 1, in create_ksm_child()
437 total_unit, unit * MB - 1, unit * MB); in create_ksm_child()
[all …]