[OpenAFS-devel] [LKML] Re: In-kernel Authentication Tokens (PAGs)

Garrett Wollman wollman@khavrinen.lcs.mit.edu
Tue, 13 Jul 2004 15:26:22 -0400 (EDT)


<<On Tue, 13 Jul 2004 11:07:52 -0700, Mike Fedyk <mfedyk@matchmail.com> said:

> So, you don't even know if a pag id is in use in the much lauded aix pag 
> implementation?

All AIX gives you is the opportunity to find out when the last
reference drops, which is used instead of gcpags().  What doesn't
exist is any sort of "scoreboard" which would allow a more intelligent
allocation of PAG numbers.  (If you fix the code to use pointers
instead of integers, and you have at least as good a mechanism as AIX
does, then you can just use malloc() to guarantee uniqueness.)

-GAWollman