Print this page
5513 KM_NORMALPRI should be documented in kmem_alloc(9f) and kmem_cache_create(9f) man pages
14465 Present KM_NOSLEEP_LAZY as documented interface
Change-Id: I002ec28ddf390650f1fcba1ca94f6abfdb241439

Split Close
Expand all
Collapse all
          --- old/usr/src/common/core/core_shstrtab.c
          +++ new/usr/src/common/core/core_shstrtab.c
↓ open down ↓ 38 lines elided ↑ open up ↑
  39   39          ".dynsym",
  40   40          ".strtab",
  41   41          ".dynstr",
  42   42          ".shstrtab"
  43   43  };
  44   44  
  45   45  static void *
  46   46  shstrtab_alloc(void)
  47   47  {
  48   48  #ifdef  _KERNEL
  49      -        return (kmem_zalloc(sizeof (shstrtab_ent_t),
  50      -            KM_NOSLEEP | KM_NORMALPRI));
       49 +        return (kmem_zalloc(sizeof (shstrtab_ent_t), KM_NOSLEEP_LAZY));
  51   50  #else
  52   51          return (calloc(1, sizeof (shstrtab_ent_t)));
  53   52  #endif
  54   53  }
  55   54  
  56   55  static void
  57   56  shstrtab_free(shstrtab_ent_t *ent)
  58   57  {
  59   58  #ifdef  _KERNEL
  60   59          if (ent->sste_name != NULL) {
↓ open down ↓ 85 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX