当前位置: 技术问答>linux和unix
ioctl() 到底有什么作用??
来源: 互联网 发布时间:2015-07-20
本文导语: 最近在看linux编程,有个ioctl(), 到底它是做什么的?主要用于哪方面的编程? | 对I/O设备做统一的控制,可以调整好多参数。 | For example, you can call it to get the mac addre...
最近在看linux编程,有个ioctl(), 到底它是做什么的?主要用于哪方面的编程?
|
对I/O设备做统一的控制,可以调整好多参数。
|
For example, you can call it to get the mac address of NIC.
For more information, try the commands "man ioctl" and "man ioctl_list".
For more information, try the commands "man ioctl" and "man ioctl_list".
|
the biggest usage of ioctl() is on the aspect of terminal I/O.
|
ur can see the head file for more detail.