All of lore.kernel.org
 help / color / mirror / Atom feed
* simple memory malloc and free in ip_output.c
@ 2013-12-27  3:16 Guibin(Bill) Tian
  2013-12-27  3:24 ` bill4carson
  2014-01-02  5:12 ` Mulyadi Santosa
  0 siblings, 2 replies; 10+ messages in thread
From: Guibin(Bill) Tian @ 2013-12-27  3:16 UTC (permalink / raw)
  To: kernelnewbies

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);
kfree(p);

This will be called every time this method is called.

But the result is that the whole system is not responsive at all. This is a
very simple, not sure what I am doing wrong. Can anybody help?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131226/3b559310/attachment.html 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-07 11:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-27  3:16 simple memory malloc and free in ip_output.c Guibin(Bill) Tian
2013-12-27  3:24 ` bill4carson
2013-12-27  4:21   ` Guibin(Bill) Tian
2013-12-27  5:39     ` Guibin(Bill) Tian
2013-12-27  7:02       ` Anand Moon
2014-01-02  5:12 ` Mulyadi Santosa
2014-01-02  5:41   ` Valdis.Kletnieks at vt.edu
2014-01-02  6:15     ` Mulyadi Santosa
2014-01-02 17:42       ` Guibin(Bill) Tian
2014-01-07 11:27         ` Mulyadi Santosa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.