* [Linux-ia64] Simple question about pointers address space.
@ 2001-08-24 18:10 Dominic Duchemin
2001-08-24 18:19 ` David Mosberger
0 siblings, 1 reply; 2+ messages in thread
From: Dominic Duchemin @ 2001-08-24 18:10 UTC (permalink / raw)
To: linux-ia64
I would simply like to know if the possible address space (2^64)
by a pointer is fulllly or partially used in the context of a process in
the linux ia64 kernel.
In the partial case, which part of the 2^64 is used.
The anser to this question is important for me. Because what i
try to do is to mix a reference counter&pointer for atomic operation on
pointers. So if there is unused bits in the 64 bits pointer, I'll use
them.
thanks.
------------------------
Si_Brain - Noise from void.
Kaydara, dduchemin@kaydara.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Linux-ia64] Simple question about pointers address space.
2001-08-24 18:10 [Linux-ia64] Simple question about pointers address space Dominic Duchemin
@ 2001-08-24 18:19 ` David Mosberger
0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2001-08-24 18:19 UTC (permalink / raw)
To: linux-ia64
>>>>> On Fri, 24 Aug 2001 14:10:23 -0400, "Dominic Duchemin" <DDuchemin@Kaydara.com> said:
Dominic> I would simply like to know if the possible address
Dominic> space (2^64) by a pointer is fulllly or partially used in
Dominic> the context of a process in the linux ia64 kernel.
All 64 bits are used (there are no ignored bits), though depending on
the OS and CPU, some of the address space may be inaccessible (will
trigger a fault if accessed).
Dominic> In the partial case, which part of the 2^64 is used.
Dominic> The anser to this question is important for
Dominic> me. Because what i try to do is to mix a reference
Dominic> counter&pointer for atomic operation on pointers. So if
Dominic> there is unused bits in the 64 bits pointer, I'll use them.
The only bits you might be able use for this purpose are low order
bits that are zero due to alignment constraints. E.g., if your
objects are all 16-byte aligned, you could use the least-significant 4
bits.
--david
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-24 18:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-24 18:10 [Linux-ia64] Simple question about pointers address space Dominic Duchemin
2001-08-24 18:19 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox