[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.34 and 1.35

version 1.34, 2000/05/08 20:09:44 version 1.35, 2000/05/31 15:03:54
Line 425  pool_init(pp, size, align, ioff, flags, 
Line 425  pool_init(pp, size, align, ioff, flags, 
         if (size < sizeof(struct pool_item))          if (size < sizeof(struct pool_item))
                 size = sizeof(struct pool_item);                  size = sizeof(struct pool_item);
   
           size = ALIGN(size);
           if (size >= pagesz)
                   panic("pool_init: pool item size (%lu) too large",
                         (u_long)size);
   
         /*          /*
          * Initialize the pool structure.           * Initialize the pool structure.
          */           */
Line 436  pool_init(pp, size, align, ioff, flags, 
Line 441  pool_init(pp, size, align, ioff, flags, 
         pp->pr_maxpages = UINT_MAX;          pp->pr_maxpages = UINT_MAX;
         pp->pr_roflags = flags;          pp->pr_roflags = flags;
         pp->pr_flags = 0;          pp->pr_flags = 0;
         pp->pr_size = ALIGN(size);          pp->pr_size = size;
         pp->pr_align = align;          pp->pr_align = align;
         pp->pr_wchan = wchan;          pp->pr_wchan = wchan;
         pp->pr_mtype = mtype;          pp->pr_mtype = mtype;

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

CVSweb <webmaster@jp.NetBSD.org>