2005-02-18 09:35:37

by linux lover

[permalink] [raw]
Subject: Kernel modules query

Hello,
I want to know can a variable be exported by a linux kernel
modules? How can i make a variable getting assigned in kernel module
available to other kernel modules?
regards,
linux.lover.


2005-02-18 17:00:34

by Aleksey Gorelov

[permalink] [raw]
Subject: RE: Kernel modules query

Hi

>-----Original Message-----
>From: [email protected]
>[mailto:[email protected]] On Behalf Of linux lover
>Sent: Friday, February 18, 2005 1:36 AM
>To: [email protected]; [email protected]
>Subject: Kernel modules query
>
>Hello,
> I want to know can a variable be exported by a linux kernel
>modules? How can i make a variable getting assigned in kernel module
>available to other kernel modules?
>regards,
>linux.lover.

EXPORT_SYMBOL(var_name);

For example see arch/i386/kernel/time.c & jiffies_64 (2.6.10 source).

Aleks.