svn commit: r286324 - head/sys/compat/cloudabi

Ed Schouten ed at FreeBSD.org
Wed Aug 5 16:45:48 UTC 2015


Author: ed
Date: Wed Aug  5 16:45:47 2015
New Revision: 286324
URL: https://svnweb.freebsd.org/changeset/base/286324

Log:
  Add DECLARE_MODULE() to the "cloudabi" kernel module.
  
  This kernel module does not require any explicit initialization, but a
  module declaration is needed to let the "cloudabi64" kernel module
  automatically pull this in.
  
  Obtained from:	https://github.com/NuxiNL/freebsd

Modified:
  head/sys/compat/cloudabi/cloudabi_proc.c

Modified: head/sys/compat/cloudabi/cloudabi_proc.c
==============================================================================
--- head/sys/compat/cloudabi/cloudabi_proc.c	Wed Aug  5 16:15:43 2015	(r286323)
+++ head/sys/compat/cloudabi/cloudabi_proc.c	Wed Aug  5 16:45:47 2015	(r286324)
@@ -30,7 +30,9 @@ __FBSDID("$FreeBSD$");
 #include <sys/capsicum.h>
 #include <sys/filedesc.h>
 #include <sys/imgact.h>
+#include <sys/kernel.h>
 #include <sys/lock.h>
+#include <sys/module.h>
 #include <sys/mutex.h>
 #include <sys/proc.h>
 #include <sys/signalvar.h>
@@ -133,3 +135,12 @@ cloudabi_sys_proc_raise(struct thread *t
 	PROC_UNLOCK(p);
 	return (0);
 }
+
+static moduledata_t cloudabi_module = {
+	"cloudabi",
+	NULL,
+	NULL
+};
+
+DECLARE_MODULE(cloudabi, cloudabi_module, SI_SUB_EXEC, SI_ORDER_ANY);
+MODULE_VERSION(cloudabi, 1);


More information about the svn-src-all mailing list