Print this page
7127  remove -Wno-missing-braces from Makefile.uts


  51         SOCKMOD_VERSION,
  52         "socksctp",
  53         SOCK_UC_VERSION,
  54         SOCK_DC_VERSION,
  55         NULL,
  56         &sosctp_priv
  57 };
  58 
  59 kmem_cache_t *sosctp_assoccache;
  60 static kmem_cache_t *sosctp_sockcache;
  61 
  62 /*
  63  * Module linkage information for the kernel.
  64  */
  65 static struct modlsockmod modlsockmod = {
  66         &mod_sockmodops, "SCTP socket module", &sinfo
  67 };
  68 
  69 static struct modlinkage modlinkage = {
  70         MODREV_1,
  71         &modlsockmod,
  72         NULL
  73 };
  74 
  75 static int
  76 socksctp_init(void)
  77 {
  78         sosctp_sockcache = kmem_cache_create("sctpsock",
  79             sizeof (struct sctp_sonode), 0, socksctp_constructor,
  80             socksctp_destructor, NULL, NULL, NULL, 0);
  81         sosctp_assoccache = kmem_cache_create("sctp_assoc",
  82             sizeof (struct sctp_soassoc), 0, NULL, NULL, NULL, NULL, NULL, 0);
  83         return (0);
  84 }
  85 
  86 static void
  87 socksctp_fini(void)
  88 {
  89         kmem_cache_destroy(sosctp_sockcache);
  90         kmem_cache_destroy(sosctp_assoccache);
  91 }
  92 




  51         SOCKMOD_VERSION,
  52         "socksctp",
  53         SOCK_UC_VERSION,
  54         SOCK_DC_VERSION,
  55         NULL,
  56         &sosctp_priv
  57 };
  58 
  59 kmem_cache_t *sosctp_assoccache;
  60 static kmem_cache_t *sosctp_sockcache;
  61 
  62 /*
  63  * Module linkage information for the kernel.
  64  */
  65 static struct modlsockmod modlsockmod = {
  66         &mod_sockmodops, "SCTP socket module", &sinfo
  67 };
  68 
  69 static struct modlinkage modlinkage = {
  70         MODREV_1,
  71         { &modlsockmod, NULL }

  72 };
  73 
  74 static int
  75 socksctp_init(void)
  76 {
  77         sosctp_sockcache = kmem_cache_create("sctpsock",
  78             sizeof (struct sctp_sonode), 0, socksctp_constructor,
  79             socksctp_destructor, NULL, NULL, NULL, 0);
  80         sosctp_assoccache = kmem_cache_create("sctp_assoc",
  81             sizeof (struct sctp_soassoc), 0, NULL, NULL, NULL, NULL, NULL, 0);
  82         return (0);
  83 }
  84 
  85 static void
  86 socksctp_fini(void)
  87 {
  88         kmem_cache_destroy(sosctp_sockcache);
  89         kmem_cache_destroy(sosctp_assoccache);
  90 }
  91