Re: locking in a device driver

From: Dinesh Nair (dinesh_at_alphaque.com)
Date: 11/02/05

  • Next message: Mike Silbersack: "Re: select(2) timeout precision"
    Date: Wed, 02 Nov 2005 13:35:03 +0800
    To: Julian Elischer <julian@elischer.org>
    
    

    On 11/02/05 06:16 Julian Elischer said the following:
    > also, why do you need a pseudo device AND a device? The device driver
    > can do all the things you have
    > suggested on its own.

    this is so userland apps wont need to change when different devices are
    used. the pseudo device is the front for a number of real device drivers
    running different devices from a quad-span E1/T1 line card to 4-port
    FXS/FXO line cards. each of these cards are different, but present the same
    device interface to the userland app via the pseudo device driver.

    -- 
    Regards,                           /\_/\   "All dogs go to heaven."
    dinesh@alphaque.com                (0 0)    http://www.alphaque.com/
    +==========================----oOO--(_)--OOo----==========================+
    | for a in past present future; do                                        |
    |   for b in clients employers associates relatives neighbours pets; do   |
    |   echo "The opinions here in no way reflect the opinions of my $a $b."  |
    | done; done                                                              |
    +=========================================================================+
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Mike Silbersack: "Re: select(2) timeout precision"

    Relevant Pages

    • Re: XGA208 with 832x624 Released
      ... IBM is developing a device driver that supports multiple XGA instances. ... A device driver to support Windows 3.1 is also ... Device drivers packaged with these cards will ...
      (comp.sys.ibm.ps2.hardware)
    • Re: locking in a device driver
      ... and the actual device driver which reads/writes ... from the device thru DMA and places the data into a ring buffer. ... interrupt handler of device driver called ... when a read on the pseudo device is called from a -lc_r threaded userland ...
      (freebsd-hackers)
    • Re: locking in a device driver
      ... what would be a good locking mechanism to ... :> use to protect tsleep() and other sensitive areas in a driver in freebsd ... :> the mechanism is actually a pseudo device driver which communicates with ... :> the real device driver. ...
      (freebsd-hackers)
    • [PATCH] v4l: add TerraTec Cinergy 1400 DVB-T
      ... * device driver for Conexant 2388x based TV cards ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: em driver worse then fxp driver ... why?
      ... is there a bug in the em device driver that doesn't exist on the fxp0 ... I have a bundle of machines with em cards that had problems talking ... 10Mbps switch was sick. ...
      (freebsd-net)