Searched refs:offset_array (Results 1 – 1 of 1) sorted by relevance
37 pm_pswap_refcount_t *offset_array; member68 p_swap->offset_array = calloc(p_swap->array_size, sizeof(pm_pswap_refcount_t)); in pm_memusage_pswap_create()69 if (p_swap->offset_array == NULL) { in pm_memusage_pswap_create()81 free(p_swap->offset_array); in pm_memusage_pswap_destroy()96 if (mu->p_swap->offset_array[offset] == USHRT_MAX) { in pm_memusage_pswap_add_offset()99 mu->p_swap->offset_array[offset]++; in pm_memusage_pswap_add_offset()120 su->proportional += pagesize / mu->p_swap->offset_array[elem->offset]; in pm_memusage_pswap_get_usage()121 su->unique += mu->p_swap->offset_array[elem->offset] == 1 ? pagesize : 0; in pm_memusage_pswap_get_usage()