kernel/mem/mapping.cpp
/// Set the page use counter table to zero, since the only pages currently in use will never be unmapped.
///
Set the page use counter table to zero, since the only pages currently in use will never be unmapped.
Set the page use counter table to zero since the only pages currently in use will never be unmapped .
void mem_map_init_counters()
{
  KL_TRC_ENTRY;
  klib_synch_spinlock_init(counter_lock);
  klib_synch_spinlock_lock(counter_lock);
  for (int i = 0; i < MEM_MAX_SUPPORTED_PAGES; i++)
  {
    page_use_counters[i] = 0;
  }
  klib_synch_spinlock_unlock(counter_lock);
  KL_TRC_EXIT;
}
void mem_map_init_counters ( ) { KL_TRC_ENTRY ; klib_synch_spinlock_init ( counter_lock ) ; klib_synch_spinlock_lock ( counter_lock ) ; for ( int i = 0 ; i < MEM_MAX_SUPPORTED_PAGES ; i ++ ) { page_use_counters [ i ] = 0 ; } klib_synch_spinlock_unlock ( counter_lock ) ; KL_TRC_EXIT ; }
Set the page use counter table to zero, since the only pages currently in use will never be unmapped.
Set the page use counter table to zero since the only pages currently in use will never be unmapped .