May 25, 2010

Welcome to LogBSD!

Filed under: LogBSD, News — logbsd @ 3:03 PM Comments (1)

LogBSD Research Group was born..

#include <sys/param.h>
#include <sys/module.h>
#include <sys/kernel.h>
#include <sys/systm.h>
 
/* The function called at load/unload. */
static int load(struct module *module, int cmd, void *arg){
        int error = 0;
        switch (cmd) {
                case MOD_LOAD:
                        uprintf("Hello Folks!\n");
                        break;
                case MOD_UNLOAD:
                        uprintf("We are here!\n");
                        break;
                default:
                        error = EOPNOTSUPP;
                        break;
                }
return(error);
}
 
/* The second argument of DECLARE_MODULE. */
static moduledata_t hello_mod = {
                                        "hello", /* module name */
                                        load, /* event handler */
                                        NULL /* extra data */
                                        };
DECLARE_MODULE(hello, hello_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);

we will be announce soon!

1 Comment »

  1. Lets start the new journey..

    Comment by LogBSD — July 8, 2010 @ 2:26 PM

Powered by Unknown BlogC theme by Michael Hampton