2 * Peer to Peer Kernel Protocol
8 #include <linux/kernel.h>
9 #include <linux/module.h>
10 #include <linux/init.h>
12 #include "p2pkp_sock.h"
13 #include "p2pkp_debug.h"
15 MODULE_DESCRIPTION("P2P Kernel Protocol");
16 MODULE_AUTHOR("Razvan Crainea and Tudor Cazangiu");
17 MODULE_LICENSE("GPL");
19 int __init p2pkp_sock_init(void)
21 if (p2pkp_register_protocol() < 0) {
22 ERROR("error while registering socket operations");
28 void __exit p2pkp_sock_exit(void)
31 p2pkp_unregister_protocol();
34 module_init(p2pkp_sock_init);
35 module_exit(p2pkp_sock_exit);