select-like implementation for kernel sockets

Discussion in 'Linux Networking' started by eitanr, May 6, 2007.

  1. eitanr

    eitanr Guest


    I'm using kernel sockets to Tx and Rx UDP packets between my hardware
    device (DSP) to the external network (this is part of a VoIP
    implementation). The motivation for using kernel sockets rather than
    user-space sockets is to avoid the copying of data between kernel and
    user spaces.

    I have no problems on the Tx side (I simply call sock_sendmsg on one
    of the sockets), but for the Rx side I want to listen-in on multiple
    sockets in blocking mode (I don't want to use polling).

    Is there a way to listen-in on multiple kernel sockets from one kernel
    thread? In the user space I would have used select(), but I am not
    familiar with a similar solution for the kernel space.


    Eitan Richardson
    AudioCodes Ltd.
    eitanr, May 6, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.