[BACK]Return to bufq_priocscan.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/bufq_priocscan.c between version 1.13 and 1.14

version 1.13, 2009/01/16 01:44:27 version 1.14, 2009/01/19 14:54:28
Line 34  __KERNEL_RCSID(0, "$NetBSD$");
Line 34  __KERNEL_RCSID(0, "$NetBSD$");
 #include <sys/buf.h>  #include <sys/buf.h>
 #include <sys/bufq.h>  #include <sys/bufq.h>
 #include <sys/bufq_impl.h>  #include <sys/bufq_impl.h>
 #include <sys/malloc.h>  #include <sys/kmem.h>
   
 /*  /*
  * Cyclical scan (CSCAN)   * Cyclical scan (CSCAN)
Line 307  bufq_priocscan_cancel(struct bufq_state 
Line 307  bufq_priocscan_cancel(struct bufq_state 
 }  }
   
 static void  static void
   bufq_priocscan_fini(struct bufq_state *bufq)
   {
   
           KASSERT(bufq->bq_private != NULL);
           kmem_free(bufq->bq_private, sizeof(struct bufq_priocscan));
   }
   
   static void
 bufq_priocscan_init(struct bufq_state *bufq)  bufq_priocscan_init(struct bufq_state *bufq)
 {  {
         struct bufq_priocscan *q;          struct bufq_priocscan *q;
Line 315  bufq_priocscan_init(struct bufq_state *b
Line 323  bufq_priocscan_init(struct bufq_state *b
         bufq->bq_get = bufq_priocscan_get;          bufq->bq_get = bufq_priocscan_get;
         bufq->bq_put = bufq_priocscan_put;          bufq->bq_put = bufq_priocscan_put;
         bufq->bq_cancel = bufq_priocscan_cancel;          bufq->bq_cancel = bufq_priocscan_cancel;
         bufq->bq_private = malloc(sizeof(struct bufq_priocscan),          bufq->bq_fini = bufq_priocscan_fini;
             M_DEVBUF, M_ZERO);          bufq->bq_private = kmem_zalloc(sizeof(struct bufq_priocscan), KM_SLEEP);
   
         q = bufq->bq_private;          q = bufq->bq_private;
         for (i = 0; i < PRIOCSCAN_NQUEUE; i++) {          for (i = 0; i < PRIOCSCAN_NQUEUE; i++) {

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

CVSweb <webmaster@jp.NetBSD.org>