[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch to retrieve send rights for shared memory objects

From: Barry deFreese
Subject: Re: Patch to retrieve send rights for shared memory objects
Date: Sat, 26 Feb 2005 17:16:58 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1

Roland McGrath wrote:

This is a real questionable interface to add.  "Number of send rights" is
really not an appropriate notion for the Hurd protocol object abstraction.
It doesn't even necessarily mean very much useful even in a Mach-based
context.  It may not be really accurate to say anything other than yes/no
to "are there any references other than this one?"


our reference is not a reference to the shared memory object, but to the filenode. So we need three states: no senders, one, or many (the "one" is useful if we want to know
if we are the only mapper).

This is as much as we need to make users of nattach in SysV SHM happy.
We know it is a questionable interface, but it is exactly the one extra quirk
we need for compatibility. (And if you know a better way, share it!)


Barry deFreese
Debian 3.0r1 "Woody"
Registered Linux "Newbie" #302256 - Hurd H4XX0r wannabe

"Programming today is a race between software engineers striving
to build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots. So far, the Universe is
winning." Rich Cook.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]