[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.037 / U:3.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site