In computing, an
ioctl (pronounced
/aɪˈɒktəl/ or "i-o-control") is part of the
user-to-
kernel interface of a conventional operating system. Short for "Input/output control", ioctls are typically employed to allow userspace code to communicate with hardware devices or kernel components.
操作系统,分成用户层 内核层。cpu阻止用户层 直接 调用内核资源。
ioctl ,设备api。
用户层,调用这个函数来告诉 ,驱动程序做什么操作(传递一个 代码)。
比如:dvd 设备的一些操作
操作系统,分成用户层 内核层。cpu阻止用户层 直接 调用内核资源。
ioctl ,设备api。
用户层,调用这个函数来告诉 ,驱动程序做什么操作(传递一个 代码)。
比如:dvd 设备的一些操作