Using ioctl() for custom commands