int ng_##tn##_init(void); \
int ng_##tn##_init() { \
int error; \
void *type = (tp); \
printk(KERN_INFO "VNB: Loading ng_" #tn "(Build: %s %s)\n", \
__DATE__, __TIME__); \
if ((error = ng_newtype(type)) != 0) { \
printk(KERN_INFO "VNB: ng_" #tn "_init failed (%d)\n",error); \
return -EINVAL; \
} \
return(0); \
}
阅读(802) | 评论(0) | 转发(0) |