gmac_alloc_ctx
extern void *gmac_alloc_ctx(int);
allocf = gmac_alloc_ctx;
alloc_fun = gmac_alloc_ctx;