Hi everyone!
I'm trying to make a kernel device driver. while compiling my code I got an error
.
Thanks!!
I'm trying to make a kernel device driver. while compiling my code I got an error
and here i have attached the headers for your reference which i usederror: implicit declaration of function ‘interruptible_sleep_on’ [-Werror=implicit-function-declaration]
line: interruptible_sleep_on(&wait);
Code:
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/cdev.h>
#include <linux/semaphore.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/types.h>
#include <linux/poll.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/wait.h>
#include <linux/sched.h>
#include <linux/semaphore.h>
#include <linux/fcntl.h>
#include <linux/sched/signal.h>
Thanks!!