Executes ioctl with the TIOCGDEV option.
fn ioctl_tiocgdev(fd: i32, dev: &mut u32) -> i32
The file descriptor on which to operate.
This ioctl is undocumented but see drivers/tty/tty_io.c.