Lines Matching refs:nmemb
268 * @nmemb: Number of members in the array
272 * This function can be used as a wrapper for os_zalloc(nmemb * size) when an
278 static inline void * os_calloc(size_t nmemb, size_t size)
280 if (size && nmemb > (~(size_t) 0) / size)
282 return os_zalloc(nmemb * size);
566 static inline void * os_realloc_array(void *ptr, size_t nmemb, size_t size)
568 if (size && nmemb > (~(size_t) 0) / size)
570 return os_realloc(ptr, nmemb * size);
576 * @nmemb: Current member count of the array
580 static inline void os_remove_in_array(void *ptr, size_t nmemb, size_t size,
583 if (idx < nmemb - 1)
586 (nmemb - idx - 1) * size);