Lines Matching refs:nbytes
88 alloc_malloc(size_t nbytes, const char *fname, int line) in alloc_malloc() argument
92 ASSERT(nbytes > 0); in alloc_malloc()
94 retval = fmd_hdl_alloc(Hdl, nbytes + HDRSIZ, FMD_SLEEP); in alloc_malloc()
98 bcopy((void *)&nbytes, (void *)retval, sizeof (nbytes)); in alloc_malloc()
102 stats_counter_add(Malloctotal, nbytes); in alloc_malloc()
107 totalcount += nbytes + HDRSIZ; in alloc_malloc()
117 alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line) in alloc_realloc() argument
119 void *retval = alloc_malloc(nbytes, fname, line); in alloc_realloc()
127 bcopy(ptr, retval, (osize < nbytes) ? osize : nbytes); in alloc_realloc()
188 alloc_xmalloc(size_t nbytes) in alloc_xmalloc() argument
192 ASSERT(nbytes > 0); in alloc_xmalloc()
193 retval = fmd_hdl_alloc(Hdl, nbytes, FMD_SLEEP); in alloc_xmalloc()
195 stats_counter_add(Malloctotal, nbytes); in alloc_xmalloc()
198 totalcount += nbytes; in alloc_xmalloc()