根据fcntl 文档,用法fcntl.ioctl
如下:
fcntl.ioctl(fd, op[, arg[, mutate_flag]])
op
定义为
The operation is defined by op and is operating system dependent. These codes are also found in the fcntl module.
它没有回答“什么”操作。它是一个整数吗?一个字符串?一个结构?如何能够正确使用此命令,例如在 Linux 平台上?