/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/ |
H A D | kidmap.h | 38 #define kidmap_get_destroy(hdl) do { } while (0) 39 #define kidmap_get_mappings(hdl) (NULL)
|
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_util.c | 63 libzfs_errno(libzfs_handle_t *hdl) argument 65 return (hdl->libzfs_error); 69 libzfs_error_action(libzfs_handle_t *hdl) argument 71 return (hdl->libzfs_action); 75 libzfs_error_description(libzfs_handle_t *hdl) argument 77 if (hdl->libzfs_desc[0] != '\0') 78 return (hdl->libzfs_desc); 80 switch (hdl->libzfs_error) { 269 assert(hdl->libzfs_error == 0); 276 zfs_error_aux(libzfs_handle_t *hdl, cons argument 290 zfs_verror(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) argument 316 zfs_error(libzfs_handle_t *hdl, int error, const char *msg) argument 323 zfs_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument 337 zfs_common_error(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) argument 367 zfs_standard_error(libzfs_handle_t *hdl, int error, const char *msg) argument 374 zfs_standard_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument 440 zpool_standard_error(libzfs_handle_t *hdl, int error, const char *msg) argument 447 zpool_standard_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument 548 no_memory(libzfs_handle_t *hdl) argument 557 zfs_alloc(libzfs_handle_t *hdl, size_t size) argument 572 zfs_asprintf(libzfs_handle_t *hdl, const char *fmt, ...) argument 594 zfs_realloc(libzfs_handle_t *hdl, void *ptr, size_t oldsize, size_t newsize) argument 611 zfs_strdup(libzfs_handle_t *hdl, const char *str) argument 631 libzfs_print_on_error(libzfs_handle_t *hdl, boolean_t printerr) argument 654 libzfs_handle_t *hdl; local 699 libzfs_fini(libzfs_handle_t *hdl) argument 742 zfs_path_to_zhandle(libzfs_handle_t *hdl, char *path, zfs_type_t argtype) argument 799 zcmd_alloc_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, size_t len) argument 818 zcmd_expand_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument 844 zcmd_write_nvlist_com(libzfs_handle_t *hdl, uint64_t *outnv, uint64_t *outlen, nvlist_t *nvl) argument 864 zcmd_write_conf_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument 871 zcmd_write_src_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument 881 zcmd_read_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t **nvlp) argument 891 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) argument 1117 str2shift(libzfs_handle_t *hdl, const char *buf) argument 1153 zfs_nicestrtonum(libzfs_handle_t *hdl, const char *value, uint64_t *num) argument 1233 zprop_parse_value(libzfs_handle_t *hdl, nvpair_t *elem, int prop, zfs_type_t type, nvlist_t *ret, char **svalp, uint64_t *ivalp, const char *errbuf) argument 1380 addlist(libzfs_handle_t *hdl, char *propname, zprop_list_t **listp, zfs_type_t type) argument 1435 zprop_get_list(libzfs_handle_t *hdl, char *props, zprop_list_t **listp, zfs_type_t type) argument 1530 libzfs_handle_t *hdl; member in struct:expand_data 1554 zprop_expand_list(libzfs_handle_t *hdl, zprop_list_t **plp, zfs_type_t type) argument [all...] |
H A D | libzfs_fru.c | 106 libzfs_handle_t *hdl = arg; local 117 if (hdl->libzfs_chassis_id[0] == '\0' && 121 (void) strlcpy(hdl->libzfs_chassis_id, devpath, 122 sizeof (hdl->libzfs_chassis_id)); 137 if (libzfs_fru_lookup(hdl, devpath) != NULL) { 180 frup->zf_chain = hdl->libzfs_fru_hash[idx]; 181 hdl->libzfs_fru_hash[idx] = frup; 182 frup->zf_next = hdl->libzfs_fru_list; 183 hdl->libzfs_fru_list = frup; 257 libzfs_fru_refresh(libzfs_handle_t *hdl) argument 307 libzfs_fru_lookup(libzfs_handle_t *hdl, const char *devpath) argument 333 libzfs_fru_devpath(libzfs_handle_t *hdl, const char *fru) argument 379 libzfs_fru_compare(libzfs_handle_t *hdl, const char *a, const char *b) argument 397 libzfs_fru_notself(libzfs_handle_t *hdl, const char *fru) argument 427 libzfs_fru_clear(libzfs_handle_t *hdl, boolean_t final) argument [all...] |
H A D | libzfs_config.c | 79 namespace_clear(libzfs_handle_t *hdl) argument 81 if (hdl->libzfs_ns_avl) { 85 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, 92 uu_avl_destroy(hdl->libzfs_ns_avl); 93 hdl->libzfs_ns_avl = NULL; 96 if (hdl->libzfs_ns_avlpool) { 97 uu_avl_pool_destroy(hdl->libzfs_ns_avlpool); 98 hdl->libzfs_ns_avlpool = NULL; 106 namespace_reload(libzfs_handle_t *hdl) argument 114 if (hdl 270 libzfs_handle_t *hdl = zhp->zpool_hdl; local 401 zpool_iter(libzfs_handle_t *hdl, zpool_iter_f func, void *data) argument 446 zfs_iter_root(libzfs_handle_t *hdl, zfs_iter_f func, void *data) argument [all...] |
H A D | libzfs_dataset.c | 102 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, argument 109 if (hdl != NULL) { 112 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 117 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 122 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 127 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 132 zfs_error_aux(hdl, 138 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 144 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 149 zfs_error_aux(hdl, dgettex 221 libzfs_handle_t *hdl = zhp->zfs_hdl; local 250 libzfs_handle_t *hdl = zhp->zfs_hdl; local 264 libzfs_handle_t *hdl = zhp->zfs_hdl; local 298 zpool_free_handles(libzfs_handle_t *hdl) argument 316 libzfs_handle_t *hdl = zhp->zfs_hdl; local 338 libzfs_handle_t *hdl = zhp->zfs_hdl; local 461 make_dataset_handle(libzfs_handle_t *hdl, const char *path) argument 490 make_dataset_handle_zc(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument 667 zfs_open(libzfs_handle_t *hdl, const char *path, int types) argument 800 libzfs_mnttab_init(libzfs_handle_t *hdl) argument 809 libzfs_mnttab_update(libzfs_handle_t *hdl) argument 829 libzfs_mnttab_fini(libzfs_handle_t *hdl) argument 847 libzfs_mnttab_cache(libzfs_handle_t *hdl, boolean_t enable) argument 853 libzfs_mnttab_find(libzfs_handle_t *hdl, const char *fsname, struct mnttab *entry) argument 889 libzfs_mnttab_add(libzfs_handle_t *hdl, const char *special, const char *mountp, const char *mntopts) argument 907 libzfs_mnttab_remove(libzfs_handle_t *hdl, const char *fsname) argument 964 zfs_valid_proplist(libzfs_handle_t *hdl, zfs_type_t type, nvlist_t *nvl, uint64_t zoned, zfs_handle_t *zhp, zpool_handle_t *zpool_hdl, const char *errbuf) argument 1597 zfs_setprop_error(libzfs_handle_t *hdl, zfs_prop_t prop, int err, char *errbuf) argument 1702 libzfs_handle_t *hdl = zhp->zfs_hdl; local 1736 libzfs_handle_t *hdl = zhp->zfs_hdl; local 1915 libzfs_handle_t *hdl = zhp->zfs_hdl; local 2142 libzfs_handle_t *hdl = zhp->zfs_hdl; local 3276 check_parents(libzfs_handle_t *hdl, const char *path, uint64_t *zoned, boolean_t accept_ancestor, int *prefixlen) argument 3357 zfs_dataset_exists(libzfs_handle_t *hdl, const char *path, zfs_type_t types) argument 3383 create_parents(libzfs_handle_t *hdl, char *target, int prefixlen) argument 3456 zfs_create_ancestors(libzfs_handle_t *hdl, const char *path) argument 3493 zfs_create(libzfs_handle_t *hdl, const char *path, zfs_type_t type, nvlist_t *props) argument 3743 zfs_destroy_snaps_nvl(libzfs_handle_t *hdl, nvlist_t *snaps, boolean_t defer) argument 3794 libzfs_handle_t *hdl = zhp->zfs_hdl; local 3872 libzfs_handle_t *hdl = zhp->zfs_hdl; local 3939 zfs_remap_indirects(libzfs_handle_t *hdl, const char *fs) argument 3973 zfs_snapshot_nvl(libzfs_handle_t *hdl, nvlist_t *snaps, nvlist_t *props) argument 4050 zfs_snapshot(libzfs_handle_t *hdl, const char *path, boolean_t recursive, nvlist_t *props) argument 4255 libzfs_handle_t *hdl = zhp->zfs_hdl; local 4496 libzfs_handle_t *hdl = zhp->zfs_hdl; local 4590 zfs_deleg_share_nfs(libzfs_handle_t *hdl, char *dataset, char *path, char *resource, void *export, void *sharetab, int sharemax, zfs_share_op_t operation) argument 4642 zfs_smb_acl_mgmt(libzfs_handle_t *hdl, char *dataset, char *path, zfs_smb_acl_op_t cmd, char *resource1, char *resource2) argument 4692 zfs_smb_acl_add(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument 4700 zfs_smb_acl_remove(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument 4708 zfs_smb_acl_purge(libzfs_handle_t *hdl, char *dataset, char *path) argument 4715 zfs_smb_acl_rename(libzfs_handle_t *hdl, char *dataset, char *path, char *oldname, char *newname) argument 4729 libzfs_handle_t *hdl = zhp->zfs_hdl; local 4828 libzfs_handle_t *hdl = zhp->zfs_hdl; local 4927 libzfs_handle_t *hdl = zhp->zfs_hdl; local 5004 libzfs_handle_t *hdl = zhp->zfs_hdl; local 5071 libzfs_handle_t *hdl = zhp->zfs_hdl; local 5130 libzfs_handle_t *hdl = zhp->zfs_hdl; local 5205 libzfs_handle_t *hdl = zhp->zfs_hdl; local [all...] |
H A D | libzfs_pool.c | 72 libzfs_handle_t *hdl = zhp->zpool_hdl; local 76 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0) 79 while (ioctl(hdl->libzfs_fd, ZFS_IOC_POOL_GET_PROPS, &zc) != 0) { 81 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) { 91 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) { 428 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, argument 441 (void) no_memory(hdl); 457 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 459 (void) zfs_error(hdl, EZFS_BADPROP, errbuf); 464 zfs_error_aux(hdl, dgettex 743 libzfs_handle_t *hdl = zhp->zpool_hdl; local 905 zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool) argument 998 zpool_open_canfail(libzfs_handle_t *hdl, const char *pool) argument 1040 zpool_open_silent(libzfs_handle_t *hdl, const char *pool, zpool_handle_t **ret) argument 1071 zpool_open(libzfs_handle_t *hdl, const char *pool) argument 1125 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, nvlist_t *props, nvlist_t *fsprops) argument 1261 libzfs_handle_t *hdl = zhp->zpool_hdl; local 1302 libzfs_handle_t *hdl = zhp->zpool_hdl; local 1323 libzfs_handle_t *hdl = zhp->zpool_hdl; local 1347 libzfs_handle_t *hdl = zhp->zpool_hdl; local 1501 zpool_rewind_exclaim(libzfs_handle_t *hdl, const char *name, boolean_t dryrun, nvlist_t *config) argument 1552 zpool_explain_recover(libzfs_handle_t *hdl, const char *name, int reason, nvlist_t *config) argument 1637 zpool_import(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, char *altroot) argument 1668 print_vdev_tree(libzfs_handle_t *hdl, const char *name, nvlist_t *nv, int indent) argument 1725 zpool_import_props(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, nvlist_t *props, int flags) argument 1924 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2010 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2547 zpool_relabel_disk(libzfs_handle_t *hdl, const char *name) argument 2596 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2666 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2714 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2749 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2811 libzfs_handle_t *hdl = zhp->zpool_hdl; local 2980 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3079 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3285 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3341 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3362 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3396 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3469 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3492 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3513 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3623 zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv, boolean_t verbose) argument 3864 libzfs_handle_t *hdl = zhp->zpool_hdl; local 3887 zpool_log_history(libzfs_handle_t *hdl, const char *message) argument 3916 libzfs_handle_t *hdl = zhp->zpool_hdl; local 4193 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name, zpool_boot_label_t boot_type, uint64_t boot_size, int *slice) argument 4381 supported_dump_vdev_type(libzfs_handle_t *hdl, nvlist_t *config, char *errbuf) argument 4422 libzfs_handle_t *hdl; local 4488 zpool_nextboot(libzfs_handle_t *hdl, uint64_t pool_guid, uint64_t dev_guid, const char *command) argument [all...] |
H A D | libzfs_sendrecv.c | 142 ddt_hash_append(libzfs_handle_t *hdl, dedup_table_t *ddt, dedup_entry_t **ddepp, argument 149 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 180 ddt_update(libzfs_handle_t *hdl, dedup_table_t *ddt, zio_cksum_t *cs, argument 196 ddt_hash_append(hdl, ddt, ddepp, cs, prop, dr); 763 get_snap_txg(libzfs_handle_t *hdl, const char *fs, const char *snap) argument 772 if (zfs_dataset_exists(hdl, name, ZFS_TYPE_SNAPSHOT)) { 773 zfs_handle_t *zhp = zfs_open(hdl, name, ZFS_TYPE_SNAPSHOT); 889 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, argument 897 zhp = zfs_open(hdl, fsname, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME); 956 libzfs_handle_t *hdl local 1014 libzfs_handle_t *hdl = zhp->zfs_hdl; local 1109 libzfs_handle_t *hdl = zhp->zfs_hdl; local 1510 zfs_send_resume_token_to_nvlist(libzfs_handle_t *hdl, const char *token) argument 1587 zfs_send_resume(libzfs_handle_t *hdl, sendflags_t *flags, int outfd, const char *resume_token) argument 2042 libzfs_handle_t *hdl = zhp->zfs_hdl; local 2132 recv_read(libzfs_handle_t *hdl, int fd, void *buf, int ilen, boolean_t byteswap, zio_cksum_t *zc) argument 2164 recv_read_nvlist(libzfs_handle_t *hdl, int fd, int len, nvlist_t **nvp, boolean_t byteswap, zio_cksum_t *zc) argument 2191 recv_rename(libzfs_handle_t *hdl, const char *name, const char *tryname, int baselen, char *newname, recvflags_t *flags) argument 2255 recv_destroy(libzfs_handle_t *hdl, const char *name, int baselen, char *newname, recvflags_t *flags) argument 2353 guid_to_name(libzfs_handle_t *hdl, const char *parent, uint64_t guid, boolean_t bookmark_ok, char *name) argument 2406 created_before(libzfs_handle_t *hdl, avl_tree_t *avl, uint64_t guid1, uint64_t guid2) argument 2454 recv_incremental_replication(libzfs_handle_t *hdl, const char *tofs, recvflags_t *flags, nvlist_t *stream_nv, avl_tree_t *stream_avl, nvlist_t *renamed) argument 2763 zfs_receive_package(libzfs_handle_t *hdl, int fd, const char *destname, recvflags_t *flags, dmu_replay_record_t *drr, zio_cksum_t *zc, char **top_zfs, int cleanup_fd, uint64_t *action_handlep) argument 2982 recv_skip(libzfs_handle_t *hdl, int fd, boolean_t byteswap) argument 3071 recv_ecksum_set_aux(libzfs_handle_t *hdl, const char *target_snap, boolean_t resumable) argument 3108 zfs_receive_one(libzfs_handle_t *hdl, int infd, const char *tosnap, const char *originsnap, recvflags_t *flags, dmu_replay_record_t *drr, dmu_replay_record_t *drr_noswap, const char *sendfs, nvlist_t *stream_nv, avl_tree_t *stream_avl, char **top_zfs, int cleanup_fd, uint64_t *action_handlep, const char *finalsnap) argument 3736 zfs_receive_impl(libzfs_handle_t *hdl, const char *tosnap, const char *originsnap, recvflags_t *flags, int infd, const char *sendfs, nvlist_t *stream_nv, avl_tree_t *stream_avl, char **top_zfs, int cleanup_fd, uint64_t *action_handlep, const char *finalsnap) argument 3858 zfs_receive(libzfs_handle_t *hdl, const char *tosnap, nvlist_t *props, recvflags_t *flags, int infd, avl_tree_t *stream_avl) argument [all...] |
H A D | libzfs_mount.c | 135 is_shared(libzfs_handle_t *hdl, const char *mountpoint, zfs_share_proto_t proto) argument 140 if (hdl->libzfs_sharetab == NULL) 143 (void) fseek(hdl->libzfs_sharetab, 0, SEEK_SET); 145 while (fgets(buf, sizeof (buf), hdl->libzfs_sharetab) != NULL) { 368 libzfs_handle_t *hdl = zhp->zfs_hdl; local 387 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 389 return (zfs_error_fmt(hdl, EZFS_MOUNTFAILED, 405 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, 407 return (zfs_error_fmt(hdl, EZFS_MOUNTFAILED, 421 zfs_error_aux(hdl, dgettex 456 unmount_one(libzfs_handle_t *hdl, const char *mountpoint, int flags) argument 474 libzfs_handle_t *hdl = zhp->zfs_hdl; local 845 libzfs_handle_t *hdl = zhp->zfs_hdl; local 968 unshare_one(libzfs_handle_t *hdl, const char *name, const char *mountpoint, zfs_share_proto_t proto) argument 1041 libzfs_handle_t *hdl = zhp->zfs_hdl; local 1350 zfs_dispatch_mount(libzfs_handle_t *hdl, zfs_handle_t **handles, size_t num_handles, int idx, zfs_iter_f func, void *data, tpool_t *tp) argument 1468 zfs_foreach_mountpoint(libzfs_handle_t *hdl, zfs_handle_t **handles, size_t num_handles, zfs_iter_f func, void *data, boolean_t parallel) argument 1604 libzfs_handle_t *hdl = zhp->zpool_hdl; local [all...] |
H A D | libzfs_import.c | 218 add_config(libzfs_handle_t *hdl, pool_list_t *pl, const char *path, argument 236 if ((ne = zfs_alloc(hdl, sizeof (name_entry_t))) == NULL) 239 if ((ne->ne_name = zfs_strdup(hdl, path)) == NULL) { 280 if ((pe = zfs_alloc(hdl, sizeof (pool_entry_t))) == NULL) { 298 if ((ve = zfs_alloc(hdl, sizeof (vdev_entry_t))) == NULL) { 317 if ((ce = zfs_alloc(hdl, sizeof (config_entry_t))) == NULL) { 332 if ((ne = zfs_alloc(hdl, sizeof (name_entry_t))) == NULL) 335 if ((ne->ne_name = zfs_strdup(hdl, path)) == NULL) { 351 pool_active(libzfs_handle_t *hdl, const char *name, uint64_t guid, argument 357 if (zpool_open_silent(hdl, nam 375 refresh_config(libzfs_handle_t *hdl, nvlist_t *config) argument 436 get_configs(libzfs_handle_t *hdl, pool_list_t *pl, boolean_t active_ok, nvlist_t *policy) argument 1230 zpool_find_import_impl(libzfs_handle_t *hdl, importargs_t *iarg) argument 1442 zpool_find_import(libzfs_handle_t *hdl, int argc, char **argv) argument 1458 zpool_find_import_cached(libzfs_handle_t *hdl, const char *cachefile, char *poolname, uint64_t guid) argument 1600 zpool_search_import(libzfs_handle_t *hdl, importargs_t *import) argument 1675 zpool_in_use(libzfs_handle_t *hdl, int fd, pool_state_t *state, char **namestr, boolean_t *inuse) argument [all...] |
H A D | libzfs_diff.c | 510 libzfs_handle_t *hdl = di->zhp->zfs_hdl; local 518 if (ioctl(hdl->libzfs_fd, ZFS_IOC_TMP_SNAPSHOT, &zc) != 0) { 525 return (zfs_error(hdl, EZFS_DIFF, di->errbuf)); 530 return (zfs_standard_error(hdl, err, di->errbuf)); 534 di->tmpsnap = zfs_strdup(hdl, zc.zc_value); 535 di->tosnap = zfs_asprintf(hdl, "%s@%s", di->ds, di->tmpsnap); 556 libzfs_handle_t *hdl = di->zhp->zfs_hdl; local 576 if (!zfs_validate_name(hdl, fromsnap, ZFS_TYPE_SNAPSHOT, 578 return (zfs_error(hdl, EZFS_INVALIDNAME, 586 di->fromsnap = zfs_strdup(hdl, fromsna [all...] |
H A D | libzfs_impl.h | 163 int zprop_expand_list(libzfs_handle_t *hdl, zprop_list_t **plp, 207 int zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type,
|
H A D | libzfs_changelist.c | 168 libzfs_handle_t *hdl; local 197 hdl = cn->cn_handle->zfs_hdl; 198 assert(hdl != NULL); 199 zfs_uninit_libshare(hdl); 212 zhandle_arr = zfs_alloc(hdl, 222 errors = zfs_init_libshare_arg(hdl, SA_INIT_SHARE_API_SELECTIVE,
|
/freebsd-11-stable/usr.sbin/bluetooth/ath3kfw/ |
H A D | ath3k_hw.h | 55 extern int ath3k_load_fwfile(struct libusb_device_handle *hdl, 57 extern int ath3k_get_state(struct libusb_device_handle *hdl, 59 extern int ath3k_get_version(struct libusb_device_handle *hdl, 61 extern int ath3k_load_patch(libusb_device_handle *hdl, const char *fw_path); 62 extern int ath3k_load_syscfg(libusb_device_handle *hdl, const char *fw_path); 63 extern int ath3k_set_normal_mode(libusb_device_handle *hdl); 64 extern int ath3k_switch_pid(libusb_device_handle *hdl);
|
H A D | ath3k_hw.c | 52 ath3k_load_fwfile(struct libusb_device_handle *hdl, argument 68 ret = libusb_control_transfer(hdl, 94 ret = libusb_bulk_transfer(hdl, 114 ath3k_get_state(struct libusb_device_handle *hdl, unsigned char *state) argument 118 ret = libusb_control_transfer(hdl, 139 ath3k_get_version(struct libusb_device_handle *hdl, argument 144 ret = libusb_control_transfer(hdl, 167 ath3k_load_patch(libusb_device_handle *hdl, const char *fw_path) argument 176 ret = ath3k_get_state(hdl, &fw_state); 188 ret = ath3k_get_version(hdl, 238 ath3k_load_syscfg(libusb_device_handle *hdl, const char *fw_path) argument 297 ath3k_set_normal_mode(libusb_device_handle *hdl) argument 338 ath3k_switch_pid(libusb_device_handle *hdl) argument [all...] |
H A D | main.c | 151 ath3k_init_ar3012(libusb_device_handle *hdl, const char *fw_path) argument 155 ret = ath3k_load_patch(hdl, fw_path); 161 ret = ath3k_load_syscfg(hdl, fw_path); 167 ret = ath3k_set_normal_mode(hdl); 173 ath3k_switch_pid(hdl); 178 ath3k_init_firmware(libusb_device_handle *hdl, const char *file_prefix) argument 197 ret = ath3k_load_fwfile(hdl, &fw); 246 libusb_device_handle *hdl; local 341 r = libusb_open(dev, &hdl); 351 r = ath3k_get_state(hdl, [all...] |
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | sa.c | 132 static int sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype); 139 static int sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr, 213 sa_handle_t *hdl = buf; local 215 mutex_init(&hdl->sa_lock, NULL, MUTEX_DEFAULT, NULL); 223 sa_handle_t *hdl = buf; local 224 mutex_destroy(&hdl->sa_lock); 294 sa_get_spill(sa_handle_t *hdl) argument 297 if (hdl->sa_spill == NULL) { 298 if ((rc = dmu_spill_hold_existing(hdl->sa_bonus, NULL, 299 &hdl 315 sa_attr_op(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count, sa_data_op_t data_op, dmu_tx_t *tx) argument 484 sa_resize_spill(sa_handle_t *hdl, uint32_t size, dmu_tx_t *tx) argument 637 sa_build_layouts(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument 1212 sa_handle_t *hdl = userp; local 1219 sa_byteswap(sa_handle_t *hdl, sa_buf_type_t buftype) argument 1260 sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype) argument 1333 sa_handle_destroy(sa_handle_t *hdl) argument 1432 sa_lookup_impl(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count) argument 1440 sa_lookup(sa_handle_t *hdl, sa_attr_type_t attr, void *buf, uint32_t buflen) argument 1459 sa_lookup_uio(sa_handle_t *hdl, sa_attr_type_t attr, uio_t *uio) argument 1562 sa_attr_register_sync(sa_handle_t *hdl, dmu_tx_t *tx) argument 1604 sa_replace_all_by_template_locked(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument 1615 sa_replace_all_by_template(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument 1635 sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr, sa_data_op_t action, sa_data_locator_t *locator, void *datastart, uint16_t buflen, dmu_tx_t *tx) argument 1782 sa_bulk_update_impl(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count, dmu_tx_t *tx) argument 1809 sa_update(sa_handle_t *hdl, sa_attr_type_t type, void *buf, uint32_t buflen, dmu_tx_t *tx) argument 1827 sa_update_from_cb(sa_handle_t *hdl, sa_attr_type_t attr, uint32_t buflen, sa_data_locator_t *locator, void *userdata, dmu_tx_t *tx) argument 1849 sa_size(sa_handle_t *hdl, sa_attr_type_t attr, int *size) argument 1871 sa_bulk_lookup_locked(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count) argument 1879 sa_bulk_lookup(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count) argument 1891 sa_bulk_update(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count, dmu_tx_t *tx) argument 1903 sa_remove(sa_handle_t *hdl, sa_attr_type_t attr, dmu_tx_t *tx) argument 1915 sa_object_info(sa_handle_t *hdl, dmu_object_info_t *doi) argument 1921 sa_object_size(sa_handle_t *hdl, uint32_t *blksize, u_longlong_t *nblocks) argument 1928 sa_set_userp(sa_handle_t *hdl, void *ptr) argument 1934 sa_get_db(sa_handle_t *hdl) argument 1940 sa_get_userdata(sa_handle_t *hdl) argument 1962 sa_handle_object(sa_handle_t *hdl) argument 1995 sa_handle_lock(sa_handle_t *hdl) argument 2002 sa_handle_unlock(sa_handle_t *hdl) argument [all...] |
H A D | zfs_sa.c | 195 zfs_sa_upgrade(sa_handle_t *hdl, dmu_tx_t *tx) argument 197 dmu_buf_t *db = sa_get_db(hdl); 198 znode_t *zp = sa_get_userdata(hdl); 243 if (sa_bulk_lookup_locked(hdl, bulk, count) != 0) 301 VERIFY(sa_replace_all_by_template_locked(hdl, sa_attrs,
|
H A D | zfs_znode.c | 606 dmu_object_type_t obj_type, sa_handle_t *hdl) 646 zfs_znode_sa_init(zfsvfs, zp, db, obj_type, hdl); 665 if (hdl == NULL) 1116 sa_handle_t *hdl; local 1147 hdl = dmu_buf_get_user(db); 1148 if (hdl != NULL) { 1149 zp = sa_get_userdata(hdl); 2019 zfs_release_sa_handle(sa_handle_t *hdl, dmu_buf_t *db, void *tag) argument 2021 sa_handle_destroy(hdl); 2030 zfs_obj_to_pobj(objset_t *osp, sa_handle_t *hdl, sa_attr_type_ argument 605 zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, dmu_object_type_t obj_type, sa_handle_t *hdl) argument 2086 zfs_obj_to_stats_impl(sa_handle_t *hdl, sa_attr_type_t *sa_table, zfs_stat_t *sb) argument 2105 zfs_obj_to_path_impl(objset_t *osp, uint64_t obj, sa_handle_t *hdl, sa_attr_type_t *sa_table, char *buf, int len) argument 2191 sa_handle_t *hdl; local 2215 sa_handle_t *hdl; local [all...] |
H A D | dmu_tx.c | 1300 dmu_tx_hold_sa(dmu_tx_t *tx, sa_handle_t *hdl, boolean_t may_grow) argument 1305 ASSERT(hdl != NULL); 1307 object = sa_handle_object(hdl); 1327 if (sa->sa_force_spill || may_grow || hdl->sa_spill) { 1331 dmu_buf_impl_t *db = (dmu_buf_impl_t *)hdl->sa_bonus;
|
/freebsd-11-stable/sbin/zfsbootcfg/ |
H A D | zfsbootcfg.c | 46 libzfs_handle_t *hdl; local 83 if ((hdl = libzfs_init()) == NULL) { 89 if (zpool_nextboot(hdl, pool_guid, vdev_guid, argv[1]) != 0) { 91 libzfs_fini(hdl); 95 libzfs_fini(hdl);
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | sa_impl.h | 224 #define SA_GET_DB(hdl, type) \ 225 (dmu_buf_impl_t *)((type == SA_BONUS) ? hdl->sa_bonus : hdl->sa_spill) 227 #define SA_GET_HDR(hdl, type) \ 228 ((sa_hdr_phys_t *)((dmu_buf_impl_t *)(SA_GET_DB(hdl, \ 231 #define SA_IDX_TAB_GET(hdl, type) \ 232 (type == SA_BONUS ? hdl->sa_bonus_tab : hdl->sa_spill_tab) 259 #define SA_ATTR_INFO(sa, idx, hdr, attr, bulk, type, hdl) \
|
/freebsd-11-stable/cddl/usr.sbin/zfsd/ |
H A D | zfsd_event.cc | 392 zpool_handle_t* hdl; local 394 hdl = zpl.front(); 395 VdevIterator(hdl).Each(TryDetach, (void*)hdl); 448 zpool_handle_t *hdl(static_cast<zpool_handle_t*>(cbArg)); 473 vdev.Path().c_str(), zpool_get_name(hdl)); 474 zpool_vdev_detach(hdl, vdev.Path().c_str());
|
/freebsd-11-stable/sys/dev/isp/ |
H A D | ispvar.h | 315 #define ISP_H2HT(hdl) ((hdl & ISP_HANDLE_USAGE_MASK) >> ISP_HANDLE_USAGE_SHIFT) 322 #define ISP_H2SEQ(hdl) ((hdl & ISP_HANDLE_SEQ_MASK) >> ISP_HANDLE_SEQ_SHIFT) 323 #define ISP_VALID_HANDLE(c, hdl) \ 324 ((ISP_H2HT(hdl) == ISP_HANDLE_INITIATOR || \ 325 ISP_H2HT(hdl) == ISP_HANDLE_TARGET || \ 326 ISP_H2HT(hdl) == ISP_HANDLE_CTRL) && \ 327 ((hdl) & ISP_HANDLE_CMD_MASK) < (c)->isp_maxcmds && \ 328 (hdl) [all...] |
/freebsd-11-stable/lib/libbe/ |
H A D | be_info.c | 37 static int snapshot_proplist_update(zfs_handle_t *hdl, prop_data_t *data); 258 snapshot_proplist_update(zfs_handle_t *hdl, prop_data_t *data) argument 261 return (zfs_iter_snapshots_sorted(hdl, prop_list_builder_cb, data));
|
/freebsd-11-stable/contrib/ncurses/ncurses/win32con/ |
H A D | win_driver.c | 48 #define okConsoleHandle(TCB) (TCB != 0 && !InvalidConsoleHandle(TCB->hdl)) 205 return WriteConsoleOutputW(TCB->hdl, ci, siz, loc, &rec); 246 return WriteConsoleOutput(TCB->hdl, ci, siz, loc, &rec); 333 if (PropOf(TCB)->lastOut != TCB->hdl) { 334 PropOf(TCB)->lastOut = TCB->hdl; 554 if (GetConsoleScreenBufferInfo(TCB->hdl, &(p->SBI))) { 596 SetConsoleTextAttribute(TCB->hdl, a); 609 SetConsoleTextAttribute(TCB->hdl, a); 742 PropOf(TCB)->lastOut = progFlag ? TCB->hdl : TCB->out; 883 if (ReadConsoleOutput(TCB->hdl, [all...] |