DIR_INPUT
port.direction = DIR_INPUT;
if (ioctl_port.direction == DIR_INPUT) {
if (ioctl_bit.direction == DIR_INPUT) {