[lkml]   [1999]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Linux Kernel -Open Call inside a Driver!
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...)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:50    [W:0.083 / U:12.496 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site