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

/freebsd-9.3-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-9.3-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_util.c61 libzfs_errno(libzfs_handle_t *hdl) argument
63 return (hdl->libzfs_error);
67 libzfs_error_action(libzfs_handle_t *hdl) argument
69 return (hdl->libzfs_action);
73 libzfs_error_description(libzfs_handle_t *hdl) argument
75 if (hdl->libzfs_desc[0] != '\0')
76 return (hdl->libzfs_desc);
78 switch (hdl->libzfs_error) {
241 assert(hdl->libzfs_error == 0);
248 zfs_error_aux(libzfs_handle_t *hdl, cons argument
262 zfs_verror(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) argument
288 zfs_error(libzfs_handle_t *hdl, int error, const char *msg) argument
295 zfs_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument
309 zfs_common_error(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) argument
339 zfs_standard_error(libzfs_handle_t *hdl, int error, const char *msg) argument
346 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
497 no_memory(libzfs_handle_t *hdl) argument
506 zfs_alloc(libzfs_handle_t *hdl, size_t size) argument
521 zfs_asprintf(libzfs_handle_t *hdl, const char *fmt, ...) argument
543 zfs_realloc(libzfs_handle_t *hdl, void *ptr, size_t oldsize, size_t newsize) argument
560 zfs_strdup(libzfs_handle_t *hdl, const char *str) argument
615 libzfs_print_on_error(libzfs_handle_t *hdl, boolean_t printerr) argument
638 libzfs_handle_t *hdl; local
679 libzfs_fini(libzfs_handle_t *hdl) argument
722 zfs_path_to_zhandle(libzfs_handle_t *hdl, char *path, zfs_type_t argtype) argument
779 zcmd_alloc_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, size_t len) argument
797 zcmd_expand_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument
820 zcmd_write_nvlist_com(libzfs_handle_t *hdl, uint64_t *outnv, uint64_t *outlen, nvlist_t *nvl) argument
840 zcmd_write_conf_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument
847 zcmd_write_src_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument
857 zcmd_read_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t **nvlp) argument
867 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) argument
1089 str2shift(libzfs_handle_t *hdl, const char *buf) argument
1125 zfs_nicestrtonum(libzfs_handle_t *hdl, const char *value, uint64_t *num) argument
1205 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
1325 addlist(libzfs_handle_t *hdl, char *propname, zprop_list_t **listp, zfs_type_t type) argument
1380 zprop_get_list(libzfs_handle_t *hdl, char *props, zprop_list_t **listp, zfs_type_t type) argument
1475 libzfs_handle_t *hdl; member in struct:expand_data
1499 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.c135 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, argument
143 if (hdl != NULL) {
146 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
151 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
156 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
161 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
166 zfs_error_aux(hdl,
172 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
177 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
182 zfs_error_aux(hdl, dgettex
235 libzfs_handle_t *hdl = zhp->zfs_hdl; local
264 libzfs_handle_t *hdl = zhp->zfs_hdl; local
278 libzfs_handle_t *hdl = zhp->zfs_hdl; local
312 zpool_free_handles(libzfs_handle_t *hdl) argument
330 libzfs_handle_t *hdl = zhp->zfs_hdl; local
352 libzfs_handle_t *hdl = zhp->zfs_hdl; local
475 make_dataset_handle(libzfs_handle_t *hdl, const char *path) argument
504 make_dataset_handle_zc(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument
653 zfs_open(libzfs_handle_t *hdl, const char *path, int types) argument
739 libzfs_mnttab_init(libzfs_handle_t *hdl) argument
747 libzfs_mnttab_update(libzfs_handle_t *hdl) argument
767 libzfs_mnttab_fini(libzfs_handle_t *hdl) argument
783 libzfs_mnttab_cache(libzfs_handle_t *hdl, boolean_t enable) argument
789 libzfs_mnttab_find(libzfs_handle_t *hdl, const char *fsname, struct mnttab *entry) argument
822 libzfs_mnttab_add(libzfs_handle_t *hdl, const char *special, const char *mountp, const char *mntopts) argument
838 libzfs_mnttab_remove(libzfs_handle_t *hdl, const char *fsname) argument
892 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
1419 zfs_setprop_error(libzfs_handle_t *hdl, zfs_prop_t prop, int err, char *errbuf) argument
1512 libzfs_handle_t *hdl = zhp->zfs_hdl; local
1641 libzfs_handle_t *hdl = zhp->zfs_hdl; local
1866 libzfs_handle_t *hdl = zhp->zfs_hdl; local
2878 check_parents(libzfs_handle_t *hdl, const char *path, uint64_t *zoned, boolean_t accept_ancestor, int *prefixlen) argument
2959 zfs_dataset_exists(libzfs_handle_t *hdl, const char *path, zfs_type_t types) argument
2985 create_parents(libzfs_handle_t *hdl, char *target, int prefixlen) argument
3058 zfs_create_ancestors(libzfs_handle_t *hdl, const char *path) argument
3081 zfs_create(libzfs_handle_t *hdl, const char *path, zfs_type_t type, nvlist_t *props) argument
3317 zfs_destroy_snaps_nvl(libzfs_handle_t *hdl, nvlist_t *snaps, boolean_t defer) argument
3365 libzfs_handle_t *hdl = zhp->zfs_hdl; local
3438 libzfs_handle_t *hdl = zhp->zfs_hdl; local
3513 zfs_snapshot_nvl(libzfs_handle_t *hdl, nvlist_t *snaps, nvlist_t *props) argument
3578 zfs_snapshot(libzfs_handle_t *hdl, const char *path, boolean_t recursive, nvlist_t *props) argument
3764 libzfs_handle_t *hdl = zhp->zfs_hdl; local
3997 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4091 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
4143 zfs_smb_acl_mgmt(libzfs_handle_t *hdl, char *dataset, char *path, zfs_smb_acl_op_t cmd, char *resource1, char *resource2) argument
4194 zfs_smb_acl_add(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument
4202 zfs_smb_acl_remove(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument
4210 zfs_smb_acl_purge(libzfs_handle_t *hdl, char *dataset, char *path) argument
4217 zfs_smb_acl_rename(libzfs_handle_t *hdl, char *dataset, char *path, char *oldname, char *newname) argument
4231 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4330 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4429 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4506 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4573 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4632 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4707 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) {
429 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, argument
443 (void) no_memory(hdl);
459 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
461 (void) zfs_error(hdl, EZFS_BADPROP, errbuf);
466 zfs_error_aux(hdl, dgettex
736 libzfs_handle_t *hdl = zhp->zpool_hdl; local
898 zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool) argument
986 zpool_open_canfail(libzfs_handle_t *hdl, const char *pool) argument
1028 zpool_open_silent(libzfs_handle_t *hdl, const char *pool, zpool_handle_t **ret) argument
1059 zpool_open(libzfs_handle_t *hdl, const char *pool) argument
1116 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, nvlist_t *props, nvlist_t *fsprops) argument
1237 libzfs_handle_t *hdl = zhp->zpool_hdl; local
1281 libzfs_handle_t *hdl = zhp->zpool_hdl; local
1447 zpool_rewind_exclaim(libzfs_handle_t *hdl, const char *name, boolean_t dryrun, nvlist_t *config) argument
1498 zpool_explain_recover(libzfs_handle_t *hdl, const char *name, int reason, nvlist_t *config) argument
1583 zpool_import(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, char *altroot) argument
1615 print_vdev_tree(libzfs_handle_t *hdl, const char *name, nvlist_t *nv, int indent) argument
1672 zpool_import_props(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, nvlist_t *props, int flags) argument
1863 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2363 zpool_relabel_disk(libzfs_handle_t *hdl, const char *name) argument
2411 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2483 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2531 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2566 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2628 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2806 libzfs_handle_t *hdl = zhp->zpool_hdl; local
2905 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3115 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3161 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3234 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3257 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3278 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3382 zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv, boolean_t verbose) argument
3618 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3641 zpool_log_history(libzfs_handle_t *hdl, const char *message) argument
3670 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3934 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) argument
4046 supported_dump_vdev_type(libzfs_handle_t *hdl, nvlist_t *config, char *errbuf) argument
4087 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
1133 zpool_find_import_impl(libzfs_handle_t *hdl, importargs_t *iarg) argument
1341 zpool_find_import(libzfs_handle_t *hdl, int argc, char **argv) argument
1357 zpool_find_import_cached(libzfs_handle_t *hdl, const char *cachefile, char *poolname, uint64_t guid) argument
1497 zpool_search_import(libzfs_handle_t *hdl, importargs_t *import) argument
1572 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
1626 libzfs_handle_t *hdl = zhp->zfs_hdl; local
1683 recv_read(libzfs_handle_t *hdl, int fd, void *buf, int ilen, boolean_t byteswap, zio_cksum_t *zc) argument
1713 recv_read_nvlist(libzfs_handle_t *hdl, int fd, int len, nvlist_t **nvp, boolean_t byteswap, zio_cksum_t *zc) argument
1740 recv_rename(libzfs_handle_t *hdl, const char *name, const char *tryname, int baselen, char *newname, recvflags_t *flags) argument
1813 recv_destroy(libzfs_handle_t *hdl, const char *name, int baselen, char *newname, recvflags_t *flags) argument
1903 guid_to_name(libzfs_handle_t *hdl, const char *parent, uint64_t guid, char *name) argument
1953 created_before(libzfs_handle_t *hdl, avl_tree_t *avl, uint64_t guid1, uint64_t guid2) argument
2001 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
2310 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
2521 recv_skip(libzfs_handle_t *hdl, int fd, boolean_t byteswap) argument
2599 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
3148 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
3259 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,
201 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.h565 extern int zfs_snapshot_nvl(libzfs_handle_t *hdl, nvlist_t *snaps,
/freebsd-9.3-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)
656 zfs_znode_sa_init(zfsvfs, zp, db, obj_type, hdl);
675 if (hdl == NULL)
1124 sa_handle_t *hdl; local
1155 hdl = dmu_buf_get_user(db);
1156 if (hdl != NULL) {
1157 zp = sa_get_userdata(hdl);
1970 zfs_release_sa_handle(sa_handle_t *hdl, dmu_buf_t *db, void *tag) argument
1972 sa_handle_destroy(hdl);
1981 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
2037 zfs_obj_to_stats_impl(sa_handle_t *hdl, sa_attr_type_t *sa_table, zfs_stat_t *sb) argument
2056 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
2131 sa_handle_t *hdl; local
2155 sa_handle_t *hdl; local
[all...]
H A Ddmu_tx.c1584 dmu_tx_hold_sa(dmu_tx_t *tx, sa_handle_t *hdl, boolean_t may_grow) argument
1589 ASSERT(hdl != NULL);
1591 object = sa_handle_object(hdl);
1611 if (sa->sa_force_spill || may_grow || hdl->sa_spill) {
1615 dmu_buf_impl_t *db = (dmu_buf_impl_t *)hdl->sa_bonus;
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dsa_impl.h222 #define SA_GET_DB(hdl, type) \
223 (dmu_buf_impl_t *)((type == SA_BONUS) ? hdl->sa_bonus : hdl->sa_spill)
225 #define SA_GET_HDR(hdl, type) \
226 ((sa_hdr_phys_t *)((dmu_buf_impl_t *)(SA_GET_DB(hdl, \
229 #define SA_IDX_TAB_GET(hdl, type) \
230 (type == SA_BONUS ? hdl->sa_bonus_tab : hdl->sa_spill_tab)
257 #define SA_ATTR_INFO(sa, idx, hdr, attr, bulk, type, hdl) \
H A Ddmu.h554 void dmu_tx_hold_sa(dmu_tx_t *tx, struct sa_handle *hdl, boolean_t may_grow);
/freebsd-9.3-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.c6344 isp_common_dmateardown(ispsoftc_t *isp, struct ccb_scsiio *csio, uint32_t hdl) argument
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/zdb/
H A Dzdb.c1504 sa_handle_t *hdl; local
1533 if (sa_handle_get(os, object, NULL, SA_HDL_PRIVATE, &hdl)) {
1560 if (sa_bulk_lookup(hdl, bulk, idx)) {
1561 (void) sa_handle_destroy(hdl);
1572 (void) sa_handle_destroy(hdl);
1593 if (sa_lookup(hdl, sa_attr_table[ZPL_XATTR], &xattr,
1596 if (sa_lookup(hdl, sa_attr_table[ZPL_RDEV], &rdev,
1599 sa_handle_destroy(hdl);

Completed in 307 milliseconds