[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.132 and 1.133

version 1.132, 2007/10/11 19:45:25 version 1.133, 2007/10/11 19:53:37
Line 2353  pool_allocator_alloc(struct pool *pp, in
Line 2353  pool_allocator_alloc(struct pool *pp, in
         struct pool_allocator *pa = pp->pr_alloc;          struct pool_allocator *pa = pp->pr_alloc;
         void *res;          void *res;
   
         LOCK_ASSERT(!simple_lock_held(&pp->pr_slock));  
   
         res = (*pa->pa_alloc)(pp, flags);          res = (*pa->pa_alloc)(pp, flags);
         if (res == NULL && (flags & PR_WAITOK) == 0) {          if (res == NULL && (flags & PR_WAITOK) == 0) {
                 /*                  /*
Line 2375  pool_allocator_free(struct pool *pp, voi
Line 2373  pool_allocator_free(struct pool *pp, voi
 {  {
         struct pool_allocator *pa = pp->pr_alloc;          struct pool_allocator *pa = pp->pr_alloc;
   
         LOCK_ASSERT(!simple_lock_held(&pp->pr_slock));  
   
         (*pa->pa_free)(pp, v);          (*pa->pa_free)(pp, v);
 }  }
   

Legend:
Removed from v.1.132  
changed lines
  Added in v.1.133

CVSweb <webmaster@jp.NetBSD.org>