From: Julia Lawall <julia.lawall@lip6.fr>
To: kernel-janitors@vger.kernel.org
Subject: Re: Q: generic module{init,exit} boilerplate
Date: Thu, 10 Jan 2013 18:58:29 +0000 [thread overview]
Message-ID: <alpine.DEB.2.02.1301101955430.1955@hadrien> (raw)
In-Reply-To: <ADE657CA350FB648AAC2C43247A983F00207A6CBA7AB@AUSP01VMBX24.collaborationhost.net>
On Thu, 10 Jan 2013, Dan Carpenter wrote:
> On Thu, Jan 10, 2013 at 11:12:43AM -0600, H Hartley Sweeten wrote:
> > Hello all,
> >
> > There are a number of drivers/modules in the kernel that have
> > a "do nothing" module init/exit of the form:
> >
>
> Do you have a real life example? Why would people do that?
I find 39 occurrences, although the first one I looked at had a big #if 0
in the module_init function. Here are some examples:
drivers/media/common/saa7146/saa7146_fops.c
drivers/media/platform/soc_camera/soc_mediabus.c
drivers/tty/serial/suncore.c
There are also a bunch of comedi drivers. Around half of the examples are
sound drivers, eg:
sound/synth/emux/emux.c
sound/synth/util_mem.c
sound/isa/sb/sb16_csp.c
julia
next prev parent reply other threads:[~2013-01-10 18:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-10 17:12 Q: generic module{init,exit} boilerplate H Hartley Sweeten
2013-01-10 18:41 ` Dan Carpenter
2013-01-10 18:58 ` Julia Lawall [this message]
2013-01-10 19:05 ` H Hartley Sweeten
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=alpine.DEB.2.02.1301101955430.1955@hadrien \
--to=julia.lawall@lip6.fr \
--cc=kernel-janitors@vger.kernel.org \
/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