Expand description
ioctl 系统调用实现
ioctl (input/output control) 是一个多功能的系统调用,用于设备特定的控制操作。
Functions§
- fs_
error_ 🔒to_ errno - 将 VFS 错误转换为 errno
- handle_
fioasync 🔒 - FIOASYNC - 设置/清除异步 I/O 通知
- handle_
fionbio 🔒 - FIONBIO - 设置/清除非阻塞 I/O 标志
- handle_
fionread 🔒 - FIONREAD - 获取可读字节数
- handle_
ifreq 🔒 - 处理网络接口请求(ifreq 结构)
- handle_
siocgifconf 🔒 - SIOCGIFCONF - 获取网络接口列表
- handle_
tiocgpgrp 🔒 - TIOCGPGRP - 获取终端前台进程组 ID
- handle_
tiocsctty 🔒 - TIOCSCTTY - 设置控制终端
- handle_
tiocspgrp 🔒 - TIOCSPGRP - 设置终端前台进程组 ID
- handle_
vt_ 🔒openqry - VT_OPENQRY - 查询可用的虚拟终端
- ioctl
- ioctl - 设备特定的输入/输出控制