POOLSIZE
rpool->sm_poolsize = POOLSIZE - sizeof(SM_POOLHDR_T);
poolsize = POOLSIZE - sizeof(SM_POOLHDR_T);