diff options
Diffstat (limited to 'runtime/transport/control.c')
-rw-r--r-- | runtime/transport/control.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/transport/control.c b/runtime/transport/control.c index 680d7306..a1624152 100644 --- a/runtime/transport/control.c +++ b/runtime/transport/control.c @@ -9,6 +9,11 @@ * later version. */ +#include "control.h" +#include "../mempool.c" +#include "symbols.c" +#include <linux/delay.h> + static _stp_mempool_t *_stp_pool_q; static struct list_head _stp_ctl_ready_q; static DEFINE_SPINLOCK(_stp_ctl_ready_lock); @@ -197,7 +202,7 @@ static ssize_t _stp_ctl_read_cmd(struct file *file, char __user *buf, static int _stp_ctl_open_cmd(struct inode *inode, struct file *file) { - if (_stp_attached) + if (_stp_ctl_attached) return -1; _stp_attach(); return 0; @@ -205,7 +210,7 @@ static int _stp_ctl_open_cmd(struct inode *inode, struct file *file) static int _stp_ctl_close_cmd(struct inode *inode, struct file *file) { - if (_stp_attached) + if (_stp_ctl_attached) _stp_detach(); return 0; } |