LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   2.6.16 sock_init() problem (https://www.linuxquestions.org/questions/linux-kernel-70/2-6-16-sock_init-problem-540887/)

ruger 03-26-2007 09:45 PM

2.6.16 sock_init() problem
 
[root@localhost net]# uname -a
Linux localhost.localdomain 2.6.16.1 #3 SMP Sun Sep 17 20:38:49 CST 2006 i686 i686 i386 GNU/Linux
/linux/init.h:

#define __define_initcall(level,fn) \
static initcall_t __initcall_##fn __attribute_used__ \
__attribute__((__section__(".initcall" level ".init"))) = fn

#define core_initcall(fn) __define_initcall("1",fn)

typedef int (*initcall_t)(void);

i don't understand the macrodefinition,why "=fn"
that's my question,thanks a lot!


All times are GMT -5. The time now is 02:25 AM.