LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   ioctl performance question (https://www.linuxquestions.org/questions/programming-9/ioctl-performance-question-641538/)

jaepi 05-11-2008 09:25 PM

ioctl performance question
 
Hello there, I'm just wondering if the ioctl function can affect the performance time of your program? How long would it take for an ioctl() function to perform like for example executing commands in devices such as cdrom drives and hard disks? And if ever it affects, how would you enhance the speed of your program? Thanks! :)

PatrickNew 05-11-2008 10:28 PM

ioctl() is usually not a performance bottleneck, as one does not normally make a large number of ioctl calls. Unfortunately, like any other system call, there really is no solid answer to how long it will take. The execution time of an ioctl is going to be dependent upon a number of factors, the largest probably being the inherent difficulty of the action requested and the complexity of the driver being used.

Sorry, but it's a big fat "undefined".


All times are GMT -5. The time now is 01:07 AM.