Home
last modified time | relevance | path

Searched refs:hdl (Results 1 – 25 of 68) sorted by relevance

123

/freebsd-head/sys/contrib/openzfs/lib/libzfs/
HDlibzfs_util.c75 libzfs_errno(libzfs_handle_t *hdl) in libzfs_errno() argument
77 return (hdl->libzfs_error); in libzfs_errno()
81 libzfs_error_action(libzfs_handle_t *hdl) in libzfs_error_action() argument
83 return (hdl->libzfs_action); in libzfs_error_action()
87 libzfs_error_description(libzfs_handle_t *hdl) in libzfs_error_description() argument
89 if (hdl->libzfs_desc[0] != '\0') in libzfs_error_description()
90 return (hdl->libzfs_desc); in libzfs_error_description()
92 switch (hdl->libzfs_error) { in libzfs_error_description()
330 assert(hdl->libzfs_error == 0); in libzfs_error_description()
336 zfs_error_aux(libzfs_handle_t *hdl, const char *fmt, ...) in zfs_error_aux() argument
[all …]
HDlibzfs_config.c78 namespace_clear(libzfs_handle_t *hdl) in namespace_clear() argument
80 if (hdl->libzfs_ns_avl) { in namespace_clear()
84 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, in namespace_clear()
91 uu_avl_destroy(hdl->libzfs_ns_avl); in namespace_clear()
92 hdl->libzfs_ns_avl = NULL; in namespace_clear()
95 if (hdl->libzfs_ns_avlpool) { in namespace_clear()
96 uu_avl_pool_destroy(hdl->libzfs_ns_avlpool); in namespace_clear()
97 hdl->libzfs_ns_avlpool = NULL; in namespace_clear()
105 namespace_reload(libzfs_handle_t *hdl) in namespace_reload() argument
113 if (hdl->libzfs_ns_gen == 0) { in namespace_reload()
[all …]
HDlibzfs_dataset.c109 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, in zfs_validate_name() argument
116 if (hdl != NULL) in zfs_validate_name()
117 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name()
123 if (hdl != NULL) in zfs_validate_name()
124 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name()
130 if (hdl != NULL) in zfs_validate_name()
131 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name()
137 if (hdl != NULL) in zfs_validate_name()
138 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name()
144 if (hdl != NULL) in zfs_validate_name()
[all …]
HDlibzfs_pool.c79 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_get_all_props() local
87 zcmd_write_src_nvlist(hdl, &zc, innvl); in zpool_get_all_props()
91 zcmd_alloc_dst_nvlist(hdl, &zc, 0); in zpool_get_all_props()
93 while (zfs_ioctl(hdl, ZFS_IOC_POOL_GET_PROPS, &zc) != 0) { in zpool_get_all_props()
95 zcmd_expand_dst_nvlist(hdl, &zc); in zpool_get_all_props()
102 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) { in zpool_get_all_props()
528 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, in zpool_valid_proplist() argument
543 (void) no_memory(hdl); in zpool_valid_proplist()
555 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "'%s' " in zpool_valid_proplist()
557 (void) zfs_error(hdl, EZFS_PROPREADONLY, in zpool_valid_proplist()
[all …]
HDlibzfs_sendrecv.c76 static int guid_to_name_redact_snaps(libzfs_handle_t *hdl, const char *parent,
449 get_snap_guid(libzfs_handle_t *hdl, const char *fs, const char *snap) in get_snap_guid() argument
458 zfs_handle_t *zhp = zfs_open(hdl, name, ZFS_TYPE_SNAPSHOT); in get_snap_guid()
472 get_snap_txg(libzfs_handle_t *hdl, const char *fs, const char *snap) in get_snap_txg() argument
481 if (zfs_dataset_exists(hdl, name, ZFS_TYPE_SNAPSHOT)) { in get_snap_txg()
482 zfs_handle_t *zhp = zfs_open(hdl, name, ZFS_TYPE_SNAPSHOT); in get_snap_txg()
683 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, in gather_nvlist() argument
693 zhp = zfs_open(hdl, fsname, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME); in gather_nvlist()
770 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_send_space() local
773 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_send_space()
[all …]
HDlibzfs_crypto.c108 zfs_prop_parse_keylocation(libzfs_handle_t *restrict hdl, const char *str, in zfs_prop_parse_keylocation() argument
121 if (regexec(&hdl->libzfs_urire, str, ARRAY_SIZE(pmatch), in zfs_prop_parse_keylocation()
126 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_prop_parse_keylocation()
138 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_prop_parse_keylocation()
148 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "Invalid keylocation")); in zfs_prop_parse_keylocation()
204 validate_key(libzfs_handle_t *hdl, zfs_keyformat_t keyformat, in validate_key() argument
211 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key()
218 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key()
227 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key()
234 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key()
[all …]
/freebsd-head/sys/contrib/openzfs/cmd/zed/agents/
HDfmd_api.c100 fmd_hdl_register(fmd_hdl_t *hdl, int version, const fmd_hdl_info_t *mip) in fmd_hdl_register() argument
103 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_register()
117 fmd_hdl_debug(hdl, "register module"); in fmd_hdl_register()
123 fmd_hdl_unregister(fmd_hdl_t *hdl) in fmd_hdl_unregister() argument
125 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_unregister()
130 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_accepted.fmds_name, in fmd_hdl_unregister()
133 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseopen.fmds_name, in fmd_hdl_unregister()
135 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_casesolved.fmds_name, in fmd_hdl_unregister()
137 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseclosed.fmds_name, in fmd_hdl_unregister()
146 fmd_hdl_debug(hdl, "%s: %llu", in fmd_hdl_unregister()
[all …]
HDzfs_diagnosis.c137 static void zfs_purge_cases(fmd_hdl_t *hdl);
152 zfs_case_unserialize(fmd_hdl_t *hdl, fmd_case_t *cp) in zfs_case_unserialize() argument
156 zcp = fmd_hdl_zalloc(hdl, sizeof (zfs_case_t), FMD_SLEEP); in zfs_case_unserialize()
159 fmd_buf_read(hdl, cp, CASE_DATA, &zcp->zc_data, in zfs_case_unserialize()
163 fmd_hdl_free(hdl, zcp, sizeof (zfs_case_t)); in zfs_case_unserialize()
174 zcp->zc_remove_timer = fmd_timer_install(hdl, zcp, in zfs_case_unserialize()
180 fmd_case_setspecific(hdl, cp, zcp); in zfs_case_unserialize()
189 zfs_other_serd_cases(fmd_hdl_t *hdl, const zfs_case_data_t *zfs_case) in zfs_other_serd_cases() argument
204 fmd_serd_gc(hdl); in zfs_other_serd_cases()
205 zfs_purge_cases(hdl); in zfs_other_serd_cases()
[all …]
HDzfs_retire.c63 zfs_retire_clear_data(fmd_hdl_t *hdl, zfs_retire_data_t *zdp) in zfs_retire_clear_data() argument
69 fmd_hdl_free(hdl, zrp, sizeof (zfs_retire_repaired_t)); in zfs_retire_clear_data()
247 replace_with_spare(fmd_hdl_t *hdl, zpool_handle_t *zhp, nvlist_t *vdev) in replace_with_spare() argument
273 replacement = fmd_nvl_alloc(hdl, FMD_SLEEP); in replace_with_spare()
305 fmd_hdl_debug(hdl, "zpool_vdev_replace '%s' with spare '%s'", in replace_with_spare()
328 zfs_vdev_repair(fmd_hdl_t *hdl, nvlist_t *nvl) in zfs_vdev_repair() argument
330 zfs_retire_data_t *zdp = fmd_hdl_getspecific(hdl); in zfs_vdev_repair()
355 zrp = fmd_hdl_alloc(hdl, sizeof (zfs_retire_repaired_t), FMD_SLEEP); in zfs_vdev_repair()
361 fmd_hdl_debug(hdl, "marking repaired vdev %llu on pool %llu", in zfs_vdev_repair()
366 zfs_retire_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, in zfs_retire_recv() argument
[all …]
/freebsd-head/sys/contrib/openzfs/module/zfs/
HDsa.c135 static int sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype);
142 static int sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr,
221 sa_handle_t *hdl = buf; in sa_cache_constructor() local
223 mutex_init(&hdl->sa_lock, NULL, MUTEX_DEFAULT, NULL); in sa_cache_constructor()
231 sa_handle_t *hdl = buf; in sa_cache_destructor() local
232 mutex_destroy(&hdl->sa_lock); in sa_cache_destructor()
301 sa_get_spill(sa_handle_t *hdl) in sa_get_spill() argument
304 if (hdl->sa_spill == NULL) { in sa_get_spill()
305 if ((rc = dmu_spill_hold_existing(hdl->sa_bonus, NULL, in sa_get_spill()
306 &hdl->sa_spill)) == 0) in sa_get_spill()
[all …]
HDzfs_znode.c88 zfs_release_sa_handle(sa_handle_t *hdl, dmu_buf_t *db, const void *tag) in zfs_release_sa_handle() argument
90 sa_handle_destroy(hdl); in zfs_release_sa_handle()
99 zfs_obj_to_pobj(objset_t *osp, sa_handle_t *hdl, sa_attr_type_t *sa_table, in zfs_obj_to_pobj() argument
119 if ((error = sa_bulk_lookup(hdl, bulk, count)) != 0) in zfs_obj_to_pobj()
155 zfs_obj_to_stats_impl(sa_handle_t *hdl, sa_attr_type_t *sa_table, in zfs_obj_to_stats_impl() argument
170 return (sa_bulk_lookup(hdl, bulk, count)); in zfs_obj_to_stats_impl()
174 zfs_obj_to_path_impl(objset_t *osp, uint64_t obj, sa_handle_t *hdl, in zfs_obj_to_path_impl() argument
186 sa_hdl = hdl; in zfs_obj_to_path_impl()
237 if (sa_hdl != hdl) { in zfs_obj_to_path_impl()
249 if (sa_hdl != NULL && sa_hdl != hdl) { in zfs_obj_to_path_impl()
[all …]
/freebsd-head/usr.sbin/bluetooth/ath3kfw/
HDath3k_hw.c50 ath3k_load_fwfile(struct libusb_device_handle *hdl, in ath3k_load_fwfile() argument
66 ret = libusb_control_transfer(hdl, in ath3k_load_fwfile()
92 ret = libusb_bulk_transfer(hdl, in ath3k_load_fwfile()
112 ath3k_get_state(struct libusb_device_handle *hdl, unsigned char *state) in ath3k_get_state() argument
116 ret = libusb_control_transfer(hdl, in ath3k_get_state()
137 ath3k_get_version(struct libusb_device_handle *hdl, in ath3k_get_version() argument
142 ret = libusb_control_transfer(hdl, in ath3k_get_version()
165 ath3k_load_patch(libusb_device_handle *hdl, const char *fw_path) in ath3k_load_patch() argument
174 ret = ath3k_get_state(hdl, &fw_state); in ath3k_load_patch()
186 ret = ath3k_get_version(hdl, &fw_ver); in ath3k_load_patch()
[all …]
HDath3k_hw.h53 extern int ath3k_load_fwfile(struct libusb_device_handle *hdl,
55 extern int ath3k_get_state(struct libusb_device_handle *hdl,
57 extern int ath3k_get_version(struct libusb_device_handle *hdl,
59 extern int ath3k_load_patch(libusb_device_handle *hdl, const char *fw_path);
60 extern int ath3k_load_syscfg(libusb_device_handle *hdl, const char *fw_path);
61 extern int ath3k_set_normal_mode(libusb_device_handle *hdl);
62 extern int ath3k_switch_pid(libusb_device_handle *hdl);
HDmain.c149 ath3k_init_ar3012(libusb_device_handle *hdl, const char *fw_path) in ath3k_init_ar3012() argument
153 ret = ath3k_load_patch(hdl, fw_path); in ath3k_init_ar3012()
159 ret = ath3k_load_syscfg(hdl, fw_path); in ath3k_init_ar3012()
165 ret = ath3k_set_normal_mode(hdl); in ath3k_init_ar3012()
171 ath3k_switch_pid(hdl); in ath3k_init_ar3012()
176 ath3k_init_firmware(libusb_device_handle *hdl, const char *file_prefix) in ath3k_init_firmware() argument
195 ret = ath3k_load_fwfile(hdl, &fw); in ath3k_init_firmware()
244 libusb_device_handle *hdl; in main() local
339 r = libusb_open(dev, &hdl); in main()
349 r = ath3k_get_state(hdl, &state); in main()
[all …]
/freebsd-head/sys/contrib/openzfs/lib/libzfs/os/freebsd/
HDlibzfs_compat.c222 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) in zfs_ioctl() argument
224 return (lzc_ioctl_fd(hdl->libzfs_fd, request, zc)); in zfs_ioctl()
250 zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg) in zpool_relabel_disk() argument
252 (void) hdl, (void) path, (void) msg; in zpool_relabel_disk()
257 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) in zpool_label_disk() argument
259 (void) hdl, (void) zhp, (void) name; in zpool_label_disk()
271 zfs_destroy_snaps_nvl_os(libzfs_handle_t *hdl, nvlist_t *snaps) in zfs_destroy_snaps_nvl_os() argument
273 (void) hdl, (void) snaps; in zfs_destroy_snaps_nvl_os()
283 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_jail() local
298 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_jail()
[all …]
/freebsd-head/sys/contrib/openzfs/lib/libzutil/
HDzutil_import.c76 libpc_error_description(libpc_handle_t *hdl) in libpc_error_description() argument
78 if (hdl->lpc_desc[0] != '\0') in libpc_error_description()
79 return (hdl->lpc_desc); in libpc_error_description()
81 switch (hdl->lpc_error) { in libpc_error_description()
94 assert(hdl->lpc_error == 0); in libpc_error_description()
100 zutil_error_aux(libpc_handle_t *hdl, const char *fmt, ...) in zutil_error_aux() argument
106 (void) vsnprintf(hdl->lpc_desc, sizeof (hdl->lpc_desc), fmt, ap); in zutil_error_aux()
107 hdl->lpc_desc_active = B_TRUE; in zutil_error_aux()
113 zutil_verror(libpc_handle_t *hdl, lpc_error_t error, const char *fmt, in zutil_verror() argument
119 hdl->lpc_error = error; in zutil_verror()
[all …]
/freebsd-head/usr.sbin/bluetooth/iwmbtfw/
HDmain.c231 iwmbt_init_firmware(libusb_device_handle *hdl, const char *firmware_path, in iwmbt_init_firmware() argument
304 ret = iwmbt_load_rsa_header(hdl, &fw); in iwmbt_init_firmware()
306 ret = iwmbt_load_ecdsa_header(hdl, &fw); in iwmbt_init_firmware()
311 ret = iwmbt_load_fwfile(hdl, &fw, boot_param, header_len); in iwmbt_init_firmware()
321 iwmbt_init_ddc(libusb_device_handle *hdl, const char *ddc_path) in iwmbt_init_ddc() argument
335 ret = iwmbt_load_ddc(hdl, &ddc); in iwmbt_init_ddc()
387 handle_7260(libusb_device_handle *hdl, char *firmware_dir) in handle_7260() argument
394 r = iwmbt_get_version(hdl, &ver); in handle_7260()
420 r = iwmbt_enter_manufacturer(hdl); in handle_7260()
428 r = iwmbt_patch_fwfile(hdl, &fw); in handle_7260()
[all …]
HDiwmbt_hw.h96 extern int iwmbt_patch_fwfile(struct libusb_device_handle *hdl,
98 extern int iwmbt_load_rsa_header(struct libusb_device_handle *hdl,
100 extern int iwmbt_load_ecdsa_header(struct libusb_device_handle *hdl,
102 extern int iwmbt_load_fwfile(struct libusb_device_handle *hdl,
104 extern int iwmbt_enter_manufacturer(struct libusb_device_handle *hdl);
105 extern int iwmbt_exit_manufacturer(struct libusb_device_handle *hdl,
107 extern int iwmbt_get_version(struct libusb_device_handle *hdl,
109 extern int iwmbt_get_version_tlv(struct libusb_device_handle *hdl,
111 extern int iwmbt_get_boot_params(struct libusb_device_handle *hdl,
113 extern int iwmbt_intel_reset(struct libusb_device_handle *hdl,
[all …]
HDiwmbt_hw.c54 iwmbt_send_fragment(struct libusb_device_handle *hdl, in iwmbt_send_fragment() argument
67 ret = libusb_bulk_transfer(hdl, in iwmbt_send_fragment()
81 ret = libusb_bulk_transfer(hdl, in iwmbt_send_fragment()
98 iwmbt_hci_command(struct libusb_device_handle *hdl, struct iwmbt_hci_cmd *cmd, in iwmbt_hci_command() argument
104 ret = libusb_control_transfer(hdl, in iwmbt_hci_command()
125 ret = libusb_interrupt_transfer(hdl, in iwmbt_hci_command()
163 iwmbt_patch_fwfile(struct libusb_device_handle *hdl, in iwmbt_patch_fwfile() argument
223 ret = libusb_control_transfer(hdl, in iwmbt_patch_fwfile()
277 ret = libusb_interrupt_transfer(hdl, in iwmbt_patch_fwfile()
308 ret = iwmbt_send_fragment(hdl, \
[all …]
/freebsd-head/sys/contrib/openzfs/lib/libzfs/os/linux/
HDlibzfs_util_os.c57 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) in zfs_ioctl() argument
59 return (ioctl(hdl->libzfs_fd, request, zc)); in zfs_ioctl()
183 zfs_destroy_snaps_nvl_os(libzfs_handle_t *hdl, nvlist_t *snaps) in zfs_destroy_snaps_nvl_os() argument
185 (void) hdl, (void) snaps; in zfs_destroy_snaps_nvl_os()
221 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_userns() local
239 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_userns()
241 return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); in zfs_userns()
243 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_userns()
245 return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); in zfs_userns()
247 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_userns()
[all …]
HDlibzfs_pool_os.c61 zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg) in zpool_relabel_disk() argument
66 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_relabel_disk()
68 return (zfs_error(hdl, EZFS_OPENFAILED, msg)); in zpool_relabel_disk()
84 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_relabel_disk()
86 return (zfs_error(hdl, EZFS_NOCAP, msg)); in zpool_relabel_disk()
212 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) in zpool_label_disk() argument
247 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_label_disk()
249 return (zfs_error(hdl, EZFS_OPENFAILED, errbuf)); in zpool_label_disk()
258 (void) no_memory(hdl); in zpool_label_disk()
261 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_label_disk()
[all …]
/freebsd-head/libexec/rtld-elf/tests/
HDdlopen_test.c16 void *hdl, *sym; in ATF_TC_BODY() local
18 hdl = dlopen("libthr.so", RTLD_NOW); in ATF_TC_BODY()
19 ATF_REQUIRE(hdl != NULL); in ATF_TC_BODY()
21 sym = dlsym(hdl, "pthread_create"); in ATF_TC_BODY()
24 dlclose(hdl); in ATF_TC_BODY()
26 sym = dlsym(hdl, "pthread_create"); in ATF_TC_BODY()
33 void *hdl; in ATF_TC_BODY() local
39 hdl = dlopen("libthr.so", RTLD_NOW | RTLD_GLOBAL); in ATF_TC_BODY()
40 ATF_REQUIRE(hdl != NULL); in ATF_TC_BODY()
42 dlclose(hdl); in ATF_TC_BODY()
/freebsd-head/sys/dev/irdma/
HDicrdma.c124 struct irdma_handler *hdl; in irdma_find_handler() local
128 list_for_each_entry(hdl, &irdma_handlers, list) { in irdma_find_handler()
129 if (!hdl->iwdev->rf->peer_info) in irdma_find_handler()
131 if (hdl->iwdev->rf->peer_info->dev == p_dev->dev) { in irdma_find_handler()
133 return hdl; in irdma_find_handler()
148 struct irdma_handler *hdl; in peer_to_iwdev() local
150 hdl = irdma_find_handler(peer); in peer_to_iwdev()
151 if (!hdl) { in peer_to_iwdev()
156 return hdl->iwdev; in peer_to_iwdev()
562 struct irdma_handler *hdl; in irdma_probe() local
[all …]
/freebsd-head/contrib/ncurses/ncurses/tinfo/
HDlib_win32con.c169 IsConsoleHandle(HANDLE hdl) in IsConsoleHandle() argument
174 T((T_CALLED("lib_win32con::IsConsoleHandle(HANDLE=%p"), hdl)); in IsConsoleHandle()
178 if (!GetConsoleMode(hdl, &dwFlag)) { in IsConsoleHandle()
197 HANDLE hdl = INVALID_HANDLE_VALUE; in _nc_console_test() local
199 hdl = _nc_console_handle(fd); in _nc_console_test()
200 code = (int) IsConsoleHandle(hdl); in _nc_console_test()
204 #define OutHandle() ((WINCONSOLE.isTermInfoConsole || WINCONSOLE.progMode) ? WINCONSOLE.hdl : WINCO…
209 if (WINCONSOLE.lastOut != WINCONSOLE.hdl) { in _nc_console_selectActiveHandle()
210 WINCONSOLE.lastOut = WINCONSOLE.hdl; in _nc_console_selectActiveHandle()
218 HANDLE hdl = _nc_console_handle(fd); in _nc_console_fd2handle() local
[all …]
/freebsd-head/sys/contrib/openzfs/lib/libzfsbootenv/
HDlzbe_device.c31 libzfs_handle_t *hdl; in lzbe_set_boot_device() local
41 if ((hdl = libzfs_init()) == NULL) in lzbe_set_boot_device()
44 zphdl = zpool_open(hdl, pool); in lzbe_set_boot_device()
46 libzfs_fini(hdl); in lzbe_set_boot_device()
103 fprintf(stderr, "%s\n", libzfs_error_description(hdl)); in lzbe_set_boot_device()
107 libzfs_fini(hdl); in lzbe_set_boot_device()
117 libzfs_handle_t *hdl; in lzbe_get_boot_device() local
126 if ((hdl = libzfs_init()) == NULL) in lzbe_get_boot_device()
129 zphdl = zpool_open(hdl, pool); in lzbe_get_boot_device()
131 libzfs_fini(hdl); in lzbe_get_boot_device()
[all …]

123