Messages in this thread | ![/](/images/icornerl.gif) | | Subject | Re: Help !! calling function in module from a user program | From | Alex Bennee <> | Date | 18 Feb 2003 13:00:51 +0000 |
| |
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
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |