From: "Antonino A. Daplas" <adaplas@gmail.com>
To: Jon Smirl <jonsmirl@gmail.com>
Cc: Andrew Morton <akpm@osdl.org>,
rdunlap@xenotime.net, mreuther@umich.edu,
linux-kernel@vger.kernel.org, zap@homelink.ru
Subject: Re: [PATCH] fbdev: Statically link the framebuffer notification functions
Date: Tue, 11 Jul 2006 22:34:21 +0800 [thread overview]
Message-ID: <44B3B6ED.9020705@gmail.com> (raw)
In-Reply-To: <9e4733910607110646m7f95581cl52669daddf5f2fa1@mail.gmail.com>
Jon Smirl wrote:
> On 7/11/06, Antonino A. Daplas <adaplas@gmail.com> wrote:
>> Jon Smirl wrote:
>> > On 7/11/06, Antonino A. Daplas <adaplas@gmail.com> wrote:
>> >> The backlight and lcd subsystems can be notified by the framebuffer
>> layer
>> >> of blanking events. However, these subsystems, as a whole, can
>> function
>> >> independently from the framebuffer layer. But in order to enable to
>> >> the lcd and backlight subsystems, the framebuffer has to be compiled
>> >> also,
>> >> effectively sucking in a huge amount of unneeded code. Besides, the
>> >> dependency
>> >> is introducing a lot of compilation problems.
>> >
>> > This code is effectively rebuilding a fb specific version of
>> > inter_module_get/put., something that was removed earlier.
>>
>> Huh? I don't see any semblance of inter_module_* or symbol_* in there.
>> Read the patch again.
>
> You are providing a fixed point to do a rendezvous between modules
> without refcount tracking. That's what inter_module did.
No, you're confused on inter_module. inter_module_* allows 2 or more
modules to share data. The danger is that one module may disappear
while the other is still accessing the data.
In this case, there is absolutely no data sharing. One module can
safely unload without affecting the other. The only danger is
that one might be in a midst of a calling the callout function while
the other is unregistering its notifier block. But then the notifier
chain already protects this from happening.
> The symbol is
> being passed implicitly via the entry point names.
>
> Just wrap fb_notifier in a module and it will get tracked.
No, there's no need to do this. It just adds more complexity to
the already complicated dependency.
Tony
next prev parent reply other threads:[~2006-07-11 14:34 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-10 12:32 Depmod errors on 2.6.17.4/2.6.18-rc1/2.6.18-rc1-mm1 Matt Reuther
2006-07-10 13:02 ` Antonino A. Daplas
2006-07-10 15:32 ` Matt Reuther
2006-07-10 15:58 ` Antonino A. Daplas
2006-07-11 3:27 ` Matt Reuther
2006-07-11 4:52 ` [PATCH] appledisplay/backlight (Depmod errors on 2.6.17.4/2.6.18-rc1/2.6.18-rc1-mm1) Randy.Dunlap
2006-07-11 6:54 ` [PATCH] backlight: lcd: Remove dependency from the framebuffer layer Antonino A. Daplas
2006-07-11 7:04 ` Antonino A. Daplas
2006-07-11 10:28 ` Andrew Morton
2006-07-11 10:36 ` Antonino A. Daplas
2006-07-11 12:45 ` [PATCH] fbdev: Statically link the framebuffer notification functions Antonino A. Daplas
2006-07-11 12:50 ` Antonino A. Daplas
2006-07-11 13:21 ` Jon Smirl
2006-07-11 13:40 ` Antonino A. Daplas
2006-07-11 13:46 ` Jon Smirl
2006-07-11 14:34 ` Antonino A. Daplas [this message]
2006-07-11 14:43 ` Jon Smirl
2006-07-11 14:50 ` Antonino A. Daplas
2006-07-11 15:03 ` Jon Smirl
2006-07-11 15:21 ` Antonino A. Daplas
2006-07-11 5:16 ` [PATCH] sound-miro unknown symbols (Depmod errors on 2.6.17.4/2.6.18-rc1/2.6.18-rc1-mm1) Randy.Dunlap
2006-07-11 6:56 ` Depmod errors on 2.6.17.4/2.6.18-rc1/2.6.18-rc1-mm1 Antonino A. Daplas
2006-07-11 11:20 ` Matt Reuther
2006-07-11 13:12 ` Antonino A. Daplas
2006-07-12 12:41 ` Matt Reuther
2006-07-12 15:25 ` Randy.Dunlap
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=44B3B6ED.9020705@gmail.com \
--to=adaplas@gmail.com \
--cc=akpm@osdl.org \
--cc=jonsmirl@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mreuther@umich.edu \
--cc=rdunlap@xenotime.net \
--cc=zap@homelink.ru \
/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