Reading
ioctl Section (pg 135 - 147)
Study Questions
-
Why is the ioctl interface used for?
-
Is ioctl used to read or write data? How much data?
-
Why is ioctl sometimes disliked by kernel developers?
-
How are ioctl command numbers constructed?
-
(T/F) If you don’t follow convention in creating your ioctl numbers, the kernel will reject your ioctl command.
-
(T/F) The user-provided pointers need to be validated before being used by the kernel.
-
(T/F) You can design drivers to control devices without using the ioctl mechanism.