From: "J." <mailing-lists@xs4all.nl>
To: linux-c-programming@vger.kernel.org
Subject: Re: ioctl.h
Date: Fri, 4 Mar 2005 21:54:23 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.21.0503042139340.2159-100000@hestia> (raw)
In-Reply-To: <4228B3B8.7020507@valdosta.edu>
On Fri, 4 Mar 2005, michael young wrote:
> Hi,
> how do you use the ioctl.h?
> there seems to be little info on it
> on the web or in print. If you know
> of anything on the web please let me
> know.
>
> thank you,
> Mike
Friday, March 04
ioctl is used for specific hardware control, it's use differs with each
purpose. Could be rewinding tapes, opening your cd-rom player or set your
serialport prefs.. Bit more info on what you want to accomplish ?
That said.. Each GNU/Linux system should have a ioctl_list somewhere in
the manual page section. For example:
~: man -k ioctl
ioctl_list (2) - list of ioctl calls in Linux/i386 kernel
console ioctl (4) [console_ioctl] - ioctl's for console terminal and virtual consoles
console ioctl's (4) [console_ioctls] - ioctl's for console terminal and virtual consoles
console_ioctl (4) - ioctl's for console terminal and virtual consoles
.... etc..
~: man 2 ioctl_list
.......... BIG LIST .......
There should be enough IOCTL code on the www. search C and hardware
control should return the most code I guess...
if((fd = open(dev, O_RDONLY|O_NONBLOCK)) == -1)
return -1;
if(ioctl(fd, CDROMEJECT) == -1)
return -1;
close(fd);
etc......
GoodLuck.. J.
--
http://www.rdrs.net/
next prev parent reply other threads:[~2005-03-04 20:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-04 19:15 ioctl.h michael young
2005-03-04 20:54 ` J. [this message]
2005-03-04 21:55 ` ioctl.h Rechberger Markus
2005-03-07 14:45 ` ioctl.h michael young
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.21.0503042139340.2159-100000@hestia \
--to=mailing-lists@xs4all.nl \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).