linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* open and close semanthics
@ 2009-08-25 22:48 Alessio Sangalli
  2009-08-27 22:52 ` Alessio Sangalli
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alessio Sangalli @ 2009-08-25 22:48 UTC (permalink / raw)
  To: linux-fbdev-devel@lists.sourceforge.net

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?

bye, thank you
Alessio


------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: open and close semanthics
  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
  2009-08-28 12:22 ` Ondrej Zajicek
  2 siblings, 0 replies; 5+ messages in thread
From: Alessio Sangalli @ 2009-08-27 22:52 UTC (permalink / raw)
  To: linux-fbdev-devel@lists.sourceforge.net

No indications on this request?
thank you
Alessio




Alessio Sangalli wrote:
> 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?


------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: open and close semanthics
  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
  2009-08-28 12:22 ` Ondrej Zajicek
  2 siblings, 0 replies; 5+ messages in thread
From: Florian Tobias Schandinat @ 2009-08-28  9:43 UTC (permalink / raw)
  To: Alessio Sangalli; +Cc: linux-fbdev-devel@lists.sourceforge.net

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: open and close semanthics
  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
@ 2009-08-28 12:22 ` Ondrej Zajicek
  2009-08-28 16:08   ` Alessio Sangalli
  2 siblings, 1 reply; 5+ messages in thread
From: Ondrej Zajicek @ 2009-08-28 12:22 UTC (permalink / raw)
  To: Alessio Sangalli; +Cc: linux-fbdev-devel@lists.sourceforge.net


[-- Attachment #1.1: Type: text/plain, Size: 858 bytes --]

On Tue, Aug 25, 2009 at 03:48:57PM -0700, Alessio Sangalli wrote:
> 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)?

Many drivers for non-embedded (VGA compatible) cards assume that they
should not touch hardware if their device is not open. So they configure
device during the first open and restore original state during the
last close. The framebuffer console counts as one user, and therefore
keeps the device configured.

-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 355 bytes --]

------------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 182 bytes --]

_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: open and close semanthics
  2009-08-28 12:22 ` Ondrej Zajicek
@ 2009-08-28 16:08   ` Alessio Sangalli
  0 siblings, 0 replies; 5+ messages in thread
From: Alessio Sangalli @ 2009-08-28 16:08 UTC (permalink / raw)
  To: linux-fbdev-devel@lists.sourceforge.net

> On Tue, Aug 25, 2009 at 03:48:57PM -0700, Alessio Sangalli wrote:
>> Hi, can somebody give me an authoritative answer:

Thank you for all answers.

bye
as


------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-28 16:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-08-28 12:22 ` Ondrej Zajicek
2009-08-28 16:08   ` Alessio Sangalli

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).