timer_list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
hi all,
  i am using kernel 2.6.11.1 & implementing timers struct timer_list to introduce the delay between successive acknowledgements! i have declared the static struct timer_list * my_timer as local in tcp_send_ack function defined in tcp_output.c.
i have allocated the memory for struct timer_list using kmalloc. some portion of the code for timer_list is as follows:
  my_timer->expires = jiffies + .01 * HZ
  my_timer->data = "">   my_timer->function = (void *)my_function
the function (my_function)which i want to execute is tcp_transmit_skb which is called in the function my_function.
  now when i recompile the kernel for the first step i.e make all
i get errors after
-----
----
LD init/built-in.o
LD .tmp_vmlinux1
net/built_in.o(.text+0x3e517) : IN function 'tcp_send_ack'
net/ipv4/tcp_output.c:1650:undefined reference to '__adddf3'
net/built_in.o(.text+0x3e523):net/ipv4/tcp_output.c:1650:undefined reference to '__fixunsdfsi'
net/built_in.o(.text+0x3e5b7):net/ipv4/tcp_output.c:1650:undefined reference to '__floatsidf'
net/built_in.o(.text+0x3e5da):net/ipv4/tcp_output.c:1650:undefined reference to '__adddf3'
make:*** [.tmp_vmlinux1]error1

is it necessary to allocate the memory for the timer_list & free it?
where i am going wrong!
pls help me on this!

warm regards,
kiran kumar s.k
N.I.T.K,surathkal


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux