mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Bennee <kernel-hacker@bennee.com>
To: Sudharsan Vijayaraghavan <svijayar@cisco.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Help !! calling function in module from a user program
Date: 18 Feb 2003 13:00:51 +0000	[thread overview]
Message-ID: <1045573251.2505.108.camel@cambridge.braddahead> (raw)
In-Reply-To: <4.3.2.7.2.20030218181634.01fb5428@desh>

On Tue, 2003-02-18 at 12:50, Sudharsan Vijayaraghavan wrote:
> Hi,
> 
> Am a new bee to linux internals.
> I am trying to make a simple program witch will call a function from a 
> module. I made a module compiled it and INSMOD-it into kernel, that works 
> fine. I would like to call from my user program a function defined in my 
> kernel module.

You never call functions directly from user-mode. You generally use a
syscall to interface between user-mode and kernel-mode. Most drivers
implement operations that map via these syscalls (i.e.
open/close/read/write etc). 

What exactly are you trying to achieve?
-- 
Alex, homepage: http://www.bennee.com/~alex/

How much does it cost to entice a dope-smoking UNIX system guru to Dayton?
		-- Brian Boyle, UNIX/WORLD's First Annual Salary Survey


  reply	other threads:[~2003-02-18 12:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-18 12:50 Sudharsan Vijayaraghavan
2003-02-18 13:00 ` Alex Bennee [this message]
2003-02-18 13:43 ` Srinivas Chinta
2003-02-18 14:04   ` Alex Bennee
2003-02-18 13:44 ` Richard B. Johnson

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=1045573251.2505.108.camel@cambridge.braddahead \
    --to=kernel-hacker@bennee.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=svijayar@cisco.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

all inboxes | Powered by JetHome®