This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define __MODULE__ "DHEXMPL" | |
#define __IDENT__ "X.00-01" | |
#ifdef __GNUC__ | |
#ident __IDENT__ | |
#endif | |
#pragma GCC diagnostic ignored "-Wparentheses" | |
#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers" | |
#pragma GCC diagnostic ignored "-Wmissing-braces" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** DESCRIPTION: A template for the callback function. Don't forget to include <stdarg.h> | |
** | |
** INPUT: | |
** ctx: a callback context argument has been passed into the bagent_init() | |
** what: see BP$K_* constants: | |
** sd: is an optional argument is passed if what==BP$K_PROTSD | |
** | |
** OUTPUT: | |
** NONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/kernel.h> | |
#include <linux/init.h> | |
#include <linux/module.h> | |
#include <linux/fs.h> | |
#include <linux/blkdev.h> | |
#include <linux/cdev.h> | |
#include <linux/kthread.h> | |
#include <linux/interrupt.h> | |
#include <linux/bio.h> | |
#include <linux/blkdev.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXTRA_CFLAGS += -D_GNU_SOURCE | |
obj-m := vraid.o | |
all: | |
make -C /usr/src/linux-headers-$(shell uname -r) SUBDIRS=$(PWD) modules | |
clean: | |
make -C /usr/src/linux-headers-$(shell uname -r) SUBDIRS=$(PWD) clean |