| /dflybsd-src/sys/dev/disk/dm/ |
| H A D | dm_ioctl.c | 164 dm_list_versions_ioctl(prop_dictionary_t dm_dict) in dm_list_versions_ioctl() argument 171 prop_dictionary_get_uint32(dm_dict, DM_IOCTL_FLAGS, &flags); in dm_list_versions_ioctl() 176 prop_dictionary_set(dm_dict, DM_IOCTL_CMD_DATA, target_list); in dm_list_versions_ioctl() 187 dm_dev_create_ioctl(prop_dictionary_t dm_dict) in dm_dev_create_ioctl() argument 200 prop_dictionary_get_cstring_nocopy(dm_dict, DM_IOCTL_NAME, &name); in dm_dev_create_ioctl() 201 prop_dictionary_get_cstring_nocopy(dm_dict, DM_IOCTL_UUID, &uuid); in dm_dev_create_ioctl() 202 prop_dictionary_get_uint32(dm_dict, DM_IOCTL_FLAGS, &flags); in dm_dev_create_ioctl() 208 dm_add_flag(dm_dict, &flags, DM_EXISTS_FLAG); /* Device already exists */ in dm_dev_create_ioctl() 215 prop_dictionary_set_uint32(dm_dict, DM_IOCTL_MINOR, dmv->minor); in dm_dev_create_ioctl() 216 dm_add_flag(dm_dict, &flags, DM_EXISTS_FLAG); in dm_dev_create_ioctl() [all …]
|
| H A D | device-mapper.c | 286 dm_cmd_to_fun(prop_dictionary_t dm_dict) in dm_cmd_to_fun() argument 294 if ((command = prop_dictionary_get(dm_dict, DM_IOCTL_COMMAND)) == NULL) in dm_cmd_to_fun() 313 return p->fn(dm_dict); in dm_cmd_to_fun()
|
| /dflybsd-src/contrib/lvm2/dist/libdm/ioctl/ |
| H A D | libdm_dragonfly.c | 74 nbsd_dmi_add_version(const int *version, prop_dictionary_t dm_dict) in nbsd_dmi_add_version() argument 85 if ((prop_dictionary_set(dm_dict,"version",ver)) == false) in nbsd_dmi_add_version() 94 nbsd_dm_dict_to_dmi(prop_dictionary_t dm_dict,const int cmd) in nbsd_dm_dict_to_dmi() argument 115 prop_dictionary_get_int32(dm_dict, DM_IOCTL_OPEN, &dmi->open_count); in nbsd_dm_dict_to_dmi() 116 prop_dictionary_get_uint32(dm_dict, DM_IOCTL_EVENT, &dmi->event_nr); in nbsd_dm_dict_to_dmi() 117 prop_dictionary_get_uint32(dm_dict, DM_IOCTL_FLAGS, &dmi->flags); in nbsd_dm_dict_to_dmi() 118 prop_dictionary_get_uint32(dm_dict, DM_IOCTL_TARGET_COUNT, in nbsd_dm_dict_to_dmi() 121 if (prop_dictionary_get_uint32(dm_dict, DM_IOCTL_MINOR, &minor)) in nbsd_dm_dict_to_dmi() 127 if (prop_dictionary_get_cstring_nocopy(dm_dict, DM_IOCTL_NAME, in nbsd_dm_dict_to_dmi() 133 if (prop_dictionary_get_cstring_nocopy(dm_dict, DM_IOCTL_UUID, in nbsd_dm_dict_to_dmi() [all …]
|
| H A D | libdm_netbsd.c | 102 nbsd_dmi_add_version(const int *version, prop_dictionary_t dm_dict) in nbsd_dmi_add_version() argument 113 if ((prop_dictionary_set(dm_dict,"version",ver)) == false) in nbsd_dmi_add_version() 122 nbsd_dm_dict_to_dmi(prop_dictionary_t dm_dict,const int cmd) in nbsd_dm_dict_to_dmi() argument 143 prop_dictionary_get_int32(dm_dict, DM_IOCTL_OPEN, &dmi->open_count); in nbsd_dm_dict_to_dmi() 144 prop_dictionary_get_uint32(dm_dict, DM_IOCTL_EVENT, &dmi->event_nr); in nbsd_dm_dict_to_dmi() 145 prop_dictionary_get_uint32(dm_dict, DM_IOCTL_FLAGS, &dmi->flags); in nbsd_dm_dict_to_dmi() 146 prop_dictionary_get_uint32(dm_dict, DM_IOCTL_TARGET_COUNT, in nbsd_dm_dict_to_dmi() 149 if (prop_dictionary_get_uint32(dm_dict, DM_IOCTL_MINOR, &minor)) in nbsd_dm_dict_to_dmi() 155 if (prop_dictionary_get_cstring_nocopy(dm_dict, DM_IOCTL_NAME, in nbsd_dm_dict_to_dmi() 161 if (prop_dictionary_get_cstring_nocopy(dm_dict, DM_IOCTL_UUID, in nbsd_dm_dict_to_dmi() [all …]
|
| H A D | libdm-dragonfly-iface.c | 609 static int _flatten(struct dm_task *dmt, prop_dictionary_t dm_dict) in _flatten() argument 695 nbsd_dmi_add_version((*version), dm_dict); in _flatten() 708 prop_dictionary_set_uint32(dm_dict, DM_IOCTL_MINOR, dmt->minor); in _flatten() 713 prop_dictionary_set_cstring(dm_dict, DM_IOCTL_NAME, dmt->dev_name); in _flatten() 716 prop_dictionary_set_cstring(dm_dict, DM_IOCTL_UUID, dmt->uuid); in _flatten() 734 prop_dictionary_set_uint32(dm_dict, DM_IOCTL_FLAGS, flags); in _flatten() 736 prop_dictionary_set_uint32(dm_dict, DM_IOCTL_EVENT, dmt->event_nr); in _flatten() 742 prop_dictionary_set(dm_dict, DM_IOCTL_CMD_DATA, cmd_array); in _flatten()
|
| H A D | libdm-nbsd-iface.c | 653 static int _flatten(struct dm_task *dmt, prop_dictionary_t dm_dict) in _flatten() argument 735 nbsd_dmi_add_version((*version), dm_dict); in _flatten() 748 prop_dictionary_set_uint32(dm_dict, DM_IOCTL_MINOR, dmt->minor); in _flatten() 753 prop_dictionary_set_cstring(dm_dict, DM_IOCTL_NAME, dmt->dev_name); in _flatten() 756 prop_dictionary_set_cstring(dm_dict, DM_IOCTL_UUID, dmt->uuid); in _flatten() 774 prop_dictionary_set_uint32(dm_dict, DM_IOCTL_FLAGS, flags); in _flatten() 776 prop_dictionary_set_uint32(dm_dict, DM_IOCTL_EVENT, dmt->event_nr); in _flatten() 782 prop_dictionary_set(dm_dict, DM_IOCTL_CMD_DATA, cmd_array); in _flatten()
|