Try CLICK_LALLOC(size) and CLICK_LFREE(pointer, size), which allow larger allocations than operator new. 'git grep LALLOC'
But you may just be doomed. It is not generally possible to allocate GBs in the kernel as far as I know. Eddie On 02/07/2011 09:22 AM, Nilay Vaish wrote: > I am running click at the kernel level. I have a click module, in which I > need to allocate memory. The size of allocation can run in to GBs. I am > currently using new operator to allocate the memory. For small sizes (a > couple of MBs), new works fine. But for larger sizes, a segmentation fault > occurs. Should I use a different function for allocation of memory? I > think kernel modules do not use malloc / new. > > Thanks > Nilay > > _______________________________________________ > click mailing list > [email protected] > https://amsterdam.lcs.mit.edu/mailman/listinfo/click _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
