simple memory malloc and free in ip_output.c

Guibin(Bill) Tian gbtian at gmail.com
Fri Dec 27 00:39:51 EST 2013


It does work in your way, thanks Carson

On Thursday, December 26, 2013, Guibin(Bill) Tian wrote:

> I tried it, still the same thing.
> Also, there is another side effect that if I call the two lines of code
> above, the internet connection seems to break except to localhost.
>
>
> On Thu, Dec 26, 2013 at 10:24 PM, bill4carson <bill4carson at gmail.com<javascript:_e({}, 'cvml', 'bill4carson at gmail.com');>
> > wrote:
>
>>
>>
>> On 2013年12月27日 11:16, Guibin(Bill) Tian wrote:
>>
>>> Hi,
>>> I am doing a very simple operation at the method of ip_queue_xmit in
>>> ip_output.c.
>>> The code is very simple.
>>>
>>> char *p = kmalloc(48, GFP_KERNEL);
>>>
>>                          ^^^^^^^^
>>                         GFP_ATOMIC ?
>> --
>> 八百里秦川尘土飞扬,三千万老陕齐吼秦腔。
>>
>> --bill
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131227/8c26bcbe/attachment.html 


More information about the Kernelnewbies mailing list