From owner-svn-src-user@FreeBSD.ORG Thu Oct 31 06:36:11 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C5F763D8; Thu, 31 Oct 2013 06:36:11 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B3F6D233B; Thu, 31 Oct 2013 06:36:11 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9V6aBQK056668; Thu, 31 Oct 2013 06:36:11 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9V6aBse056666; Thu, 31 Oct 2013 06:36:11 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201310310636.r9V6aBse056666@svn.freebsd.org> From: Gleb Smirnoff Date: Thu, 31 Oct 2013 06:36:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r257424 - user/glebius/course/01.intro/module X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2013 06:36:11 -0000 Author: glebius Date: Thu Oct 31 06:36:11 2013 New Revision: 257424 URL: http://svnweb.freebsd.org/changeset/base/257424 Log: An empty module, that we used to run on the introduction lection. Added: user/glebius/course/01.intro/module/ user/glebius/course/01.intro/module/Makefile (contents, props changed) user/glebius/course/01.intro/module/module.c (contents, props changed) Added: user/glebius/course/01.intro/module/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/glebius/course/01.intro/module/Makefile Thu Oct 31 06:36:11 2013 (r257424) @@ -0,0 +1,4 @@ +KMOD=module +SRCS=module.c + +.include Added: user/glebius/course/01.intro/module/module.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/glebius/course/01.intro/module/module.c Thu Oct 31 06:36:11 2013 (r257424) @@ -0,0 +1,21 @@ +#include +#include +#include +#include + +static int +foo_handler(module_t mod, int what, void *arg) +{ + + printf("demo: %d, %p\n", what, arg); + + return (0); +} + +static moduledata_t mod_data= { + .name = "foo", + .evhand = foo_handler, +}; + +MODULE_VERSION(foo, 1); +DECLARE_MODULE(foo, mod_data, SI_SUB_EXEC, SI_ORDER_ANY);