* writing a module to expose information
@ 2011-03-06 4:48 Littlefield, Tyler
2011-03-06 7:21 ` Dave Hylands
2011-03-06 8:52 ` Alexandre Courbot
0 siblings, 2 replies; 3+ messages in thread
From: Littlefield, Tyler @ 2011-03-06 4:48 UTC (permalink / raw)
To: kernelnewbies
Hello all:
I'm curious what or where I might begin writing a module that will allow
a program to retrieve information from it? Essentially: I need some sort
of interface through which I can request information and get it returned
somehow.
--
Thanks,
Ty
^ permalink raw reply [flat|nested] 3+ messages in thread
* writing a module to expose information
2011-03-06 4:48 writing a module to expose information Littlefield, Tyler
@ 2011-03-06 7:21 ` Dave Hylands
2011-03-06 8:52 ` Alexandre Courbot
1 sibling, 0 replies; 3+ messages in thread
From: Dave Hylands @ 2011-03-06 7:21 UTC (permalink / raw)
To: kernelnewbies
Hi Ty,
On Sat, Mar 5, 2011 at 9:48 PM, Littlefield, Tyler <tyler@tysdomain.com> wrote:
> Hello all:
> I'm curious what or where I might begin writing a module that will allow
> a program to retrieve information from it? Essentially: I need some sort
> of interface through which I can request information and get it returned
> somehow.
Your module could create a device driver and you could issue ioctl's
to send/retrieve arbitrary information.
You could use proc entries to set/retrieve information.
These are probably the most common methods to do what you want.
--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* writing a module to expose information
2011-03-06 4:48 writing a module to expose information Littlefield, Tyler
2011-03-06 7:21 ` Dave Hylands
@ 2011-03-06 8:52 ` Alexandre Courbot
1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Courbot @ 2011-03-06 8:52 UTC (permalink / raw)
To: kernelnewbies
Hi,
On Sun, Mar 6, 2011 at 1:48 PM, Littlefield, Tyler <tyler@tysdomain.com> wrote:
> I'm curious what or where I might begin writing a module that will allow
> a program to retrieve information from it? Essentially: I need some sort
> of interface through which I can request information and get it returned
> somehow.
Most likely you will want to expose your information through a /proc
or /sys entry. There are plenty of tutorials about how to do this on
the web.
Alex.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-06 8:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-06 4:48 writing a module to expose information Littlefield, Tyler
2011-03-06 7:21 ` Dave Hylands
2011-03-06 8:52 ` Alexandre Courbot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.