Re: strange code in linux kernel

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

 





On Tue, Oct 6, 2009 at 7:34 AM, Rajat Jain <rajat.noida.india@xxxxxxxxx> wrote:
Hi List,

I found that there are some weird looking instances in kernel where a
function has been DEFINED (as opposite to DECLARED) using and "extern"
keyword. For e.g., the following code in arch/alpha/include/asm/io.h:

extern inline void __iomem *generic_ioportmap(unsigned long a)
{
       return alpha_mv.mv_ioportmap(a);
}

Using a definition along with extern does not make any sense to me.
Can some one please enlighten what is its use / purpose?

Thanks,

Rajat Jain

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

Hi,
You can read about this here:
http://lists.parisc-linux.org/pipermail/parisc-linux/2005-October/027587.html
http://lkml.indiana.edu/hypermail/linux/kernel/0408.0/1695.html


--
Regards,
Denis

[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