ioctl() system call on Linux

ioctl() system call on Linux

Post by alexandru » Mon, 15 Sep 2008 01:56:43


Greetings,

Please help me with the following :

Where can I find what means exactly and how to use each of the second
argument of the ioctl() system call in Linux : FIOxxx (file IOCTL
requests), SIOxxx (socket IOCTL requests), TCxxx TIOxxx (terminal
IOCTL requests) ?

I did not find yet anything useful on Internet about this topic.

Thanks,
Alexandru Goia.
 
 
 

1. Calling IOCTL of driverB from within an IOCTL of driver A with same datapointer

2. Help - ioctl() call defined in Linux SCSI low-level drivers

Hi,

I was told that the Linux SCSI sub-system does not convey SCSI commands
between the mid-level and low-level via ioctl calls. ioctl()s defined in
low-level are for very special reasons.

Can some one confirm or corrent the following question?

In lk 2.4, is queuecommand() defined in low-level the only function
processing the incoming common SCSI tasks? Is it also true no matter we
send SCSI passthrough ioctl calls (with all common SCSI commands such as
INQUIRY, READ, WRITE, MODE SELECT/SENSE, PERSISTENT RESERVATION IN/OUT,
RESERVE, RELEASE, etc.) to sd devices (by using SCSI_IOCTL_SEND_COMMAND) or
to sg devices (by using either SCSI_IOCTL_SEND_COMMAND or SG_IO), or send
non-passthrough commands (such as system calls read, write, etc.) to sd
devices?

Thanks,


T.

3. "stty: tcgetattr: A specified file does not support the ioctl system call."

4. stty: tcgetattr: A specified file does not support the ioctl system call.

5. Help - ioctl() call defined in Linux SCSI low-level drivers

6. tcgetattr: A specified file does not support the ioctl system call.

7. stty: tcgetattr: A specified file does not support the ioctl system call.

8. Why is remote system information calling ioctl for my driver?

9. How to determine available system calls on a Unix/Linux system

10. Need help about Linux daemon and system call (system or popen)

11. [PATCH -mm 4/9] unshare system call: system call registration for ppc

12. [PATCH -mm 1/9] unshare system call: system call handler function

13. [PATCH -mm 1/9] unshare system call : system call handler function sys_unshare