lkml.org 
[lkml]   [2007]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Syslets, Threadlets, generic AIO support, v6


    On Wed, 30 May 2007, Davide Libenzi wrote:
    >
    > I agree. What would be a good interface to allocate fds in such area? We
    > don't want to replicate syscalls, so maybe a special new dup function?

    I'd do it with something like "newfd = dup2(fd, NONLINEAR_FD)" or similar,
    and just have NONLINEAR_FD be some magic value (for example, make it be
    0x40000000 - the bit that says "private, nonlinear" in the first place).

    But what's gotten lost in the current discussion is that we probably don't
    actually _need_ such a private space. I'm just saying that if the *choice*
    is between memory-mapped interfaces and a private fd-space, we should
    probably go for the latter. "Everything is a file" is the UNIX way, after
    all. But there's little reason to introduce private fd's otherwise.

    Linus
    -
    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: 2007-05-31 00:07    [W:0.022 / U:29.424 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site