lkml.org 
[lkml]   [2001]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: kqueue, kevent - kernel event notification mechanism
    Date
    From
    > are there any plans to implement the kqueue, kevent system calls
    > in the linux kernel?

    Not that I know of

    > It would be good for linux to implement event-driven i/o, if not
    > by means of kqueue/kevent (BSD-ish interface) then at least in
    > some other way.

    The standards way is asynchronous io (aio_* interfaces). That is being
    worked on

    > the difference. The current i/o calls, select and poll, scan all
    > open file descriptors for events, every call. This is clearly
    > not scalable. Event driven means that the kernel never scans

    The API isnt directly the problem. In fact you can make a fine scalable select
    by implementing

    poll_setup(..............)
    poll_add/poll_remove
    poll_wait

    as multiple calls giving basically the same interface that apps expected
    anyway. Take a look at the various /dev/poll experimental interfaces and
    bits of code.

    Alan
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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