Linux module interactions

From: gg31 (keawraimc_at_jetable.com)
Date: 03/23/04


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.



Relevant Pages

  • Re: Linux module interactions
    ... > proc file to easily configure the driver. ... > then my cd-rom device will eject the CD. ... > I tried to use ioctl function but it seems to be impossible, ... I can't use user space functions. ...
    (comp.os.linux.development.system)
  • Re: [PATCH] MAINTAINERS: Add myself for cxacru (in drivers/usb/atm/)
    ... in the near future to export all the device stats to sysfs (based on my ... proposed patch to add them to the proc file ~2007-01-30). ... COSA/SRP SYNC SERIAL DRIVER ...
    (Linux-Kernel)