w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do I use a Linux System call from a Linux Kernel Module
You can directly call sys_mycall

#include <linux/module.h>
#include <linux/unistd.h>


static int start_init(void)
{
   long value = sys_mycall (pass_arguments)
   printk("The value is %ld
",value);

   return 0;
}

static void finish_exit(void)
{
      printk("Done!
");
}

module_init(start_init);
module_exit(finish_exit);




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.