public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <957BD1C2BF3CD411B6C500A0C944CA2601F11711@pdsmsx32.pd.intel.com>]
* RE: Kernel module version support.
@ 2003-01-03  5:36 Wang, Stanley
  2003-01-03  5:54 ` Rusty Russell
  0 siblings, 1 reply; 6+ messages in thread
From: Wang, Stanley @ 2003-01-03  5:36 UTC (permalink / raw)
  To: 'Rusty Russell'
  Cc: Zhuang, Louis, 'linux-kernel@vger.kernel.org',
	Kai Germaschewski

Hi Rusty
Thanks for your rapid responding.

And as you are the maintainer of kernel module support, I would like to know
how
you think about export some APIs for geting a specified module structure's
pointer.
Just like:
struct module *get_module(const char *name)
{
	struct module *mod;
	down(&module_mutex);
	mod = find_module(name);
	up(&module_mutex);
	return mod;
}
EXPORT_SYMBOL_GPL(get_module);

This function will be useful when we use Kprobes to place probes into a
kernel module.
We could get the base address of the module's .text section througn this
module structure's
pointer, hence we could place the kernel probe on any instruction we wanted.
  
Thanks a lot.

Your Sincerely,
Stanley Wang 

SW Engineer, Intel Corporation.
Intel China Software Lab. 
Tel: 021-52574545 ext. 1171 
iNet: 8-752-1171 
 
Opinions expressed are those of the author and do not represent Intel
Corporation

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Kernel module version support.
@ 2003-01-02 14:25 Wang, Stanley
  2003-01-03  0:00 ` Rusty Russell
  0 siblings, 1 reply; 6+ messages in thread
From: Wang, Stanley @ 2003-01-02 14:25 UTC (permalink / raw)
  To: 'rusty@rustcorp.com.au'
  Cc: Zhuang, Louis, 'linux-kernel@vger.kernel.org'

Hi, Rusty
I am interested in your module version support implementation. I've read
your 
description about it.
(http://www.kernel.org/pub/linux/kernel/people/rusty/modversions_support.htm
l)
And I have some questions about the implementation details. Would you like
to help me to 
clarify them?

1. How do you plan to store the version information of a kernel module that
will export some symbols?
(In the version table of "bzImage"? In a specified section in this kernel
module? In other place? Or don't
store?)

2. You mentioned that "modules which want to export symbols place their full
path name 
in the .needmodversion section. Just before the kernel is linked, these
names are extracted, 
and genksyms scans those files to create a version table. This table is then
linked into the kernel". 
And I think we must recalculate all version informaiton every time when we
re built the kernel in this way. 
Why don't we place all the module version information in some files just
like old days.

3. You mentioned that "these symbol versions are then checked on insmod". I
wanna whether it means
you would like to restore the "/proc/ksyms" file or QUERY_MODULE SYSCALL to
export the kernel version
table to the user space application. 

Thanks a lot.

Your Sincerely,
Stanley Wang 

SW Engineer, Intel Corporation.
Intel China Software Lab. 
Tel: 021-52574545 ext. 1171 
iNet: 8-752-1171 
 
Opinions expressed are those of the author and do not represent Intel
Corporation

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

end of thread, other threads:[~2003-01-04  5:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <957BD1C2BF3CD411B6C500A0C944CA2601F11712@pdsmsx32.pd.intel.com>
2003-01-04  5:06 ` Kernel module version support Rusty Russell
     [not found] <957BD1C2BF3CD411B6C500A0C944CA2601F11711@pdsmsx32.pd.intel.com>
2003-01-03  8:14 ` Rusty Russell
2003-01-03  5:36 Wang, Stanley
2003-01-03  5:54 ` Rusty Russell
  -- strict thread matches above, loose matches on Subject: below --
2003-01-02 14:25 Wang, Stanley
2003-01-03  0:00 ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox