usr/src/uts/common/vm/page.h
changeset 2414 4349245e130c
parent 2048 8ceabdf91507
child 2961 8b33bed4151e
equal deleted inserted replaced
2413:9a2e5854fc3c 2414:4349245e130c
   495 
   495 
   496 	uint_t		p_share;	/* number of translations */
   496 	uint_t		p_share;	/* number of translations */
   497 #if defined(_LP64)
   497 #if defined(_LP64)
   498 	uint_t		p_sharepad;	/* pad for growing p_share */
   498 	uint_t		p_sharepad;	/* pad for growing p_share */
   499 #endif
   499 #endif
   500 	uint_t		p_msresv_1;	/* reserved for future use */
   500 	uint_t		p_slckcnt;	/* number of softlocks */
   501 #if defined(__sparc)
   501 #if defined(__sparc)
   502 	uint_t		p_kpmref;	/* number of kpm mapping sharers */
   502 	uint_t		p_kpmref;	/* number of kpm mapping sharers */
   503 	struct kpme	*p_kpmelist;	/* kpm specific mapping info */
   503 	struct kpme	*p_kpmelist;	/* kpm specific mapping info */
   504 #else
   504 #else
   505 	/* index of entry in p_map when p_embed is set */
   505 	/* index of entry in p_map when p_embed is set */
   514 
   514 
   515 
   515 
   516 typedef	page_t	devpage_t;
   516 typedef	page_t	devpage_t;
   517 #define	devpage	page
   517 #define	devpage	page
   518 
   518 
       
   519 #define	PAGE_LOCK_MAXIMUM \
       
   520 	((1 << (sizeof (((page_t *)0)->p_lckcnt) * NBBY)) - 1)
       
   521 
       
   522 #define	PAGE_SLOCK_MAXIMUM UINT_MAX
   519 
   523 
   520 /*
   524 /*
   521  * Page hash table is a power-of-two in size, externally chained
   525  * Page hash table is a power-of-two in size, externally chained
   522  * through the hash field.  PAGE_HASHAVELEN is the average length
   526  * through the hash field.  PAGE_HASHAVELEN is the average length
   523  * desired for this chain, from which the size of the page_hash
   527  * desired for this chain, from which the size of the page_hash