Re: exporting a static function

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

 



On Mon, Feb 17, 2003 at 03:42:32PM -0500, alba urrea wrote:
> Do you know how a static function of the kernel linux is called in a 
> module?, I can't adding a function static in the file ksyms.c for export it.

Static means the same in the kernel as it does everywhere else in C: for
identifiers at top-level scope, it means the variable or function is
only visible in the current compilation unit. For variables in function
scope, it means the variable retains the same value across invocations.

So, you cannot export a static symbol -- either way, it isn't visible
beyond the compilation unit that defined it.

Cheers

-- 
United States of America: The world leader in short-sighted policy!

Attachment: pgp00315.pgp
Description: PGP signature


[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