Lines Matching refs:nbytes
90 alloc_malloc(size_t nbytes, const char *fname, int line)
94 ASSERT(nbytes > 0);
96 retval = fmd_hdl_alloc(Hdl, nbytes + HDRSIZ, FMD_SLEEP);
100 bcopy((void *)&nbytes, (void *)retval, sizeof (nbytes));
104 stats_counter_add(Malloctotal, nbytes);
109 totalcount += nbytes + HDRSIZ;
119 alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line)
121 void *retval = alloc_malloc(nbytes, fname, line);
129 bcopy(ptr, retval, (osize < nbytes) ? osize : nbytes);
190 alloc_xmalloc(size_t nbytes)
194 ASSERT(nbytes > 0);
195 retval = fmd_hdl_alloc(Hdl, nbytes, FMD_SLEEP);
197 stats_counter_add(Malloctotal, nbytes);
200 totalcount += nbytes;