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

Re: [Xen-devel] how to use the xen functions

Sorry, I tried your suggestion, but still have the same problem. :(

After I add the export code, I did "make ARCH=xen linux24" and "make
install". Looks like the /lib/module/2.4.27-xen0 was updated. But I still
get the same error message.

Here is the dump from
command "grep ctrl_if_send_message_block /proc/ksyms"
c01b2a30 ctrl_if_send_message_block_R__ver_ctrl_if_send_message_block

This output is DIFFERENT from a successfully exported symbol:
grep create_xen_proc_entry /proc/ksyms
c0326f10 create_xen_proc_entry_Ra770fe56  (Ra770fe56 is the R+version
hash, right?), why ctrl_if_send_message_block has a weird

If I do "nm vmlinux |grep ctrl_if_send_message_block"
I got:
c01b2a30 T ctrl_if_send_message_block
c0376980 R __kstrtab_ctrl_if_send_message_block
c0386868 R __ksymtab_ctrl_if_send_message_block

Any further idea on this?


On Thu, 2 Dec 2004, Milan [ISO-8859-1] Holzäpfel wrote:

> On Wed, 1 Dec 2004 19:14:11 -0500 (EST)
> Xin Zhao <zhaoxin@xxxxxxxxxxxxxx> wrote:
> > I need to use the function "ctrl_if_send_message_block" in my kernel
> > module running in Dom0. This function  is provided
> > in 2.6.9-sparse/arch/xen/kernel/ctrl_if.c, however, when I tried to insert
> > the
> > module, I got the error message "unresolved symbol
> > ctrl_if_send_message_block". Looks like the function is not exported. So I
> > go to 2.6.9-sparse/arch/xen/kernel/ctrl_if.c to add the following line:
> >
> > EXPORT_SYMBOL(ctrl_if_send_message_block);
> >
> > But after compilation and reboot, I still got the same error message. Can
> > someone give me some advice on how to use xen provided functions?
> If you didn't do "make modules_install" after the extra export, a
> "depmod -a" or sth like that might help.  But I'm not quite sure whether
> symbol resolution is done by modutils using some files in
> /lib/modules...
> You might want to tell the list if that's what helped.
> > Thanks a lot.
> >
> > Xin
> well HTH,
> Milan
> --
>                    Milan Holzäpfel alias jagdfalke alias jag
> Öff GnuPG-Schlüssel    <URL:http://con.mjh.name/>    GnuPG Public Key
> GnuPG Fingerabdruck     4C8A 5FAF 5D32 6125 89D1     GnuPG Fingerprint
>                         0CE5 DB0C AF4F 6583 7966
>                     http://www.deppenleerzeichen.de/

SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.