exernalizing module functions to user space

2 messages, 2 authors, 2003-09-20 · open the first message on its own page

exernalizing module functions to user space

From: Todd <hidden>
Date: 2003-09-19 19:29:39

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??

TIA
-Todd


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: exernalizing module functions to user space

From: Dan Kegel <hidden>
Date: 2003-09-20 03:38:14

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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help