linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
To: Alessio Sangalli <alesan@manoweb.com>
Cc: "linux-fbdev-devel@lists.sourceforge.net"
	<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: open and close semanthics
Date: Fri, 28 Aug 2009 11:43:28 +0200	[thread overview]
Message-ID: <4A97A6C0.1000006@gmx.de> (raw)
In-Reply-To: <4A946A59.20307@manoweb.com>

Hi,

this is not authoritative but I hope that's better than no answer:

Alessio Sangalli schrieb:
> Hi, can somebody give me an authoritative answer:
> what is the semanthics associated to the "open" and "release" (close) calls?
> 
> More specifically, "open" and "release" can/must/must not change any 
> setting (resolution etc)?
> 
> Should those functions keep a "counter" of how many programs opened it?

I'd say that's not well defined. skeletonfb lists them even as optional. 
I've read that some drivers use it for mode changes, some keep counters 
and others just return 0.
If you are writing a driver: use it as you need it or don't use it at all.
If you write something that needs this behavior: there is none you can 
expect along all drivers, sorry.

For more information:
http://www.linux-fbdev.org/HOWTO/4.html
<linux kernel tree>/drivers/video/skeletonfb.c


Regards,

Florian Tobias Schandinat

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

  parent reply	other threads:[~2009-08-28  9:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-25 22:48 open and close semanthics Alessio Sangalli
2009-08-27 22:52 ` Alessio Sangalli
2009-08-28  9:43 ` Florian Tobias Schandinat [this message]
2009-08-28 12:22 ` Ondrej Zajicek
2009-08-28 16:08   ` Alessio Sangalli

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=4A97A6C0.1000006@gmx.de \
    --to=florianschandinat@gmx.de \
    --cc=alesan@manoweb.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /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).