Hi friends,
I am not able to compile this code at the
time of compilation it gives undefined reference to
alloc_skb function.
i need ur help immedieatly
PLZ help
amit
#include <linux/skbuff.h>
#include <linux/mm.h>
void test()
{
#ifdef __KERNEL__
unsigned long flags;
struct sk_buff* buffer;
local_irq_save(flags);
buffer = alloc_skb(100,GFP_KERNEL);
local_irq_restore(flags);
#endif
}
#endif
main()
{
test();
}
The ERrror it is giving is:---
/tmp/cc7KXXrU.o: In function `test':
/tmp/cc7KXXrU.o(.text+0x13): undefined reference to
`alloc_skb'
collect2: ld returned 1 exit status
________________________________________________________________________
For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds...
Visit http://in.finance.yahoo.com/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/