[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 19:53:19 -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:

#define S_IMAPPED    000100000000 /* Might be mmap'd.  */
#define S_IMAPPEDM   000200000000 /* Might be mmap'd more than once.  */

Actually, for compatibility purposes it's better to reverse the sense of
those bits.  i.e.

#define S_IMMAP0        000100000000 /* Definitely no mmap's to this.  */
#define S_IMMAP1        000100000000 /* Probably only one mmap to this.  */

Ok. Should we change diskfs_get_filemap to accept a flag that says we do not want to create the memory object if it doesn't exist already? That seems to be
an important optimization to me if we call it in io_stat.


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]