On 15 November 2010 18:10, Luigi Rizzo <[email protected]> wrote:

> 2. [generic] passing pointers between userland and kernel
> requires remapping the pointer when going up or down.
> As the mapping would be application specific, i don't
> see much use in allowing room for a pointer without kernel code
> to map userland <-> kernel pointers.

I'm not thinking of passing a *working* pointer into the kernel but
used as a cookie, similar to how it's used in kqueue: the intention
being the application can send and get a pointer which means something
to the application, not something usable to the kernel.

Without using intptr_t, if an application wants to hang a structure on
the cookie, it needs to maintain its own translation table
(index-to-pointer).
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to