[newbie] Accessing an LKM's functions from external programs?
From: Tim Cambrant (tim_at_cambrant.com)
Date: 08/24/03
- Next message: Kasper Dupont: "Re: Help - what tool can be used to check memory usage?"
- Previous message: eran borovik: "insmod takes too long"
- Next in thread: Kasper Dupont: "Re: [newbie] Accessing an LKM's functions from external programs?"
- Reply: Kasper Dupont: "Re: [newbie] Accessing an LKM's functions from external programs?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 24 Aug 2003 18:45:54 GMT
Hi, I've just begun learning Linux-kernel programming, and mostly about
LKM's so far, but as the will to experiment grows bigger, I'm wondering if
it's possible to make an LKM which includes some simple functions for
addition or string-handling (for example, it's all learning anyway) which a
"client"-program can access.
To be more specific, I would like to make a module with a function that
takes two integers as parameters and adds them together, returning the
answer, which will be picked up by the program. Can this be done like it was
just another function in the program using it, or do you have to use some
sort of system-call or something?
Please remember that I'm a beginner, and I think that experimenting is the
best way to learn something, so I think I have the right to ask stupid
questions. I would read the manual first, if there was any. I'm still
waiting for my book on Linux-LKM's.
Thank you.
-- Tim Cambrant <tim at cambrant dot com>
- Next message: Kasper Dupont: "Re: Help - what tool can be used to check memory usage?"
- Previous message: eran borovik: "insmod takes too long"
- Next in thread: Kasper Dupont: "Re: [newbie] Accessing an LKM's functions from external programs?"
- Reply: Kasper Dupont: "Re: [newbie] Accessing an LKM's functions from external programs?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]