linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: modules and 2.5
@ 2001-07-03  5:13 Jeff Garzik
  2001-07-03  6:50 ` Sean Hunter
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Jeff Garzik @ 2001-07-03  5:13 UTC (permalink / raw)
  To: kaos, Linux Kernel Mailing List

A couple things that would be nice for 2.5 is
- let MOD_INC_USE_COUNT work even when module is built into kernel, and
- let THIS_MODULE exist and be valid even when module is built into
kernel

This introduces bloat into the static kernel for modules which do not
take advantage of this, so perhaps we can make this new behavior
conditional on CONFIG_xxx option.  Individual drivers which make use of
the behavior can do something like

	dep_tristate 'my driver' CONFIG_MYDRIVER $CONFIG_PCI
	if [ "$CONFIG_MYDRIVER" != "n" -a \
	     "$CONFIG_STATIC_MODULES" != "y" ]; then
	   define_bool CONFIG_STATIC_MODULES y
	fi



The reasoning behind this is that module use counts are useful sometimes
even when the driver is built into the kernel.  Other facilities like
inter_xxx are [obviously] useful when built into the kernel, so it makes
sense to at least optionally support homogenous module treatment across
static or modular builds.

-- 
Jeff Garzik      | "I respect faith, but doubt is
Building 1024    |  what gives you an education."
MandrakeSoft     |           -- Wilson Mizner

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: RFC: modules and 2.5
@ 2001-07-03 17:35 Andrzej Krzysztofowicz
  2001-07-03 17:39 ` Jeff Garzik
  0 siblings, 1 reply; 16+ messages in thread
From: Andrzej Krzysztofowicz @ 2001-07-03 17:35 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: kaos, kernel list


> 
> A couple things that would be nice for 2.5 is
> - let MOD_INC_USE_COUNT work even when module is built into kernel, and
> - let THIS_MODULE exist and be valid even when module is built into
> kernel
> 
> This introduces bloat into the static kernel for modules which do not
> take advantage of this, so perhaps we can make this new behavior
> conditional on CONFIG_xxx option.  Individual drivers which make use of
> the behavior can do something like
> 
> 	dep_tristate 'my driver' CONFIG_MYDRIVER $CONFIG_PCI
> 	if [ "$CONFIG_MYDRIVER" != "n" -a \
              ^^^^^^^^^^^^^^^^^^^^^^^
> 	     "$CONFIG_STATIC_MODULES" != "y" ]; then
> 	   define_bool CONFIG_STATIC_MODULES y
> 	fi

Hmmm, shouldn't it be written in CML2 if it is for 2.5 ?

For 2.4 the marked condition ( != n on a variable defined by dep_*)
probably would break xconfig. Don't suggest such solutions...

Andrzej
-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  tel.  (0-58) 347 14 61
Wydz.Fizyki Technicznej i Matematyki Stosowanej Politechniki Gdanskiej

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

end of thread, other threads:[~2001-07-12 21:04 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-03  5:13 RFC: modules and 2.5 Jeff Garzik
2001-07-03  6:50 ` Sean Hunter
2001-07-03  7:05   ` Jeff Garzik
2001-07-03  7:16   ` Keith Owens
2001-07-03  7:24     ` Jeff Garzik
2001-07-03  7:39       ` Keith Owens
2001-07-03  7:44         ` Jeff Garzik
2001-07-03  7:48   ` Fang Han
2001-07-03  7:18 ` Keith Owens
2001-07-03 12:15 ` jlnance
2001-07-06 10:34 ` Rusty Russell
2001-07-07 14:12   ` Jeff Garzik
2001-07-08  7:40     ` Rusty Russell
2001-07-11 22:04       ` Pavel Machek
2001-07-03 17:35 Andrzej Krzysztofowicz
2001-07-03 17:39 ` Jeff Garzik

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