Linux module interactions
From: gg31 (keawraimc_at_jetable.com)
Date: 03/23/04
- Next message: Juha Laiho: "Re: PIC interrupt priority"
- Previous message: Armin Gerritsen: "Re: Linux via serial console, but with external keyboard"
- Next in thread: Kasper Dupont: "Re: Linux module interactions"
- Reply: Kasper Dupont: "Re: Linux module interactions"
- Reply: P.T. Breuer: "Re: Linux module interactions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Mar 2004 09:20:05 -0800
Hi.
I've got to write a module which will drive a card and will manage a
proc file to easily configure the driver.
So I would like to know if it is possible to have a module which
control another module. For example, if I got a proc file called
ejectcd and I do :
echo "eject" >/proc/ejectcd
then my cd-rom device will eject the CD.
I tried to use ioctl function but it seems to be impossible, since in
kernel space , I can't use user space functions.
So I wonder if it's possible to write 2 separate modules or if the
only solution is to write only one driver which will manage the proc
file and the device.
- Next message: Juha Laiho: "Re: PIC interrupt priority"
- Previous message: Armin Gerritsen: "Re: Linux via serial console, but with external keyboard"
- Next in thread: Kasper Dupont: "Re: Linux module interactions"
- Reply: Kasper Dupont: "Re: Linux module interactions"
- Reply: P.T. Breuer: "Re: Linux module interactions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|