Print this page
8115 parallel zfs mount


   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 /*
  26  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  27  * Copyright (c) 2017 by Delphix. All rights reserved.

  28  */
  29 
  30 #ifndef _SYS_TASKQ_IMPL_H
  31 #define _SYS_TASKQ_IMPL_H
  32 
  33 #include <sys/taskq.h>
  34 #include <sys/inttypes.h>
  35 #include <sys/vmem.h>
  36 #include <sys/list.h>
  37 #include <sys/kstat.h>

  38 
  39 #ifdef  __cplusplus
  40 extern "C" {
  41 #endif
  42 
  43 typedef struct taskq_bucket taskq_bucket_t;
  44 
  45 typedef struct taskq_ent {
  46         struct taskq_ent        *tqent_next;
  47         struct taskq_ent        *tqent_prev;
  48         task_func_t             *tqent_func;
  49         void                    *tqent_arg;
  50         union {
  51                 taskq_bucket_t  *tqent_bucket;
  52                 uintptr_t       tqent_flags;
  53         }                       tqent_un;
  54         kthread_t               *tqent_thread;
  55         kcondvar_t              tqent_cv;
  56 } taskq_ent_t;
  57 




   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 /*
  26  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  27  * Copyright (c) 2017 by Delphix. All rights reserved.
  28  * Copyright 2017 RackTop Systems.
  29  */
  30 
  31 #ifndef _SYS_TASKQ_IMPL_H
  32 #define _SYS_TASKQ_IMPL_H
  33 
  34 #include <sys/taskq.h>
  35 #include <sys/inttypes.h>
  36 #include <sys/vmem.h>
  37 #include <sys/list.h>
  38 #include <sys/kstat.h>
  39 #include <sys/rwlock.h>
  40 
  41 #ifdef  __cplusplus
  42 extern "C" {
  43 #endif
  44 
  45 typedef struct taskq_bucket taskq_bucket_t;
  46 
  47 typedef struct taskq_ent {
  48         struct taskq_ent        *tqent_next;
  49         struct taskq_ent        *tqent_prev;
  50         task_func_t             *tqent_func;
  51         void                    *tqent_arg;
  52         union {
  53                 taskq_bucket_t  *tqent_bucket;
  54                 uintptr_t       tqent_flags;
  55         }                       tqent_un;
  56         kthread_t               *tqent_thread;
  57         kcondvar_t              tqent_cv;
  58 } taskq_ent_t;
  59