1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
/* This is part of um-ViewOS
* The user-mode implementation of OSVIEW -- A Process with a View
*
*
*
* Copyright 2005 Renzo Davoli University of Bologna - Italy
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2, as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* $Id: testmodul2.c 1003 2011-09-06 10:32:34Z rd235 $
*
*/
#include <stdio.h>
#include <config.h>
#include "module.h"
#include "gdebug.h"
static struct service s;
VIEWOS_SERVICE(s)
static void
__attribute__ ((constructor))
init (void)
{
printk(KERN_NOTICE "testmodul2 init\n");
s.name="test2";
s.description="Test Module 2";
s.syscall=NULL;
s.socket=NULL;
}
static void
__attribute__ ((destructor))
fini (void)
{
printk(KERN_NOTICE "testmodul2 fini\n");
}
|