On Wed, Aug 28, 2013 at 7:34 PM, Yinghai Lu wrote: > On Wed, Aug 28, 2013 at 7:18 PM, Yinghai Lu wrote: >> please change to function pointer to >> void (*alloc_func)(void *data, >> unsigned long pnum_begin, >> unsigned long pnum_end, >> unsigned long map_count, int nodeid) >> >> pnum_begin, pnum_end, map_coun, nodeid, should not be in the struct. > > looks like that is what is your first version did. > > I updated it a little bit. please check it. > removed more lines. Yinghai