Re: 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • RE: Running public IPs inside an RFC 1597 network
    ... > I'm running a typical Class C RFC 1597 network in my lab. ... know or care if we humans designate a subnet as public or private. ... is the absolute most general route there is for a machine. ... In a correctly configured system when you define an interface, ...
    (freebsd-questions)
  • Re: Object Oriented Content System - the idea
    ... Would probably be difficult to enforce this militant style in PHP. ... (It's java, but you probably don't have to know java to see what's going ... The advantage of keeping them private or protected has been to prevent using ... way of private inner class and interface) In PHP this typically means another ...
    (comp.lang.php)
  • Re: NAT troubleshooting
    ... I dont follow...which interface are you talking about? ... Private interface does ... You don't really Need that NIC for NAT to work. ... Ethernet adapter Local Area Connection: ...
    (microsoft.public.windows.server.networking)
  • Re: Getting and Setting and best practise
    ... the appropriate PRIVATE getter/setter. ... simplified the object's interface. ... Validation also becomes ... getters/setters would have PRIVATE scope and would run automatically and ...
    (comp.lang.php)
  • Re: it is time to retire non-MIME MUAs
    ... Of of these days I'd have hack a private mailing list gateway into ... my news server). ... is not synonymous with "NNTP". ... the interface which delivers it doesn't matter. ...
    (comp.mail.misc)