* kernel module
@ 2007-11-12 13:59 Rajeh kuri
2007-11-13 9:40 ` Kristof Provost
0 siblings, 1 reply; 11+ messages in thread
From: Rajeh kuri @ 2007-11-12 13:59 UTC (permalink / raw)
To: linux-newbie
Hi,
Is there any ways to invoke/call the function (kernel module
functions) from compiled base kernel. Well that statement sounds
strange.
I will try to simplify that statement, with problem I faced.
I have written a kernel module but it is of no use till I call one of
its function from kernel, and hence i modified the kernel source to
call this function and then compiled the kernel. Now the problem is
obliviously 'linker cannot resolve the symbol. Because I'm trying to
call the function which is available only after I insert the kernel
module.
Is this a right approach? I'm using the kernel module concept in opposite way.
Any pointers or suggestions will be greatly appreciated.
TIA...
--Regards,
rajesh
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: kernel module
2007-11-12 13:59 kernel module Rajeh kuri
@ 2007-11-13 9:40 ` Kristof Provost
2007-11-13 12:23 ` Rajeh kuri
0 siblings, 1 reply; 11+ messages in thread
From: Kristof Provost @ 2007-11-13 9:40 UTC (permalink / raw)
To: Rajeh kuri; +Cc: linux-newbie
[-- Attachment #1: Type: text/plain, Size: 961 bytes --]
Hi,
On 2007-11-12 19:29:17 (+0530), Rajeh kuri <rajeshkuri@gmail.com> wrote:
> Hi,
>
> Is there any ways to invoke/call the function (kernel module
> functions) from compiled base kernel. Well that statement sounds
> strange.
>
> I will try to simplify that statement, with problem I faced.
> I have written a kernel module but it is of no use till I call one of
> its function from kernel, and hence i modified the kernel source to
> call this function and then compiled the kernel. Now the problem is
> obliviously 'linker cannot resolve the symbol. Because I'm trying to
> call the function which is available only after I insert the kernel
> module.
The problem is that you're calling code compiled as a module from code
compiled into the kernel. That means you either compile both parts as a
module, or compile both of them into the kernel.
Kbuild/Kconfig has supports this type of dependency because it's quite
common.
Kristof
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: kernel module
2007-11-13 9:40 ` Kristof Provost
@ 2007-11-13 12:23 ` Rajeh kuri
2007-11-13 14:06 ` Kristof Provost
0 siblings, 1 reply; 11+ messages in thread
From: Rajeh kuri @ 2007-11-13 12:23 UTC (permalink / raw)
To: Kristof Provost; +Cc: linux-newbie
Well it means there is no way to achieve compiled kernel calling
compiled kernel module. OR The direction of communication from kernel
to kernel module can not be possible?
I believe there must be a way around to get this work.
If i find it will update here.
--Regards,
rajesh
On Nov 13, 2007 3:10 PM, Kristof Provost <Kristof@provost-engineering.be> wrote:
> Hi,
>
> On 2007-11-12 19:29:17 (+0530), Rajeh kuri <rajeshkuri@gmail.com> wrote:
> > Hi,
> >
> > Is there any ways to invoke/call the function (kernel module
> > functions) from compiled base kernel. Well that statement sounds
> > strange.
> >
> > I will try to simplify that statement, with problem I faced.
> > I have written a kernel module but it is of no use till I call one of
> > its function from kernel, and hence i modified the kernel source to
> > call this function and then compiled the kernel. Now the problem is
> > obliviously 'linker cannot resolve the symbol. Because I'm trying to
> > call the function which is available only after I insert the kernel
> > module.
> The problem is that you're calling code compiled as a module from code
> compiled into the kernel. That means you either compile both parts as a
> module, or compile both of them into the kernel.
> Kbuild/Kconfig has supports this type of dependency because it's quite
> common.
>
> Kristof
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Kernel module
@ 2013-10-12 2:16 Dilip Kumar
2013-10-12 10:19 ` Diego Sueiro
0 siblings, 1 reply; 11+ messages in thread
From: Dilip Kumar @ 2013-10-12 2:16 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 174 bytes --]
Hi,
What all the modifications has to be done and steps to follow for adding
external kernel module into the linux-yocto and checking that in qemulator.
regards
dilip
[-- Attachment #2: Type: text/html, Size: 215 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: kernel module
@ 2007-11-13 10:33 Rodrigo Rubira Branco (BSDaemon)
0 siblings, 0 replies; 11+ messages in thread
From: Rodrigo Rubira Branco (BSDaemon) @ 2007-11-13 10:33 UTC (permalink / raw)
To: linux-newbie
Export the symbol in the kernel and then hook it in your module ;)
cya,
Rodrigo (BSDaemon).
--
http://www.kernelhacking.com/rodrigo
Kernel Hacking: If i really know, i can hack
GPG KeyID: 1FCEDEA1
--------- Mensagem Original --------
De: Rajeh kuri <rajeshkuri@gmail.com>
Para: Kristof Provost <Kristof@provost-engineering.be>
Cópia: linux-newbie@vger.kernel.org
Assunto: Re: kernel module
Data: 13/11/07 09:13
>
> Well it means there is no way to achieve compiled kernel calling
> compiled kernel module. OR The direction of communication from kernel
> to kernel module can not be possible?
>
> I believe there must be a way around to get this work.
> If i find it will update here.
>
> --Regards,
> rajesh
> On Nov 13, 2007 3:10 PM, Kristof Provost
<Kristof@provost-engineering.be> wrote:
> > Hi,
> >
> > On 2007-11-12 19:29:17 (+0530), Rajeh kuri
<rajeshkuri@gmail.com> wrote:
> > > Hi,
> > >
> > > Is there any ways to invoke/call the function (kernel module
> > > functions) from compiled base kernel. Well that statement sounds
> > > strange.
> > >
> > > I will try to simplify that statement, with problem I faced.
> > > I have written a kernel module but it is of no use till I call
one of
> > > its function from kernel, and hence i modified the kernel source
to
> > > call this function and then compiled the kernel. Now the problem
is
> > > obliviously 'linker cannot resolve the symbol. Because I'm
trying to
> > > call the function which is available only after I insert the
kernel
> > > module.
> > The problem is that you're calling code compiled as a module from
code
> > compiled into the kernel. That means you either compile both parts as
a
> > module, or compile both of them into the kernel.
> > Kbuild/Kconfig has supports this type of dependency because it's
quite
> > common.
> >
> > Kristof
> >
> -
> To unsubscribe from this list: send the line "unsubscribe
linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
>
>
>
________________________________________________
Message sent using UebiMiau 2.7.2
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Kernel Module
@ 2002-12-11 11:40 chinnakka.b
2002-12-11 18:11 ` rasman
0 siblings, 1 reply; 11+ messages in thread
From: chinnakka.b @ 2002-12-11 11:40 UTC (permalink / raw)
To: linux-kernel
Hello sir,
After building the kernel i tried to insert the modules scsi_mod,sd_mod,usb-
storage
It is giving could not find the kernel version the module was compiled for
what is wrong with this?
waiting for your response
regards
chinnakka
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Kernel Module
2002-12-11 11:40 Kernel Module chinnakka.b
@ 2002-12-11 18:11 ` rasman
0 siblings, 0 replies; 11+ messages in thread
From: rasman @ 2002-12-11 18:11 UTC (permalink / raw)
To: chinnakka.b; +Cc: linux-kernel
On Wednesday 11 Dec 2002 11:40 am, chinnakka.b@bplmail.com wrote:
> Hello sir,
> After building the kernel i tried to insert the modules
> scsi_mod,sd_mod,usb- storage
> It is giving could not find the kernel version the module was compiled for
> what is wrong with this?
> waiting for your response
> regards
> chinnakka
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
Did you change the kernel version?
If so did you "make modules" followes by "make modules_install"?
See the kernel README
--
Richard J Moore
RAS Team Lead - IBM Linux Technology Centre
^ permalink raw reply [flat|nested] 11+ messages in thread
* Kernel Module
@ 2001-11-10 17:22 Femitha Majeed
2001-11-11 4:19 ` Paul Krumviede
0 siblings, 1 reply; 11+ messages in thread
From: Femitha Majeed @ 2001-11-10 17:22 UTC (permalink / raw)
To: selinux
Hi,
I am trying to write a kernel module, but I get the follwing error when I do
"insmod filename.o"
Unable to handle kernel NULL pointer dereference at virtual address ...
I am using kmalloc to allocate memory. I have also used filp_open to open a
directory and sys_getdents to read directory. Does any of these calls cause
the above problem?
I am very new to writing kernel modules. I would be grateful if you would
reply to this.
Thanks,
Femitha.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Kernel Module
2001-11-10 17:22 Femitha Majeed
@ 2001-11-11 4:19 ` Paul Krumviede
0 siblings, 0 replies; 11+ messages in thread
From: Paul Krumviede @ 2001-11-11 4:19 UTC (permalink / raw)
To: Femitha Majeed, selinux
--On Saturday, 10 November, 2001 17:22 +0000 Femitha Majeed
<m_femitha@hotmail.com> wrote:
>
> Hi,
>
>
> I am trying to write a kernel module, but I get the follwing error when I
> do "insmod filename.o"
>
> Unable to handle kernel NULL pointer dereference at virtual address ...
you don't mention anything about a particular version of selinux, so this
may not be relevant, but stephen smalley posted a patch to the selinux
security module which was noticed when people noticed this particular
problem when attempting to install or run mozilla. the message was
dated 22 oct. 2001 and would apply to the 2.4.12-lsm based distribution.
if you don't have the message in question, i (or others) could forward it,
or it is presumably available in an archive.
-paul
--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-10-12 10:19 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12 13:59 kernel module Rajeh kuri
2007-11-13 9:40 ` Kristof Provost
2007-11-13 12:23 ` Rajeh kuri
2007-11-13 14:06 ` Kristof Provost
-- strict thread matches above, loose matches on Subject: below --
2013-10-12 2:16 Kernel module Dilip Kumar
2013-10-12 10:19 ` Diego Sueiro
2007-11-13 10:33 kernel module Rodrigo Rubira Branco (BSDaemon)
2002-12-11 11:40 Kernel Module chinnakka.b
2002-12-11 18:11 ` rasman
2001-11-10 17:22 Femitha Majeed
2001-11-11 4:19 ` Paul Krumviede
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.