add _tbm_bufmgr_get_bufmgr as internal function