From: Dan Kegel <dank@kegel.com>
To: Todd <to_dd@yahoo.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: exernalizing module functions to user space
Date: Fri, 19 Sep 2003 20:38:14 -0700 [thread overview]
Message-ID: <3F6BCBA6.3000405@kegel.com> (raw)
In-Reply-To: <20030919192939.31485.qmail@web40412.mail.yahoo.com>
Todd wrote:
> I would like to make certain functions in my driver
> available to user space applications. At first it
> seemed that EXTERN_SYMBOL was the solution, but this
> appears to externalize the functions only to other
> modules.
> I considered adding specialized entries in the
> file_operations structure...but this does not seem
> appropriate. Can anyone explain the proper method of
> acheiving this??
Yes. This is an extremely basic question, you may wish
to grab a book or two on linux kernel programming.
The kernel is in a different address space than user code,
so you can't use direct calls.
Write a syscall, an ioctl, a driver, or create /proc entries.
- Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2003-09-20 3:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-19 19:29 exernalizing module functions to user space Todd
2003-09-20 3:38 ` Dan Kegel [this message]
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=3F6BCBA6.3000405@kegel.com \
--to=dank@kegel.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=to_dd@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 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.