From: Andrew Lunn <andrew@lunn.ch>
To: Frank Pagliughi <frank@sorosys.com>
Cc: eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] Device driver open & close
Date: Tue, 26 Aug 2008 15:28:00 -0000 [thread overview]
Message-ID: <20080826044828.GS31987@lunn.ch> (raw)
In-Reply-To: <48B340BD.1050201@sorosys.com>
On Mon, Aug 25, 2008 at 07:31:09PM -0400, Frank Pagliughi wrote:
> Hey All,
>
> Is there a mechanism by which a device driver can be notified when the
> application opens or closes the device. For example, I have an LCD in my
> system, and I would like to turn it on when the application opens the
> device and turn it off when it gets closed. Then turn it back on again
> if it gets re-opened, etc.
open() should result in the lookup function being called on the
device.
Close is a problem, since there is no device close function.
You might be better using cyg_io_set_config() mechanism to turn it on
and off.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2008-08-26 4:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-26 4:49 Frank Pagliughi
2008-08-26 15:28 ` Andrew Lunn [this message]
2008-08-26 21:20 ` Frank Pagliughi
2008-08-27 5:22 ` Frank Pagliughi
2008-08-27 7:12 ` Andrew Lunn
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=20080826044828.GS31987@lunn.ch \
--to=andrew@lunn.ch \
--cc=ecos-discuss@ecos.sourceware.org \
--cc=frank@sorosys.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).