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 "timer.h" | |
#define MAX_SIZE 48 | |
static int timer_val = 100; | |
module_param(timer_val, int, 0); | |
MODULE_PARM_DESC(timer_val, "Configurable, default timer is set to 100msec's"); | |
static int arr[10]; | |
static int p; |
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 "list.h" | |
/** | |
* Global variable declaration section | |
*/ | |
struct todo_struct | |
{ | |
S32 priority; /* driver specific */ | |
S8 *name; | |
struct list_head list; |
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/module.h> | |
#include <linux/init.h> | |
#include <linux/fs.h> | |
#include <linux/slab.h> | |
#include <linux/kthread.h> | |
#include <linux/sched.h> | |
#include <linux/delay.h> | |
MODULE_LICENSE("GPL"); |
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 "hello.h" | |
struct dentry *parent = NULL; | |
u32 test_db = 0; | |
CNTXT *db_struct = NULL; | |
char wrbuf[sizeof(CNTXT) * 5]; | |
static | |
ssize_t db_read(struct file *filp, char __user *buf, size_t count,loff_t *fpos) |