Still stuck ..The problem is that system call is in kernel and
tcp_ipv6.c is kernel module file. I have defined global variable in
kernel i.e in system call and try to access it in kernel module IPv6.
But still I am getting the same
----- Original Message ----
From: Mike Frysinger <vapier.adi@xxxxxxxxx>
To: Irfan Ahmed <ahm_irf@xxxxxxxxx>
Cc: kernelnewbies@xxxxxxxxxxxx
Sent: Thursday, May 3, 2007 3:38:09 AM
Subject: Re: Where should I declare the global variable
On 5/3/07, Irfan Ahmed <ahm_irf@xxxxxxxxx> wrote:
> I have added a new system call that is used to initialize a global variable
> through userspace program. After initialization, I need to use that global
> variable in ~/net/ipv6/tcp_ipv6.c file. let say printing the value of that
> global variable.
ignoring the fact that is just plain wrong ...
> So where should I declare that global variable.
just put an 'extern ...' in the tcp_ipv6.c file since i doubt you have
any sort of real linux API for other linux kernel things to
utilize
-mike