1 /* SWAP Device ioctl commands */
3 #include "ioctl_commands.h"
5 #include "da_protocol.h"
10 //send message to device
11 int ioctl_send_msg(struct msg_data_t *msg)
13 LOGI("write to device\n");
14 if (ioctl(manager.buf_fd, 0, msg) == -1) {
15 LOGE("write to device: %s\n", strerror(errno));