LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-11-2008, 09:25 PM   #1
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Rep: Reputation: 30
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!
 
Old 05-11-2008, 10:28 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
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".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass IOCTL arguments from usespace ioctl call devkpict Linux - Kernel 1 12-07-2007 06:45 PM
Performance Tuning Question? toddbailey Linux - Server 1 09-14-2007 02:00 PM
Extremely poor SATA performance (Inappropriate ioctl for device) kyletriggs Linux - Hardware 7 02-14-2006 01:14 AM
ioctl question h/w Programming 2 10-26-2003 01:28 AM
Performance question Sean1973 Linux - General 3 01-20-2003 03:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration