#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/mount.h>
#include <linux/fs.h>
#include <linux/sched.h>
static int __init test_init(void){
char tmch;
int i = 0;
printk("Output arg is :\n");
while(current->mm->arg_start+i < current->mm->arg_end)
{
tmch = *(char*)(current->mm->arg_start+i);
if(tmch == '\0')
printk(" ");
else
printk("%c",tmch);
i++;
}
printk("\n");
return 0;
}
static void __exit test_exit(void)
{
return;
}
module_init(test_init);
module_exit(test_exit);
MODULE_LICENSE("GPL");