Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_alloc.c42 size_t smh_size; member
234 smh->smh_size = size; in smb_alloc()
266 bzero(ptr, smh->smh_size); in smb_free()
269 kmem_free(smh, smh->smh_size + sizeof (smb_mem_header_t)); in smb_free()
301 if (smh->smh_size >= size) { in smb_realloc()
302 if ((zero) && (smh->smh_size > size)) in smb_realloc()
303 bzero((caddr_t)ptr + size, smh->smh_size - size); in smb_realloc()
307 bcopy(ptr, new_ptr, smh->smh_size); in smb_realloc()
309 bzero((caddr_t)new_ptr + smh->smh_size, size - smh->smh_size); in smb_realloc()