Searched refs:hdl (Results 1 - 23 of 23) sorted by relevance

/freebsd-10.0-release/sys/cddl/compat/opensolaris/sys/
H A Dkidmap.h38 #define kidmap_get_destroy(hdl) do { } while (0)
39 #define kidmap_get_mappings(hdl) (NULL)
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_util.c60 libzfs_errno(libzfs_handle_t *hdl) argument
62 return (hdl->libzfs_error);
66 libzfs_error_action(libzfs_handle_t *hdl) argument
68 return (hdl->libzfs_action);
72 libzfs_error_description(libzfs_handle_t *hdl) argument
74 if (hdl->libzfs_desc[0] != '\0')
75 return (hdl->libzfs_desc);
77 switch (hdl->libzfs_error) {
240 assert(hdl->libzfs_error == 0);
247 zfs_error_aux(libzfs_handle_t *hdl, cons argument
261 zfs_verror(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) argument
287 zfs_error(libzfs_handle_t *hdl, int error, const char *msg) argument
294 zfs_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument
308 zfs_common_error(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) argument
338 zfs_standard_error(libzfs_handle_t *hdl, int error, const char *msg) argument
345 zfs_standard_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument
411 zpool_standard_error(libzfs_handle_t *hdl, int error, const char *msg) argument
418 zpool_standard_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument
498 no_memory(libzfs_handle_t *hdl) argument
507 zfs_alloc(libzfs_handle_t *hdl, size_t size) argument
522 zfs_asprintf(libzfs_handle_t *hdl, const char *fmt, ...) argument
544 zfs_realloc(libzfs_handle_t *hdl, void *ptr, size_t oldsize, size_t newsize) argument
561 zfs_strdup(libzfs_handle_t *hdl, const char *str) argument
616 libzfs_print_on_error(libzfs_handle_t *hdl, boolean_t printerr) argument
639 libzfs_handle_t *hdl; local
680 libzfs_fini(libzfs_handle_t *hdl) argument
723 zfs_path_to_zhandle(libzfs_handle_t *hdl, char *path, zfs_type_t argtype) argument
780 zcmd_alloc_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, size_t len) argument
798 zcmd_expand_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument
821 zcmd_write_nvlist_com(libzfs_handle_t *hdl, uint64_t *outnv, uint64_t *outlen, nvlist_t *nvl) argument
841 zcmd_write_conf_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument
848 zcmd_write_src_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument
858 zcmd_read_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t **nvlp) argument
868 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) argument
1090 str2shift(libzfs_handle_t *hdl, const char *buf) argument
1126 zfs_nicestrtonum(libzfs_handle_t *hdl, const char *value, uint64_t *num) argument
1206 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
1316 addlist(libzfs_handle_t *hdl, char *propname, zprop_list_t **listp, zfs_type_t type) argument
1371 zprop_get_list(libzfs_handle_t *hdl, char *props, zprop_list_t **listp, zfs_type_t type) argument
1466 libzfs_handle_t *hdl; member in struct:expand_data
1490 zprop_expand_list(libzfs_handle_t *hdl, zprop_list_t **plp, zfs_type_t type) argument
[all...]
H A Dlibzfs_fru.c106 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 Dlibzfs_config.c77 namespace_clear(libzfs_handle_t *hdl) argument
79 if (hdl->libzfs_ns_avl) {
83 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl,
90 uu_avl_destroy(hdl->libzfs_ns_avl);
91 hdl->libzfs_ns_avl = NULL;
94 if (hdl->libzfs_ns_avlpool) {
95 uu_avl_pool_destroy(hdl->libzfs_ns_avlpool);
96 hdl->libzfs_ns_avlpool = NULL;
104 namespace_reload(libzfs_handle_t *hdl) argument
112 if (hdl
267 libzfs_handle_t *hdl = zhp->zpool_hdl; local
385 zpool_iter(libzfs_handle_t *hdl, zpool_iter_f func, void *data) argument
430 zfs_iter_root(libzfs_handle_t *hdl, zfs_iter_f func, void *data) argument
[all...]
H A Dlibzfs_dataset.c134 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, argument
142 if (hdl != NULL) {
145 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
150 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
155 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
160 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
165 zfs_error_aux(hdl,
171 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
176 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
181 zfs_error_aux(hdl, dgettex
234 libzfs_handle_t *hdl = zhp->zfs_hdl; local
263 libzfs_handle_t *hdl = zhp->zfs_hdl; local
277 libzfs_handle_t *hdl = zhp->zfs_hdl; local
311 zpool_free_handles(libzfs_handle_t *hdl) argument
329 libzfs_handle_t *hdl = zhp->zfs_hdl; local
351 libzfs_handle_t *hdl = zhp->zfs_hdl; local
474 make_dataset_handle(libzfs_handle_t *hdl, const char *path) argument
503 make_dataset_handle_zc(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument
588 zfs_open(libzfs_handle_t *hdl, const char *path, int types) argument
674 libzfs_mnttab_init(libzfs_handle_t *hdl) argument
682 libzfs_mnttab_update(libzfs_handle_t *hdl) argument
702 libzfs_mnttab_fini(libzfs_handle_t *hdl) argument
718 libzfs_mnttab_cache(libzfs_handle_t *hdl, boolean_t enable) argument
724 libzfs_mnttab_find(libzfs_handle_t *hdl, const char *fsname, struct mnttab *entry) argument
757 libzfs_mnttab_add(libzfs_handle_t *hdl, const char *special, const char *mountp, const char *mntopts) argument
773 libzfs_mnttab_remove(libzfs_handle_t *hdl, const char *fsname) argument
827 zfs_valid_proplist(libzfs_handle_t *hdl, zfs_type_t type, nvlist_t *nvl, uint64_t zoned, zfs_handle_t *zhp, const char *errbuf) argument
1354 zfs_setprop_error(libzfs_handle_t *hdl, zfs_prop_t prop, int err, char *errbuf) argument
1447 libzfs_handle_t *hdl = zhp->zfs_hdl; local
1576 libzfs_handle_t *hdl = zhp->zfs_hdl; local
1801 libzfs_handle_t *hdl = zhp->zfs_hdl; local
2782 check_parents(libzfs_handle_t *hdl, const char *path, uint64_t *zoned, boolean_t accept_ancestor, int *prefixlen) argument
2863 zfs_dataset_exists(libzfs_handle_t *hdl, const char *path, zfs_type_t types) argument
2889 create_parents(libzfs_handle_t *hdl, char *target, int prefixlen) argument
2962 zfs_create_ancestors(libzfs_handle_t *hdl, const char *path) argument
2985 zfs_create(libzfs_handle_t *hdl, const char *path, zfs_type_t type, nvlist_t *props) argument
3208 zfs_destroy_snaps_nvl(libzfs_handle_t *hdl, nvlist_t *snaps, boolean_t defer) argument
3256 libzfs_handle_t *hdl = zhp->zfs_hdl; local
3329 libzfs_handle_t *hdl = zhp->zfs_hdl; local
3404 zfs_snapshot_nvl(libzfs_handle_t *hdl, nvlist_t *snaps, nvlist_t *props) argument
3469 zfs_snapshot(libzfs_handle_t *hdl, const char *path, boolean_t recursive, nvlist_t *props) argument
3655 libzfs_handle_t *hdl = zhp->zfs_hdl; local
3887 libzfs_handle_t *hdl = zhp->zfs_hdl; local
3981 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
4033 zfs_smb_acl_mgmt(libzfs_handle_t *hdl, char *dataset, char *path, zfs_smb_acl_op_t cmd, char *resource1, char *resource2) argument
4084 zfs_smb_acl_add(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument
4092 zfs_smb_acl_remove(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument
4100 zfs_smb_acl_purge(libzfs_handle_t *hdl, char *dataset, char *path) argument
4107 zfs_smb_acl_rename(libzfs_handle_t *hdl, char *dataset, char *path, char *oldname, char *newname) argument
4121 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4220 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4319 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4396 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4463 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4522 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4597 libzfs_handle_t *hdl = zhp->zfs_hdl; local
[all...]
H A Dlibzfs_pool.c71 libzfs_handle_t *hdl = zhp->zpool_hdl; local
75 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0)
78 while (ioctl(hdl->libzfs_fd, ZFS_IOC_POOL_GET_PROPS, &zc) != 0) {
80 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) {
90 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) {
421 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, argument
435 (void) no_memory(hdl);
452 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
454 (void) zfs_error(hdl, EZFS_BADPROP, errbuf);
459 zfs_error_aux(hdl, dgettex
729 libzfs_handle_t *hdl = zhp->zpool_hdl; local
891 zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool) argument
979 zpool_open_canfail(libzfs_handle_t *hdl, const char *pool) argument
1021 zpool_open_silent(libzfs_handle_t *hdl, const char *pool, zpool_handle_t **ret) argument
1052 zpool_open(libzfs_handle_t *hdl, const char *pool) argument
1109 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, nvlist_t *props, nvlist_t *fsprops) argument
1230 libzfs_handle_t *hdl = zhp->zpool_hdl; local
1274 libzfs_handle_t *hdl = zhp->zpool_hdl; local
1440 zpool_rewind_exclaim(libzfs_handle_t *hdl, const char *name, boolean_t dryrun, nvlist_t *config) argument
1491 zpool_explain_recover(libzfs_handle_t *hdl, const char *name, int reason, nvlist_t *config) argument
1576 zpool_import(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, char *altroot) argument
1608 print_vdev_tree(libzfs_handle_t *hdl, const char *name, nvlist_t *nv, int indent) argument
1665 zpool_import_props(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, nvlist_t *props, int flags) argument
1856 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2356 zpool_relabel_disk(libzfs_handle_t *hdl, const char *name) argument
2404 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2476 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2524 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2559 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2621 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2799 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2898 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3108 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3154 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3227 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3250 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3271 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3375 zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv, boolean_t verbose) argument
3611 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3634 zpool_log_history(libzfs_handle_t *hdl, const char *message) argument
3663 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3905 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) argument
4017 supported_dump_vdev_type(libzfs_handle_t *hdl, nvlist_t *config, char *errbuf) argument
4058 libzfs_handle_t *hdl; local
[all...]
H A Dlibzfs_mount.c123 is_shared(libzfs_handle_t *hdl, const char *mountpoint, zfs_share_proto_t proto) argument
128 if (hdl->libzfs_sharetab == NULL)
131 (void) fseek(hdl->libzfs_sharetab, 0, SEEK_SET);
133 while (fgets(buf, sizeof (buf), hdl->libzfs_sharetab) != NULL) {
272 libzfs_handle_t *hdl = zhp->zfs_hdl; local
291 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
293 return (zfs_error_fmt(hdl, EZFS_MOUNTFAILED,
309 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
311 return (zfs_error_fmt(hdl, EZFS_MOUNTFAILED,
325 zfs_error_aux(hdl, dgettex
360 unmount_one(libzfs_handle_t *hdl, const char *mountpoint, int flags) argument
378 libzfs_handle_t *hdl = zhp->zfs_hdl; local
731 libzfs_handle_t *hdl = zhp->zfs_hdl; local
854 unshare_one(libzfs_handle_t *hdl, const char *name, const char *mountpoint, zfs_share_proto_t proto) argument
919 libzfs_handle_t *hdl = zhp->zfs_hdl; local
1121 libzfs_handle_t *hdl = zhp->zpool_hdl; local
1204 libzfs_handle_t *hdl = zhp->zpool_hdl; local
[all...]
H A Dlibzfs_import.c209 add_config(libzfs_handle_t *hdl, pool_list_t *pl, const char *path, argument
227 if ((ne = zfs_alloc(hdl, sizeof (name_entry_t))) == NULL)
230 if ((ne->ne_name = zfs_strdup(hdl, path)) == NULL) {
270 if ((pe = zfs_alloc(hdl, sizeof (pool_entry_t))) == NULL) {
289 if ((ve = zfs_alloc(hdl, sizeof (vdev_entry_t))) == NULL) {
309 if ((ce = zfs_alloc(hdl, sizeof (config_entry_t))) == NULL) {
327 if ((ne = zfs_alloc(hdl, sizeof (name_entry_t))) == NULL)
330 if ((ne->ne_name = zfs_strdup(hdl, path)) == NULL) {
346 pool_active(libzfs_handle_t *hdl, const char *name, uint64_t guid, argument
352 if (zpool_open_silent(hdl, nam
370 refresh_config(libzfs_handle_t *hdl, nvlist_t *config) argument
430 get_configs(libzfs_handle_t *hdl, pool_list_t *pl, boolean_t active_ok) argument
1126 zpool_find_import_impl(libzfs_handle_t *hdl, importargs_t *iarg) argument
1334 zpool_find_import(libzfs_handle_t *hdl, int argc, char **argv) argument
1350 zpool_find_import_cached(libzfs_handle_t *hdl, const char *cachefile, char *poolname, uint64_t guid) argument
1490 zpool_search_import(libzfs_handle_t *hdl, importargs_t *import) argument
1565 zpool_in_use(libzfs_handle_t *hdl, int fd, pool_state_t *state, char **namestr, boolean_t *inuse) argument
[all...]
H A Dlibzfs_sendrecv.c131 ddt_hash_append(libzfs_handle_t *hdl, dedup_table_t *ddt, dedup_entry_t **ddepp, argument
138 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
169 ddt_update(libzfs_handle_t *hdl, dedup_table_t *ddt, zio_cksum_t *cs, argument
185 ddt_hash_append(hdl, ddt, ddepp, cs, prop, dr);
758 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, argument
765 zhp = zfs_open(hdl, fsname, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME);
821 libzfs_handle_t *hdl = zhp->zfs_hdl; local
839 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
841 return (zfs_error(hdl, EZFS_CROSSTARGET, errbuf));
844 if (zfs_dataset_exists(hdl, z
884 libzfs_handle_t *hdl = zhp->zfs_hdl; local
979 libzfs_handle_t *hdl = zhp->zfs_hdl; local
1627 recv_read(libzfs_handle_t *hdl, int fd, void *buf, int ilen, boolean_t byteswap, zio_cksum_t *zc) argument
1657 recv_read_nvlist(libzfs_handle_t *hdl, int fd, int len, nvlist_t **nvp, boolean_t byteswap, zio_cksum_t *zc) argument
1684 recv_rename(libzfs_handle_t *hdl, const char *name, const char *tryname, int baselen, char *newname, recvflags_t *flags) argument
1757 recv_destroy(libzfs_handle_t *hdl, const char *name, int baselen, char *newname, recvflags_t *flags) argument
1847 guid_to_name(libzfs_handle_t *hdl, const char *parent, uint64_t guid, char *name) argument
1897 created_before(libzfs_handle_t *hdl, avl_tree_t *avl, uint64_t guid1, uint64_t guid2) argument
1945 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
2254 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
2465 recv_skip(libzfs_handle_t *hdl, int fd, boolean_t byteswap) argument
2543 zfs_receive_one(libzfs_handle_t *hdl, int infd, const char *tosnap, 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) argument
3092 zfs_receive_impl(libzfs_handle_t *hdl, const char *tosnap, 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) argument
3203 zfs_receive(libzfs_handle_t *hdl, const char *tosnap, recvflags_t *flags, int infd, avl_tree_t *stream_avl) argument
[all...]
H A Dlibzfs_diff.c513 libzfs_handle_t *hdl = di->zhp->zfs_hdl; local
521 if (ioctl(hdl->libzfs_fd, ZFS_IOC_TMP_SNAPSHOT, &zc) != 0) {
528 return (zfs_error(hdl, EZFS_DIFF, di->errbuf));
533 return (zfs_standard_error(hdl, err, di->errbuf));
537 di->tmpsnap = zfs_strdup(hdl, zc.zc_value);
538 di->tosnap = zfs_asprintf(hdl, "%s@%s", di->ds, di->tmpsnap);
559 libzfs_handle_t *hdl = di->zhp->zfs_hdl; local
579 if (!zfs_validate_name(hdl, fromsnap, ZFS_TYPE_SNAPSHOT,
581 return (zfs_error(hdl, EZFS_INVALIDNAME,
589 di->fromsnap = zfs_strdup(hdl, fromsna
[all...]
H A Dlibzfs_impl.h157 int zprop_expand_list(libzfs_handle_t *hdl, zprop_list_t **plp,
199 int zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type,
H A Dlibzfs_changelist.c164 libzfs_handle_t *hdl; local
188 hdl = cn->cn_handle->zfs_hdl;
189 assert(hdl != NULL);
190 zfs_uninit_libshare(hdl);
H A Dlibzfs.h562 extern int zfs_snapshot_nvl(libzfs_handle_t *hdl, nvlist_t *snaps,
/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dsa.c130 static int sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype);
137 static int sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr,
211 sa_handle_t *hdl = buf; local
213 hdl->sa_bonus_tab = NULL;
214 hdl->sa_spill_tab = NULL;
215 hdl->sa_os = NULL;
216 hdl->sa_userp = NULL;
217 hdl->sa_bonus = NULL;
218 hdl->sa_spill = NULL;
219 mutex_init(&hdl
227 sa_handle_t *hdl = buf; local
306 sa_get_spill(sa_handle_t *hdl) argument
327 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
496 sa_resize_spill(sa_handle_t *hdl, uint32_t size, dmu_tx_t *tx) argument
651 sa_build_layouts(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument
1222 sa_handle_t *hdl = userp; local
1229 sa_byteswap(sa_handle_t *hdl, sa_buf_type_t buftype) argument
1270 sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype) argument
1343 sa_handle_destroy(sa_handle_t *hdl) argument
1434 sa_lookup_impl(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count) argument
1442 sa_lookup(sa_handle_t *hdl, sa_attr_type_t attr, void *buf, uint32_t buflen) argument
1461 sa_lookup_uio(sa_handle_t *hdl, sa_attr_type_t attr, uio_t *uio) argument
1565 sa_attr_register_sync(sa_handle_t *hdl, dmu_tx_t *tx) argument
1607 sa_replace_all_by_template_locked(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument
1618 sa_replace_all_by_template(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument
1638 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
1771 sa_bulk_update_impl(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count, dmu_tx_t *tx) argument
1798 sa_update(sa_handle_t *hdl, sa_attr_type_t type, void *buf, uint32_t buflen, dmu_tx_t *tx) argument
1816 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
1838 sa_size(sa_handle_t *hdl, sa_attr_type_t attr, int *size) argument
1860 sa_bulk_lookup_locked(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count) argument
1868 sa_bulk_lookup(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count) argument
1880 sa_bulk_update(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count, dmu_tx_t *tx) argument
1892 sa_remove(sa_handle_t *hdl, sa_attr_type_t attr, dmu_tx_t *tx) argument
1904 sa_object_info(sa_handle_t *hdl, dmu_object_info_t *doi) argument
1910 sa_object_size(sa_handle_t *hdl, uint32_t *blksize, u_longlong_t *nblocks) argument
1925 sa_set_userp(sa_handle_t *hdl, void *ptr) argument
1931 sa_get_db(sa_handle_t *hdl) argument
1937 sa_get_userdata(sa_handle_t *hdl) argument
1959 sa_handle_object(sa_handle_t *hdl) argument
1992 sa_handle_lock(sa_handle_t *hdl) argument
1999 sa_handle_unlock(sa_handle_t *hdl) argument
[all...]
H A Dzfs_sa.c196 zfs_sa_upgrade(sa_handle_t *hdl, dmu_tx_t *tx) argument
198 dmu_buf_t *db = sa_get_db(hdl);
199 znode_t *zp = sa_get_userdata(hdl);
249 if (sa_bulk_lookup_locked(hdl, bulk, count) != 0)
307 VERIFY(sa_replace_all_by_template_locked(hdl, sa_attrs,
H A Dzfs_znode.c615 dmu_object_type_t obj_type, sa_handle_t *hdl)
654 zfs_znode_sa_init(zfsvfs, zp, db, obj_type, hdl);
673 if (hdl == NULL)
1127 sa_handle_t *hdl; local
1158 hdl = dmu_buf_get_user(db);
1159 if (hdl != NULL) {
1160 zp = sa_get_userdata(hdl);
1990 zfs_release_sa_handle(sa_handle_t *hdl, dmu_buf_t *db, void *tag) argument
1992 sa_handle_destroy(hdl);
2001 zfs_obj_to_pobj(objset_t *osp, sa_handle_t *hdl, sa_attr_type_ argument
614 zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, dmu_object_type_t obj_type, sa_handle_t *hdl) argument
2057 zfs_obj_to_stats_impl(sa_handle_t *hdl, sa_attr_type_t *sa_table, zfs_stat_t *sb) argument
2076 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
2151 sa_handle_t *hdl; local
2175 sa_handle_t *hdl; local
[all...]
H A Ddmu_tx.c1379 dmu_tx_hold_sa(dmu_tx_t *tx, sa_handle_t *hdl, boolean_t may_grow) argument
1384 ASSERT(hdl != NULL);
1386 object = sa_handle_object(hdl);
1406 if (sa->sa_force_spill || may_grow || hdl->sa_spill) {
1410 dmu_buf_impl_t *db = (dmu_buf_impl_t *)hdl->sa_bonus;
/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dsa_impl.h220 #define SA_GET_DB(hdl, type) \
221 (dmu_buf_impl_t *)((type == SA_BONUS) ? hdl->sa_bonus : hdl->sa_spill)
223 #define SA_GET_HDR(hdl, type) \
224 ((sa_hdr_phys_t *)((dmu_buf_impl_t *)(SA_GET_DB(hdl, \
227 #define SA_IDX_TAB_GET(hdl, type) \
228 (type == SA_BONUS ? hdl->sa_bonus_tab : hdl->sa_spill_tab)
255 #define SA_ATTR_INFO(sa, idx, hdr, attr, bulk, type, hdl) \
H A Ddmu.h551 void dmu_tx_hold_sa(dmu_tx_t *tx, struct sa_handle *hdl, boolean_t may_grow);
/freebsd-10.0-release/sys/dev/isp/
H A Dispvar.h317 #define ISP_H2HT(hdl) ((hdl & ISP_HANDLE_USAGE_MASK) >> ISP_HANDLE_USAGE_SHIFT)
323 #define ISP_H2SEQ(hdl) ((hdl & ISP_HANDLE_SEQ_MASK) >> ISP_HANDLE_SEQ_SHIFT)
324 #define ISP_VALID_INI_HANDLE(c, hdl) \
325 (ISP_H2HT(hdl) == ISP_HANDLE_INITIATOR && (hdl & ISP_HANDLE_CMD_MASK) < (c)->isp_maxcmds && \
326 ISP_H2SEQ(hdl) == ISP_H2SEQ((c)->isp_xflist[hdl & ISP_HANDLE_CMD_MASK].handle))
328 #define ISP_VALID_TGT_HANDLE(c, hdl) \
[all...]
H A Disp_target.c632 uint32_t code, hdl; local
657 hdl = va_arg(ap, uint32_t);
695 cto->ct_syshandle = hdl;
703 hdl = va_arg(ap, uint32_t);
722 if (hdl == 0) {
738 cto->ct_syshandle = hdl;
746 hdl = va_arg(ap, uint32_t);
763 if (hdl == 0) {
767 cto->ct_syshandle = hdl;
H A Disp_freebsd.c6342 isp_common_dmateardown(ispsoftc_t *isp, struct ccb_scsiio *csio, uint32_t hdl) argument
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/zdb/
H A Dzdb.c1392 sa_handle_t *hdl; local
1421 if (sa_handle_get(os, object, NULL, SA_HDL_PRIVATE, &hdl)) {
1448 if (sa_bulk_lookup(hdl, bulk, idx)) {
1449 (void) sa_handle_destroy(hdl);
1460 (void) sa_handle_destroy(hdl);
1481 if (sa_lookup(hdl, sa_attr_table[ZPL_XATTR], &xattr,
1484 if (sa_lookup(hdl, sa_attr_table[ZPL_RDEV], &rdev,
1487 sa_handle_destroy(hdl);

Completed in 361 milliseconds