I would say you can do this by using ioctl,
a /proc filesystem, netlink sockets, and system calls.
- for using ioctl() see chapter
http://www.xml.com/ldd/chapter/book/ch05.html#t1
in:
http://www.xml.com/ldd/chapter/book/index.html, and
http://www.tldp.org/LDP/lkmpg/2.6/ht...pg.html#AEN892
- for using /proc, see:
http://www.tldp.org/LDP/lkmpg/2.6/ht...pg.html#AEN708
- for using NETLINK with your own NETLINK_xxx protocol, as described in
http://www.linuxjournal.com/article/7356.
(see man page at
http://www.die.net/doc/linux/man/man7/netlink.7.html).
Note that
http://www.xml.com/ldd/chapter/book/index.html does not cover
2.6 kernels, but ioctl(), /proc and NETLINK mecanisms should work in 2.6
kernels too as far as know (I did not yet experiment with 2.6).
I hope this will help,
Jean Tabel
GS wrote:
> Need some help, I wrote Linux loadable module, loaded onto kernel, I
> need to access that module, how to write small application to access
> that Linux loadable module?. can somebody give me a clue, fi I write
> socket program, socket program always tied to TCP/IP, but I need to
> talk to my module which is loaded into kernel.
>