[BACK]Return to subr_pool.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/subr_pool.c between version 1.123 and 1.124

version 1.123, 2006/10/12 01:32:18 version 1.124, 2006/11/01 10:17:58
Line 484  pa_starved_p(struct pool_allocator *pa)
Line 484  pa_starved_p(struct pool_allocator *pa)
 }  }
   
 static int  static int
 pool_reclaim_callback(struct callback_entry *ce __unused, void *obj,  pool_reclaim_callback(struct callback_entry *ce, void *obj, void *arg)
     void *arg __unused)  
 {  {
         struct pool *pp = obj;          struct pool *pp = obj;
         struct pool_allocator *pa = pp->pr_alloc;          struct pool_allocator *pa = pp->pr_alloc;
Line 1620  pool_reclaim(struct pool *pp)
Line 1619  pool_reclaim(struct pool *pp)
  * Note, we must never be called from an interrupt context.   * Note, we must never be called from an interrupt context.
  */   */
 void  void
 pool_drain(void *arg __unused)  pool_drain(void *arg)
 {  {
         struct pool *pp;          struct pool *pp;
         int s;          int s;
Line 1704  pool_printit(struct pool *pp, const char
Line 1703  pool_printit(struct pool *pp, const char
 }  }
   
 static void  static void
 pool_print_pagelist(struct pool *pp __unused, struct pool_pagelist *pl,  pool_print_pagelist(struct pool *pp, struct pool_pagelist *pl,
     void (*pr)(const char *, ...))      void (*pr)(const char *, ...))
 {  {
         struct pool_item_header *ph;          struct pool_item_header *ph;
Line 2354  pool_allocator_free(struct pool *pp, voi
Line 2353  pool_allocator_free(struct pool *pp, voi
 }  }
   
 void *  void *
 pool_page_alloc(struct pool *pp __unused, int flags)  pool_page_alloc(struct pool *pp, int flags)
 {  {
         boolean_t waitok = (flags & PR_WAITOK) ? TRUE : FALSE;          boolean_t waitok = (flags & PR_WAITOK) ? TRUE : FALSE;
   
Line 2362  pool_page_alloc(struct pool *pp __unused
Line 2361  pool_page_alloc(struct pool *pp __unused
 }  }
   
 void  void
 pool_page_free(struct pool *pp __unused, void *v)  pool_page_free(struct pool *pp, void *v)
 {  {
   
         uvm_km_free_poolpage_cache(kmem_map, (vaddr_t) v);          uvm_km_free_poolpage_cache(kmem_map, (vaddr_t) v);
 }  }
   
 static void *  static void *
 pool_page_alloc_meta(struct pool *pp __unused, int flags)  pool_page_alloc_meta(struct pool *pp, int flags)
 {  {
         boolean_t waitok = (flags & PR_WAITOK) ? TRUE : FALSE;          boolean_t waitok = (flags & PR_WAITOK) ? TRUE : FALSE;
   
Line 2377  pool_page_alloc_meta(struct pool *pp __u
Line 2376  pool_page_alloc_meta(struct pool *pp __u
 }  }
   
 static void  static void
 pool_page_free_meta(struct pool *pp __unused, void *v)  pool_page_free_meta(struct pool *pp, void *v)
 {  {
   
         uvm_km_free_poolpage(kmem_map, (vaddr_t) v);          uvm_km_free_poolpage(kmem_map, (vaddr_t) v);
Line 2421  pool_subpage_free_nointr(struct pool *pp
Line 2420  pool_subpage_free_nointr(struct pool *pp
 }  }
 #endif /* POOL_SUBPAGE */  #endif /* POOL_SUBPAGE */
 void *  void *
 pool_page_alloc_nointr(struct pool *pp __unused, int flags)  pool_page_alloc_nointr(struct pool *pp, int flags)
 {  {
         boolean_t waitok = (flags & PR_WAITOK) ? TRUE : FALSE;          boolean_t waitok = (flags & PR_WAITOK) ? TRUE : FALSE;
   
Line 2429  pool_page_alloc_nointr(struct pool *pp _
Line 2428  pool_page_alloc_nointr(struct pool *pp _
 }  }
   
 void  void
 pool_page_free_nointr(struct pool *pp __unused, void *v)  pool_page_free_nointr(struct pool *pp, void *v)
 {  {
   
         uvm_km_free_poolpage_cache(kernel_map, (vaddr_t) v);          uvm_km_free_poolpage_cache(kernel_map, (vaddr_t) v);

Legend:
Removed from v.1.123  
changed lines
  Added in v.1.124

CVSweb <webmaster@jp.NetBSD.org>