Re: Where should I declare the global variable

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

 



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

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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