Networking Forums

Networking Forums > Computer Networking > Linux Networking > Need some help, how to write small application to access Linux loadable module

Reply
Thread Tools Display Modes

Need some help, how to write small application to access Linux loadable module

 
 
GS
Guest
Posts: n/a

 
      01-13-2006, 02:35 AM
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.

 
Reply With Quote
 
 
 
 
Jean Tabel
Guest
Posts: n/a

 
      01-15-2006, 12:38 PM
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.
>

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
write access occasionally lost Derrick Windows Networking 1 11-21-2007 07:19 PM
Linux driver for GPRS/EDGE (GSM) modem module (Siemens MC75)? Raqueeb Hassan Linux Networking 8 10-07-2006 12:06 AM
How to mount linux driver to solaris 5.8 with write permission jacksuyu@gmail.com Linux Networking 3 03-27-2006 03:01 PM
linux robust?can build application layer firewall on linux? happy Linux Networking 9 09-19-2004 06:54 PM
NFS problem: can't write or access index.php Nick E. Linux Networking 0 03-03-2004 12:04 PM



1 2 3 4 5 6 7 8 9 10 11