Kernel driver select() - Linux

This is a discussion on Kernel driver select() - Linux ; Hi all, I have the following problem: We have a micro-controller running Linux on an Intel XScale PXA270. Connected to the micro is an FPGA with a memory-style interface that allows us to read and write certain of the implemented ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Kernel driver select()

  1. Kernel driver select()

    Hi all,

    I have the following problem:

    We have a micro-controller running Linux on an Intel XScale
    PXA270. Connected to the micro is an FPGA with a memory-style
    interface that allows us to read and write certain of the implemented
    registers.

    The FPGA will asynchronously (for the micro) produce some
    data. Whenever it has data available, it signals this to the
    micro-controller by setting one of the interrupt pins of the micro to
    high. It remains high until the available data has been read and is
    reset when the micro signals completion of the read.

    We want to represent this in user space as a normal device entry
    supporting read() and select() for normal operation and ioctl() for
    accessing configuration and status registers.

    The problem is that our driver specialist has little experience with
    implementing the select() functionality efficiently (and I have none
    whatsoever ;-).

    I tried Google, but apparently "Linux select driver" is not a very
    good search term...

    Any hints on where I should start looking? Websites are great, but
    books are no problem.

    Thanks!


    Stephan

    --
    -------------------------- It can be done! ---------------------------------
    Please email me as schulz@eprover.org (Stephan Schulz)
    ----------------------------------------------------------------------------

  2. Re: Kernel driver select()

    schulz@sunbroy2.informatik.tu-muenchen.de (Stephan Schulz) writes:

    [...]

    > I tried Google, but apparently "Linux select driver" is not a very
    > good search term...
    >
    > Any hints on where I should start looking? Websites are great, but
    > books are no problem.


    http://www.google.com/search?q=linux+device+drivers

    Specifically, you are looking for 'poll'-support (on Linux, select is
    just a wrapper around poll).

    http://www.xml.com/ldd/chapter/book/ch05.html#t3 [2nd ed, for 2.6, you
    should try the 3rd]

    BTW, unless you are really married to 'Berkeley UNIX', avoid select.


+ Reply to Thread