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.
op が「何であるか」には答えません。それはintですか?文字列?構造?Linux プラットフォームなどでこのコマンドを適切に使用するにはどうすればよいですか?