Re: Q: generic module{init,exit} boilerplate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux