Bug #536

hat_getkpfnum needs to be removed

Added by Garrett D'Amore about 8 years ago. Updated about 8 years ago.

Status:ResolvedStart date:2010-12-17
Priority:NormalDue date:
Assignee:Garrett D'Amore% Done:


Target version:-
Difficulty: Tags:


From the code:

39  * PSARC 2004/405 made hat_getkpfnum(9F) obsolete. As part of the
40 * obsolecense, the original documented behavior will begin to be
41 * enforced in the future; namely, hat_getkpfnum(9F) may only
42 * be called with device-mapped memory virtual addresses. Since
43 * changing hat_getkpfnum(9F) to return PFN_INVALID on kernel memory
44 * would break a lot of modules without any warning, we've implemented
45 * the following mechanism as a stop-gap. In a future release, this
46 * can all be ripped out and hat_getkpfnum(9F) changed to return
47 * PFN_INVALID if it isn't called with a device-mapped memory address.

This has been this way for a long time now, and illumos is a logical time to go ahead and yank any references to this legacy API. In particular, this API has never been supported for 64-bit mode kernels.


#1 Updated by Garrett D'Amore about 8 years ago

  • Category set to kernel
  • Status changed from New to Resolved
  • Assignee set to Garrett D'Amore
  • % Done changed from 0 to 100

Fixed in:

changeset: 13267:c0c901825468
user: Garrett D'Amore <>
date: Wed Jan 19 08:06:56 2011 -0800
536 hat_getkpfnum needs to be removed
Reviewed by:
Reviewed by:

Also available in: Atom