On Tue, Jan 14, 2014 at 6:38 PM, Le Tan wrote:
> Sorry, forgive me. I don't know how to reply the email like you.
> My linux kernel version is 3.11, and I do not touch the kvm makefile. Now
> let me show you in detail.
> First I put the files of my module in " /arch/x86/logger ", "logger" is
> th
You are getting a compile error because the symbol you are trying to export
is not complete.
Step back and think about what you are trying to do. You were initially
trying to export (with EXPORT_SYMBOL) a function that is supposed to be
implemented by your module, but you state that its implementa
Sorry, forgive me. I don't know how to reply the email like you.
My linux kernel version is 3.11, and I do not touch the kvm makefile. Now
let me show you in detail.
First I put the files of my module in " /arch/x86/logger ", "logger" is the
directory I create. The Makefile in " /arch/x86/kvm/" I t
On Tue, Jan 14, 2014 at 12:38 PM, Le Tan wrote:
> Thanks very much! I will try that later. What you mentioned is another
> amazing sight. But I am confused that why it can't work if I export a
> function from my module and call it in the kvm? Do I have to modify the
> makefile of kvm? How? I have
Thanks very much! I will try that later. What you mentioned is another
amazing sight. But I am confused that why it can't work if I export a
function from my module and call it in the kvm? Do I have to modify the
makefile of kvm? How? I have referenced to the doc of KBuild. It said that :
Somet
Hi Le,
You can do that by exporting a function pointer from the kvm code that is
only called if it is not null. Then, when you load your module, you set
that exported function pointer (I'm assuming that you want to call your
module's function from the kvm code... ). Here is a post on how to do tha
Hello! I am writing a device driver module. I define some functions in the
module, for example print_record(). I am doing something in the kvm, so I
want to call print_record() in the file of kvm module, for example, I may
call print_record() in file /arch/x86/kvm/x86.c to put something into my
dev