static int __init my_module_init(void) { printk(KERN_INFO "Initializing Netlink Socket\n"); netlink_test(); return 0; }
static int __init _module_init(void) { printk("init netlink socket\n"); if (netlink_test()) { printk("netlink test failed\n"); } return 0; }
int main(int argc, char* argv[]) { g_vlogger_level = 3; if (argv && argc > 1) { int tracelevel = atoi(argv[1]); if (tracelevel > 0 && tracelevel <= 5) g_vlogger_level = tracelevel; } netlink_test(); return 0; }