lkml.org 
[lkml]   [1999]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    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...)

    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/

    \
     
     \ /
      Last update: 2005-03-22 13:50    [W:0.022 / U:59.100 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site