How to call alloc_skb from interrupt ?

From: Andrey Kubyshev (email.ANTISPAM_at_vtc.ru)
Date: 08/21/03


Date: Thu, 21 Aug 2003 15:39:27 +0200

Hello everyone,

I play with linux 2.4.21 and would like to add the following:
I need to add route with ip_rt_ioctl from arp_process function.
But I get a kernel panic with reason "alloc_skb called nonatomically from interrupt"
I understand that the reason of it that I choose the wrong time/context for such manipulation.

Questions: how to delay execution to the proper time ? I'm afraid that easiest is setting timer to call my proc once will not work , because context of the timer procedure is also undefined.
What would be the proper time for it ?


Thank you for attention,
Andrey Koubychev