/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | remove_pool.c | 23 ip_pool_t pool; local 33 op.iplo_size = sizeof(pool); 34 op.iplo_struct = &pool; 36 bzero((char *)&pool, sizeof(pool)); 37 pool.ipo_unit = poolp->ipo_unit; 38 strncpy(pool.ipo_name, poolp->ipo_name, sizeof(pool.ipo_name)); 39 pool.ipo_flags = poolp->ipo_flags;
|
H A D | load_pool.c | 30 ip_pool_t pool; local 45 op.iplo_size = sizeof(pool); 46 op.iplo_struct = &pool; 47 bzero((char *)&pool, sizeof(pool)); 48 strncpy(pool.ipo_name, plp->ipo_name, sizeof(pool.ipo_name)); 61 pool.ipo_list = plp->ipo_list; 62 printpool(&pool, bcopywrap, pool [all...] |
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfsync.c | 45 { /* find the next legitimate pool */ 130 { /* sync the buffer, make sure pool don't move */ 131 reg int pool = f->mode&SF_POOL; local 141 f->mode |= pool; 168 if(!local && f && (f->mode&SF_POOL) && f->pool && f != f->pool->sf[0]) 169 SFSYNC(f->pool->sf[0]);
|
H A D | sfmode.c | 73 reg int pool; local 97 pool = f->mode&SF_POOL; 104 f->mode |= pool; 112 /* put into discrete pool */ 129 if(!(p = f->pool) ) 130 p = f->pool = &_Sfpool; 137 { if(p->s_sf == 0) /* initialize pool array */ 426 { /* move to head of pool */ 427 if(f == f->pool->sf[0] || (*_Sfpmove)(f,0) < 0 ) 440 if(!f->pool [all...] |
/illumos-gate/usr/src/boot/sys/boot/zfs/ |
H A D | libzfs.h | 54 uint64_t pool; member in struct:zfs_boot_args
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_synctask.c | 58 * A dataset or pool name can be passed as the first argument. Typically, 66 dsl_sync_task(const char *pool, dsl_checkfunc_t *checkfunc, argument 76 err = spa_open(pool, &spa, FTAG);
|
/illumos-gate/usr/src/common/zfs/ |
H A D | zfs_namecheck.c | 292 * For pool names, we have the same set of valid characters as described in 293 * dataset names, with the additional restriction that the pool name must begin 294 * with a letter. The pool names 'raidz' and 'mirror' are also reserved names 298 pool_namecheck(const char *pool, namecheck_err_t *why, char *what) argument 305 if (strlen(pool) >= ZFS_MAX_DATASET_NAME_LEN) { 311 c = pool; 323 if (!(*pool >= 'a' && *pool <= 'z') && 324 !(*pool >= 'A' && *pool < [all...] |
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/ |
H A D | Pool.java | 45 * The key of the pool. 51 * @param conf The configuration to which this pool belongs. 52 * @param pool The pointer to the native pool which this object wraps. 55 Pool(Configuration conf, long pool) throws PoolsException argument 58 Value val = getProperty("pool.name", pool); 61 key = "pool." + name; 65 * Returns a pointer to the native pool represented by this 66 * pool objec [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | irm.c | 89 return (list_walk_init_named(wsp, "interrupt pools", "pool")); 104 ddi_irm_pool_t pool; local 130 if (mdb_vread(&pool, sizeof (pool), addr) != sizeof (pool)) { 131 mdb_warn("couldn't read interrupt pool at %p", addr); 136 (uintptr_t)pool.ipool_owner) != sizeof (dev)) { 137 mdb_warn("couldn't read dev_info at %p", pool.ipool_owner); 141 mdb_devinfo2driver((uintptr_t)pool.ipool_owner, driver, 156 irm_get_type(pool [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | pool.h | 39 #define POOL_DEFAULT 0 /* default pool's ID */ 40 #define POOL_MAXID 999999 /* maximum possible pool ID */ 51 typedef struct pool { struct 52 poolid_t pool_id; /* pool ID */ 53 uint32_t pool_ref; /* # of procs in this pool */ 55 nvlist_t *pool_props; /* pool properties */ 56 struct pool_pset *pool_pset; /* pool's pset */ 72 extern pool_t *pool_default; /* default pool pointer */
|
/illumos-gate/usr/src/cmd/availdevs/ |
H A D | availdevs.c | 128 xmlNodePtr pool; local 141 pool = xmlNewChild(importable, NULL, (xmlChar *)ELEMENT_POOL, NULL); 142 (void) xmlSetProp(pool, (xmlChar *)ATTR_POOL_NAME, (xmlChar *)name); 144 set_uint64_prop(pool, ATTR_POOL_ID, guid); 145 set_uint64_prop(pool, ATTR_POOL_VERSION, version); 146 set_uint64_prop(pool, ATTR_POOL_USED, vs->vs_alloc); 147 set_uint64_prop(pool, ATTR_POOL_SIZE, vs->vs_space); 148 set_uint64_prop(pool, ATTR_POOL_REPLACEMENT_SIZE, vs->vs_rsize); 149 set_uint64_prop(pool, ATTR_POOL_READ_BYTES, 151 set_uint64_prop(pool, ATTR_POOL_WRITE_BYTE [all...] |
/illumos-gate/usr/src/cmd/hal/tools/ |
H A D | hal-storage-zpool.c | 3 * hal-storage-zpool.c : ZFS pool methods 55 int result, const char *auth_used, const char *pool, const char *device) 72 event->adt_pool_export.pool = (char *)pool; 77 event->adt_pool_import.pool = (char *)pool; 104 char *subcmd, const char *pool, const char *device, 120 printf ("pool = %s\n", pool); 134 args[na++] = (char *) pool; 54 audit_pool(const adt_export_data_t *imported_state, au_event_t event_id, int result, const char *auth_used, const char *pool, const char *device) argument 100 handle_zpool(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, char *subcmd, const char *pool, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, DBusConnection *system_bus) argument [all...] |
/illumos-gate/usr/src/uts/intel/io/vmxnet3s/ |
H A D | vmxnet3_rx.c | 78 * Return a rxBuf to the pool. The init argument, when B_TRUE, indicates 79 * that we're being called for the purpose of pool initialization, and 80 * therefore, we should place the buffer in the pool even if the device 84 * B_TRUE if the buffer was returned to the pool, or B_FALSE if it 109 * Return a rxBuf to the pool or free it. 121 * Get an unused rxBuf from the pool. 124 * A rxBuf or NULL if there are no buffers in the pool. 175 * Populate a Rx descriptor with a new rxBuf. If the pool argument is B_TRUE, 176 * then try to take a buffer from rxPool. If the pool is empty and the 177 * dp->alloc_ok is true, then fall back to dynamic allocation. If pool i 185 vmxnet3_rx_populate(vmxnet3_softc_t *dp, vmxnet3_rxqueue_t *rxq, uint16_t idx, boolean_t canSleep, boolean_t pool) argument [all...] |
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaSlotManager.c | 144 * No need to lock pool, we assume all meta sessions are closed. 442 session_pool_t *pool; local 451 pool = &slots[slotnum].session_pool; 457 (void) pthread_mutex_lock(&pool->list_lock); 459 if (pool->idle_list_head != NULL) { 460 tmp_session = get_session(&(pool->idle_list_head), flags); 463 INSERT_INTO_LIST(pool->active_list_head, tmp_session); 465 pool->num_idle_sessions--; 466 (void) pthread_mutex_unlock(&pool->list_lock); 471 if (pool 530 session_pool_t *pool; local [all...] |
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | fault.c | 504 register Sfio_t* pool; local 553 /* unlock output pool */ 555 if(!(pool=sfpool(NIL(Sfio_t*),shp->outpool,SF_WRITE))) 556 pool = shp->outpool; /* can't happen? */ 557 sfclrlock(pool); 560 sfpurge(pool);
|
/illumos-gate/usr/src/lib/libpool/common/ |
H A D | pool_impl.h | 56 * provided by a driver, /dev/pool, and presents data retrieved from 69 * a pool element) with groups (or sets) of these instances available 112 * - pool_t, represents a single pool 126 struct pool struct
|
/illumos-gate/usr/src/lib/libpp/common/ |
H A D | pplex.c | 129 * <wait.h> is poison here so pool moved to the end 133 static void pool(void); 439 if (pp.pool.input) 443 pool(); 2374 * output pool status on exit 2380 error(ERROR_OUTPUT|0, pp.pool.output, "%d", error_info.errors != 0); 2388 pool(void) function 2394 if (!sfnew(sfstdin, NiL, SF_UNBOUND, pp.pool.input, SF_READ)) 2395 error(ERROR_SYSTEM|3, "cannot dup pool input"); 2407 pp.pool [all...] |
/illumos-gate/usr/src/cmd/zinject/ |
H A D | translate.c | 413 * Copy the pool name 447 translate_device(const char *pool, const char *device, err_type_t label_type, argument 459 if ((zhp = zpool_open(g_zfs, pool)) == NULL) 468 "pool '%s'\n", device, pool);
|
H A D | zinject.c | 38 * pool. There are two types of errors that can be injected, EIO and ENXIO, 50 * zinject -d device [-e errno] [-L <uber | nvlist | pad1 | pad2>] pool 72 * config pool configuration 102 * zinject <-a | -u pool> 106 * zinject [-f freq] [-a] [-m] [-u] -b objset:object:level:start:end pool 227 "\tzinject -p <function name> pool\n" 234 "\t [-T <read|write|free|claim|all> pool\n" 241 "\tzinject -d device -A <degrade|fault> pool\n" 245 "\tzinject -d device -D latency:lanes pool\n" 277 "\tzinject -I [-s <seconds> | -g <txgs>] pool\ 352 print_data_handler(int id, const char *pool, zinject_record_t *record, void *data) argument 384 print_device_handler(int id, const char *pool, zinject_record_t *record, void *data) argument 409 print_delay_handler(int id, const char *pool, zinject_record_t *record, void *data) argument 438 print_panic_handler(int id, const char *pool, zinject_record_t *record, void *data) argument 495 cancel_one_handler(int id, const char *pool, zinject_record_t *record, void *data) argument 550 register_handler(const char *pool, int flags, zinject_record_t *record, int quiet) argument 608 perform_action(const char *pool, zinject_record_t *record, int cmd) argument 670 char pool[MAXNAMELEN]; local [all...] |
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ippool.c | 225 ip_pool_t pool; local 233 bzero((char *)&pool, sizeof(pool)); 283 fprintf(stderr, "poolname not given with add/remove pool\n"); 292 strncpy(pool.ipo_name, poolname, sizeof(pool.ipo_name)); 293 pool.ipo_name[sizeof(pool.ipo_name) - 1] = '\0'; 294 pool.ipo_unit = role; 304 err = load_pool(&pool, ioct 615 ip_pool_t pool; local [all...] |
/illumos-gate/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3_q_mem.h | 93 cpqary3_cmdpvt_t *pool; member in struct:cpqary3_cmdmemlist
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib_buf.c | 285 /* Initialize data pool */ 308 /* Initialize ctrl pool */ 336 rds_bufpool_t *pool; local 340 pool = &ep->ep_sndpool; 342 mutex_enter(&pool->pool_lock); 343 if (pool->pool_memp == NULL) { 344 mutex_exit(&pool->pool_lock); 376 kmem_free(pool->pool_memp, pool->pool_memsize); 377 kmem_free(pool 660 rds_bufpool_t *pool; local 712 rds_free_buf(rds_bufpool_t *pool, rds_buf_t *bp, uint_t nbuf) argument 757 rds_get_buf(rds_bufpool_t *pool, uint_t nbuf, uint_t *nret) argument [all...] |
/illumos-gate/usr/src/lib/smbsrv/libmlrpc/common/ |
H A D | ndr_svc.c | 387 ndr_svc_binding_pool_init(ndr_binding_t **headpp, ndr_binding_t pool[], argument 394 pool[ix].next = head; 395 pool[ix].service = NULL; 396 pool[ix].p_cont_id = 0xffff; 397 pool[ix].instance_specific = 0; 398 head = &pool[ix];
|
/illumos-gate/usr/src/lib/libsasl/lib/ |
H A D | saslutil.c | 90 unsigned short pool[RPOOL_SIZE]; member in struct:sasl_rand_s 249 sasl_rand_t *pool = NULL; local 280 ret = sasl_randcreate(&pool); 283 sasl_rand(pool, (char *)&randnum, sizeof(randnum)); 284 sasl_randfree(&pool); 446 rpool->pool[lup/2] = (seed[lup] << 8) + seed[lup + 1]; 454 getranddata(rpool->pool); 460 unsigned int *foo = (unsigned int *)rpool->pool; 484 buf[lup] = (char) (jrand48(rpool->pool) >> 8); 505 rpool->pool[lu [all...] |
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_main.c | 175 jobject pool = zjni_get_Dataset(env, poolUTF, ZFS_TYPE_FILESYSTEM); local 178 if (pool != NULL) { 182 jboolean is_pool = (*env)->IsInstanceOf(env, pool, class); 185 pool = NULL; 188 return (pool); 334 const char *pool = (*env)->GetStringUTFChars(env, poolUTF, local 336 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); 337 (*env)->ReleaseStringUTFChars(env, poolUTF, pool); 371 const char *pool = (*env)->GetStringUTFChars(env, poolUTF, local 373 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); 408 const char *pool = (*env)->GetStringUTFChars(env, local [all...] |