Re: Pass messages to a running user-mode application from kernel

From: Andreas Dilger (adilger@turbolabs.com)
Date: Fri Jul 07 2000 - 16:24:25 EDT

  • Next message: Terje Gjøsæter: "Re: matrox G400 & fbcon problems"

    Chang Wen writes:
    > The thing I am trying to do now is to pass message to a user-mode
    > application from kernel when the application is up and running in the
    > following way: the kernel detects the application is up and sends message to
    > the application at certain times or certain events.
    >
    > Wonder what mechanism I can use to fulfill the message passing part (or
    > communication part).

    You can create a pseudo device that the application opens in read or r/w
    mode, and then the kernel driver writes (and reads) messages to the device
    which the user-space application reads (and writes).

    Cheers, Andreas

    -- 
    Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                     \  would they cancel out, leaving him still hungry?"
    http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
    

    - 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/



    This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 17:43:07 EDT