mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michael Buesch <mbuesch@freenet.de>
To: omkar lagu <omkarlagu@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Fwd: How to call a function in a module from the kernel code !!! (Linux kernel)
Date: Thu, 9 Feb 2006 20:32:11 +0100	[thread overview]
Message-ID: <200602092032.12091.mbuesch@freenet.de> (raw)
In-Reply-To: <20060209192510.32377.qmail@web50307.mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 920 bytes --]

On Thursday 09 February 2006 20:25, you wrote:
> 
>  hello sir,
>  
>  PROBLEM::How to call a function in a module from the
>  kernel code ??
>  
>  what we did ? :: 
>  we wanted to call a function in our module ll from
>  shm.c file (which is in the kernel)
>  
>  so we declared function pointer in shm.c
>  :: unsigned long long (*ptr1)(int)
>  
>  we declared it as extern in shm.h
>  :: extern unsigned long long (*ptr1)(int)
>  
>  then we declared also in our module  (ll)
>  :: extern unsigned long long (*ptr1)(int)
>  
>  we initialized it to ptr1 = commun; in init module
>  of ll.c
>  where commun is we wanted to call from the kernel
>    
>  but it gave an error as undefined refernce to ptr1
>  when we inserted our module..
>  
>  can you help on this thing or can you give us a
>  example 
>  regarding how it is done ??

EXPORT_SYMBOL(ptr1);

-- 
Greetings Michael.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-02-09 19:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-09 19:25 omkar lagu
2006-02-09 19:32 ` Michael Buesch [this message]
2006-02-09 23:07 ` Kyle Moffett
2006-02-10  7:55   ` Steven Rostedt
2006-02-10  8:16     ` Kyle Moffett
2006-02-10 10:30 Fwd: " omkar lagu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200602092032.12091.mbuesch@freenet.de \
    --to=mbuesch@freenet.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=omkarlagu@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome