* exernalizing module functions to user space
@ 2003-09-19 19:29 Todd
2003-09-20 3:38 ` Dan Kegel
0 siblings, 1 reply; 2+ messages in thread
From: Todd @ 2003-09-19 19:29 UTC (permalink / raw)
To: linuxppc-embedded
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: exernalizing module functions to user space
2003-09-19 19:29 exernalizing module functions to user space Todd
@ 2003-09-20 3:38 ` Dan Kegel
0 siblings, 0 replies; 2+ messages in thread
From: Dan Kegel @ 2003-09-20 3:38 UTC (permalink / raw)
To: Todd; +Cc: linuxppc-embedded
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-20 3:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-19 19:29 exernalizing module functions to user space Todd
2003-09-20 3:38 ` Dan Kegel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).