making a global structure

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

 



hello
i am a newbie, i know about exporting variables between modules,
but what i am trying right now is to export a structure( i want to make a global structure)
i wrote this in one module.....
Code:
struct abc{
int y;
int a[10];
int *z[10];
};
struct abc *x;
EXPORT_SYMBOL(x);
then i tried to use it in another module like this

Code:
extern struct abc *x;
but it didnt work,derefrencing errors ....

are the above codes correct?

can sumone plz correct me. any help appreciated. ty

[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