Re: call procedure in Linux-Ada-module from "normal" program
- From: Björn Persson <spam-away@xxxxxxxxxxx>
- Date: Thu, 24 Aug 2006 18:22:57 GMT
Frank wrote:
I've been tinkering with modules by using Ada.
The module compiles, and I manage to do insmod on it.
The symbols appears in ksyms; like "some_call_me".
Now I wish to call "some_call_me" from the test program (3) - is that possible?
There are a number of ways to communicate with Linux, but you can't just call a procedure like that. That's true for all programming languages. A kernel isn't just another library.
I suggest that you look around for information on system calls, trap instructions and IOCTLs. You'll probably only find examples in C, but when you know how to do what you want in C, I'm sure someone here can help you translate it to Ada.
--
Björn Persson PGP key A88682FD
omb jor ers @sv ge.
r o.b n.p son eri nu
.
- Follow-Ups:
- References:
- Prev by Date: Re: Ripple effect
- Next by Date: ANN: GtkAda contributions v1.2
- Previous by thread: call procedure in Linux-Ada-module from "normal" program
- Next by thread: Re: call procedure in Linux-Ada-module from "normal" program
- Index(es):