From: Thiagarajan Rajasekaran <rajt@connecttel.com>
To: Jonathan Larmour <jlarmour@redhat.com>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] conversion of cyg_io_handle_t type to filedescriptor of type integer
Date: Thu, 19 Jul 2001 07:40:00 -0000 [thread overview]
Message-ID: <3B56F66A.3723F8C5@connecttel.com> (raw)
In-Reply-To: <3B5485BF.8ED5B64B@redhat.com>
Thanks a lot. I got my problem fixed.
Raj
Jonathan Larmour wrote:
> Thiagarajan Rajasekaran wrote:
> >
> > Hi,
> > I'm trying to use the ioctl(int fd, u_long cmd, void *data) defined in
> > ecos/packages/net/tcpip/src/lib/ioctl.c for my task. This function needs
> > filedescriptor fd as one of the parameters. In ECOS when you open a
> > serial device it gives you a handle of type cyg_io_handle_t. Is there a
> > way to get the filedescriptor from cyg_io_handle_t or I should write my
> > own version of ioctl()?. Please reply to me asap.
>
> Why do you need to use ioctl() when you can use something more appropriate
> like cyg_io_get_config()?
>
> But if you really want to implement it, the way to do it is with the fileio
> package, and use open() instead of cyg_io_open() etc. Then fill in the
> dev_fo_ioctl function in io/fileio/current/src/devfs.cxx.
>
> Jifl
> --
> Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
> Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
> Come to the Red Hat TechWorld open source conference in Brussels!
> Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/
--
****************************************************************
* Thiagarajan Rajasekaran *
* ConnectTel, Inc. Austin, Texas. *
* Phone : 512-338-1111 Ext-104 Fax : 512-918-0449 *
* Email : rajt@connecttel.com *
* Site : http://www.connecttel.com *
****************************************************************
prev parent reply other threads:[~2001-07-19 7:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-17 10:23 Thiagarajan Rajasekaran
2001-07-17 11:36 ` Jonathan Larmour
2001-07-19 7:40 ` Thiagarajan Rajasekaran [this message]
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=3B56F66A.3723F8C5@connecttel.com \
--to=rajt@connecttel.com \
--cc=ecos-discuss@sources.redhat.com \
--cc=jlarmour@redhat.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).