Re: Linux Kernel -Open Call inside a Driver!

Thomas Sailer (sailer@ife.ee.ethz.ch)
Tue, 02 Mar 1999 12:20:38 +0100


G Jalaja Devi wrote:
>
> Is it possible to open a driver within another driver?
> Ex:
>
> init_module(inode *inode, file *filp) /*Entry Point*/
> {
> open("/dev/dev0"); /*Is this possible?*/
> }
> And if possible, can the ioctl also be sent?

Look at: linux-2.2.2/drivers/sound/sound_firmware.c
for an example of how to do it. (NB: the set_fs/get_fs
stuff is the important part...)

Tom

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/