Skip to content
Snippets Groups Projects
Commit abafcd8b authored by Aljoscha Wißfeld's avatar Aljoscha Wißfeld
Browse files

includes managed and fasync added

parent 76d89e81
No related branches found
No related tags found
2 merge requests!7Multithreads enabled,!6Select
......@@ -17,22 +17,15 @@
#include <linux/debugfs.h>
#include <linux/poll.h>
#include <linux/slab.h>
//#include <linux/of.h>
//#include <linux/err.h>
//#include <linux/fs.h>
//#include <linux/io.h>
//#include <linux/kernel.h>
//#include <linux/uaccess.h>
//#include <linux/sched/signal.h>
//#include <linux/dmapool.h>
//#include <linux/kthread.h>
//#include <linux/interrupt.h>
//#include <linux/delay.h>
//#include <linux/wait.h>
//#include <linux/semaphore.h>
//#include <linux/list.h>
//#include <stdbool.h>
#include <linux/of.h>
#include <linux/err.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/uaccess.h>
#include <linux/wait.h>
#include <linux/semaphore.h>
#include <linux/list.h>
#include <linux/types.h>
#define DRIVER_NAME "remoteproc-shm"
#define SHM_SIZE 0x800000
......@@ -74,7 +67,6 @@ static void rproc_shm_recv_message(struct mbox_client *client, void *message)
dev_info(client->dev, "rproc_shm_recv_message: %p\n", message);
/*
if(dev->async_queue) {
dev_info(client->dev, "dev->async_queue == True\n");
kill_fasync(&dev->async_queue, SIGIO, POLL_IN);
......@@ -83,7 +75,6 @@ static void rproc_shm_recv_message(struct mbox_client *client, void *message)
else {
dev_info(client->dev, "dev->async_queue == FALSE\n");
}
*/
list_for_each(pos, &dev->list) {
entry = list_entry(pos, struct rproc_file, head);
......@@ -236,7 +227,13 @@ static int rproc_shm_mmap(struct file *filp, struct vm_area_struct *vma)
return 0;
}
/*
/**
* rproc_shm_fasync - setup of async_queue
* @fd: file descriptor
* @filp: file pointer
* @mode: inidcates queue content
*/
static int rproc_shm_fasync(int fd, struct file *filp, int mode)
{
dev_info(dev->dev, "rproc_shm_fasync");
......@@ -244,7 +241,7 @@ static int rproc_shm_fasync(int fd, struct file *filp, int mode)
return fasync_helper(fd, filp, mode, &dev->async_queue);
}
*/
/**
* rproc_shm_fsync - sends message to IPU
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment