Home
last modified time | relevance | path

Searched refs:uuid (Results 1 – 25 of 209) sorted by relevance

123456789

/dragonfly/sys/kern/
H A Dkern_uuid.c126 read_random(&uuid.seq, sizeof(uuid.seq), 1); in kern_uuidgen()
140 uuid.seq = htobe16(uuid.seq | 0x8000); in kern_uuidgen()
147 store[n] = *(struct uuid *)&uuid; in kern_uuidgen()
199 printf_uuid(struct uuid *uuid) in printf_uuid() argument
263 kuuid_is_nil(const struct uuid *uuid) in kuuid_is_nil() argument
275 kuuid_is_ccd(const struct uuid *uuid) in kuuid_is_ccd() argument
282 kuuid_is_vinum(const struct uuid *uuid) in kuuid_is_vinum() argument
306 le_uuid_enc(void *buf, struct uuid const *uuid) in le_uuid_enc() argument
322 le_uuid_dec(void const *buf, struct uuid *uuid) in le_uuid_dec() argument
370 parse_uuid(const char *str, struct uuid *uuid) in parse_uuid() argument
[all …]
/dragonfly/lib/libc/uuid/
H A Duuid_stream.c60 le32enc(p, uuid->time_low); in uuid_enc_le()
64 p[9] = uuid->clock_seq_low; in uuid_enc_le()
66 p[10 + i] = uuid->node[i]; in uuid_enc_le()
75 uuid->time_low = le32dec(p); in uuid_dec_le()
79 uuid->clock_seq_low = p[9]; in uuid_dec_le()
81 uuid->node[i] = p[10 + i]; in uuid_dec_le()
90 be32enc(p, uuid->time_low); in uuid_enc_be()
94 p[9] = uuid->clock_seq_low; in uuid_enc_be()
96 p[10 + i] = uuid->node[i]; in uuid_enc_be()
109 uuid->clock_seq_low = p[9]; in uuid_dec_be()
[all …]
H A DMakefile.inc13 MAN+= uuid.3
16 uuid.3 uuid_compare.3 \
17 uuid.3 uuid_create.3 \
19 uuid.3 uuid_dec_be.3 \
20 uuid.3 uuid_dec_le.3 \
21 uuid.3 uuid_enc_be.3 \
22 uuid.3 uuid_enc_le.3 \
23 uuid.3 uuid_equal.3 \
25 uuid.3 uuid_hash.3 \
26 uuid.3 uuid_is_nil.3 \
[all …]
H A Duuid_name_lookup.c54 struct uuid uuid; member
73 return(uuid_compare(&n1->uuid, &n2->uuid, NULL)); in uuid_urbcmp()
89 uuid_rbuuidcmp(const struct uuid *uuid, struct uuid_rbnode *node) in uuid_rbuuidcmp() argument
91 return(uuid_compare(uuid, &node->uuid, NULL)); in uuid_rbuuidcmp()
97 uuid_rbuuidcmp, const struct uuid *) in RB_GENERATE_STATIC()
152 *u = node->uuid; in uuid_name_lookup()
194 char *uuid; in uuid_loadcache() local
205 uuid = strtok_r(line, " \t\r", &last); in uuid_loadcache()
206 if (uuid == NULL) in uuid_loadcache()
218 uuid_from_string(uuid, &node->uuid, &status); in uuid_loadcache()
/dragonfly/sys/sys/
H A Duuid.h49 struct uuid { struct
60 typedef struct uuid uuid_t; argument
66 int kuuid_compare(const struct uuid *, const struct uuid *);
67 int kuuid_is_nil(const struct uuid *);
72 int printf_uuid(struct uuid *);
76 void be_uuid_dec(void const *buf, struct uuid *uuid);
77 void be_uuid_enc(void *buf, struct uuid const *uuid);
78 void le_uuid_dec(void const *buf, struct uuid *uuid);
79 void le_uuid_enc(void *buf, struct uuid const *uuid);
84 typedef struct uuid uuid_t;
[all …]
/dragonfly/contrib/lvm2/dist/lib/uuid/
H A Duuid.c40 void uuid_from_num(char *uuid, uint32_t num) in uuid_from_num() argument
45 uuid[i - 1] = _c[num % (sizeof(_c) - 1)]; in uuid_from_num()
87 if (lvid->id[1].uuid[i] != '0') in lvid_in_restricted_range()
91 if (!isdigit(lvid->id[1].uuid[i])) in lvid_in_restricted_range()
101 size_t len = sizeof(id->uuid); in id_create()
103 memset(id->uuid, 0, len); in id_create()
104 if (!read_urandom(&id->uuid, len)) { in id_create()
113 id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)]; in id_create()
143 if (!_inverse_c[id->uuid[i]]) { in id_valid()
153 return !memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid)); in id_equal()
[all …]
/dragonfly/contrib/lvm2/dist/daemons/cmirrord/
H A Dfunctions.c65 char uuid[DM_UUID_LEN]; member
167 if (!strcmp(lc->uuid, uuid) && in get_log()
187 if (!strcmp(lc->uuid, uuid) && in get_pending_log()
452 strncpy(lc->uuid, uuid, DM_UUID_LEN); in _clog_ctr()
604 SHORT_UUID(rq->uuid)); in clog_ctr()
738 SHORT_UUID(lc->uuid)); in clog_resume()
743 SHORT_UUID(lc->uuid)); in clog_resume()
754 SHORT_UUID(lc->uuid)); in clog_resume()
774 SHORT_UUID(lc->uuid)); in clog_resume()
781 SHORT_UUID(lc->uuid)); in clog_resume()
[all …]
H A Dcluster.c98 char uuid[CPG_MAX_NAME_LENGTH]; member
295 SHORT_UUID(rq->u_rq.uuid), in handle_cluster_response()
305 SHORT_UUID(orig_rq->u_rq.uuid), in handle_cluster_response()
315 SHORT_UUID(rq->u_rq.uuid), in handle_cluster_response()
586 strncpy(rq->u_rq.uuid, cp->uuid, CPG_MAX_NAME_LENGTH); in export_checkpoint()
814 SHORT_UUID(rq->u_rq.uuid)); in resend_requests()
920 SHORT_UUID(rq->u_rq.uuid), in flush_startup_list()
969 SHORT_UUID(rq->u_rq.uuid)); in cpg_message_callback()
986 SHORT_UUID(rq->u_rq.uuid)); in cpg_message_callback()
1123 SHORT_UUID(rq->u_rq.uuid), in cpg_message_callback()
[all …]
/dragonfly/sys/dev/disk/dm/
H A Ddm_ioctl.c197 uuid = NULL; in dm_dev_create_ioctl()
281 uuid = NULL; in dm_dev_rename_ioctl()
339 uuid = NULL; in dm_dev_remove_ioctl()
392 uuid = NULL; in dm_dev_status_ioctl()
447 uuid = NULL; in dm_dev_suspend_ioctl()
487 uuid = NULL; in dm_dev_resume_ioctl()
545 uuid = NULL; in dm_table_clear_ioctl()
592 uuid = NULL; in dm_table_deps_ioctl()
693 uuid = NULL; in dm_table_load_ioctl()
886 uuid = NULL; in dm_table_status_ioctl()
[all …]
H A Ddm_dev.c92 if (uuid != NULL) { in _dm_dev_lookup()
93 if ((dmv = dm_dev_lookup_uuid(uuid))) in _dm_dev_lookup()
111 dmv = _dm_dev_lookup(name, uuid, minor); in dm_dev_lookup()
162 if (strcmp(dm_dev_uuid, dmv->uuid) == 0) in dm_dev_lookup_uuid()
187 if (memcmp(dev->uuid, dummy_uuid, DM_UUID_LEN)) in dm_dev_insert()
188 dmv = dm_dev_lookup_uuid(dev->uuid); in dm_dev_insert()
214 dmv = _dm_dev_lookup(name, uuid, minor);
231 if ((dmv = dm_dev_alloc(name, uuid)) == NULL) in dm_dev_create()
351 dm_dev_alloc(const char *name, const char*uuid) in dm_dev_alloc() argument
367 if (uuid) in dm_dev_alloc()
[all …]
/dragonfly/contrib/wpa_supplicant/src/utils/
H A Duuid.c65 int is_nil_uuid(const u8 *uuid) in is_nil_uuid() argument
69 if (uuid[i]) in is_nil_uuid()
75 int uuid_random(u8 *uuid) in uuid_random() argument
83 if (os_get_random(uuid, UUID_LEN) < 0 || in uuid_random()
84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0) in uuid_random()
87 os_memcpy(uuid, hash, UUID_LEN); in uuid_random()
90 uuid[6] = (4 << 4) | (uuid[6] & 0x0f); in uuid_random()
93 uuid[8] = 0x80 | (uuid[8] & 0x3f); in uuid_random()
/dragonfly/contrib/lvm2/dist/libdm/
H A Dlibdm-deptree.c322 node->uuid = uuid; in _create_dm_tree_node()
341 if (uuid && *uuid && in _create_dm_tree_node()
384 *uuid = ""; in _deps()
426 *uuid = ""; in _deps()
737 const char *uuid; in _children_suspended() local
790 if (!uuid || !*uuid) in dm_tree_find_node_by_uuid()
1016 const char *uuid; in dm_tree_deactivate_children() local
1077 const char *uuid; in dm_tree_suspend_children() local
1359 if (!seg->uuid) in _mirror_emit_segment_line()
1932 if ((!dev_name || !*dev_name) && (!uuid || !*uuid)) { in dm_tree_node_add_target_area()
[all …]
/dragonfly/sbin/hammer/
H A Duuid.c39 void hammer_uuid_create(hammer_uuid_t *uuid) in hammer_uuid_create() argument
41 uuid_create(uuid, NULL); in hammer_uuid_create()
44 int hammer_uuid_from_string(const char *str, hammer_uuid_t *uuid) in hammer_uuid_from_string() argument
48 uuid_from_string(str, uuid, &status); in hammer_uuid_from_string()
55 int hammer_uuid_to_string(const hammer_uuid_t *uuid, char **str) in hammer_uuid_to_string() argument
59 uuid_to_string(uuid, str, &status); in hammer_uuid_to_string()
66 int hammer_uuid_name_lookup(hammer_uuid_t *uuid, const char *str) in hammer_uuid_name_lookup() argument
70 uuid_name_lookup(uuid, str, &status); in hammer_uuid_name_lookup()
/dragonfly/contrib/dhcpcd/src/
H A Dduid.c63 duid_machineuuid(char *uuid, size_t uuid_len) in duid_machineuuid() argument
71 r = sysctl(mib, sizeof(mib)/sizeof(mib[0]), uuid, &len, NULL, 0); in duid_machineuuid()
75 r = sysctl(mib, sizeof(mib)/sizeof(mib[0]), uuid, &len, NULL, 0); in duid_machineuuid()
77 r = sysctlbyname("machdep.dmi.system-uuid", uuid, &len, NULL, 0); in duid_machineuuid()
84 if (fgets(uuid, (int)uuid_len, fp) == NULL) { in duid_machineuuid()
88 len = strlen(uuid) + 1; in duid_machineuuid()
92 UNUSED(uuid); in duid_machineuuid()
106 char uuid[UUID_LEN + 1]; in duid_make_uuid() local
109 if (duid_machineuuid(uuid, sizeof(uuid)) != sizeof(uuid)) in duid_make_uuid()
113 if (strcmp("00000000-0000-0000-0000-000000000000", uuid) == 0) in duid_make_uuid()
[all …]
/dragonfly/sbin/gpt/
H A Dgpt.c239 uuid->clock_seq_low = p[9]; in le_uuid_dec()
241 uuid->node[i] = p[10 + i]; in le_uuid_dec()
280 *uuid = efi; in parse_uuid()
287 *uuid = hammer2; in parse_uuid()
292 *uuid = hammer; in parse_uuid()
297 *uuid = hfs; in parse_uuid()
304 *uuid = lnx; in parse_uuid()
311 *uuid = sw; in parse_uuid()
318 *uuid = ufs; in parse_uuid()
325 *uuid = win; in parse_uuid()
[all …]
/dragonfly/usr.sbin/sdpd/
H A Dssr.c54 server_get_service_search_pattern(uint8_t const **buf, uint8_t const *end, uint128_t *uuid) in server_get_service_search_pattern() argument
108 memcpy(uuid, &uuid_base, sizeof(*uuid)); in server_get_service_search_pattern()
109 uuid->b[2] = *req++; in server_get_service_search_pattern()
110 uuid->b[3] = *req++; in server_get_service_search_pattern()
118 memcpy(uuid, &uuid_base, sizeof(*uuid)); in server_get_service_search_pattern()
119 uuid->b[0] = *req++; in server_get_service_search_pattern()
120 uuid->b[1] = *req++; in server_get_service_search_pattern()
121 uuid->b[2] = *req++; in server_get_service_search_pattern()
122 uuid->b[3] = *req++; in server_get_service_search_pattern()
130 memcpy(uuid, req, 16); in server_get_service_search_pattern()
[all …]
H A Dprovider.c210 provider_match_uuid(provider_p provider, uint128_t *uuid, int ucount) in provider_match_uuid() argument
215 max = provider->profile->usize / sizeof(provider->profile->uuid[0]); in provider_match_uuid()
217 for (; ucount-- > 0 ; uuid++) { in provider_match_uuid()
218 if (memcmp(uuid, &uuid_public_browse_group, sizeof(*uuid)) == 0) in provider_match_uuid()
226 puuid.b[2] = provider->profile->uuid[num] >> 8; in provider_match_uuid()
227 puuid.b[3] = provider->profile->uuid[num]; in provider_match_uuid()
229 if (memcmp(uuid, &puuid, sizeof(*uuid)) == 0) in provider_match_uuid()
/dragonfly/contrib/lvm2/dist/lib/display/
H A Ddisplay.c312 char uuid[64] __attribute((aligned(8))); in pvdisplay_colons() local
317 if (!id_write_format(&pv->id, uuid, sizeof(uuid))) { in pvdisplay_colons()
331 pv->pe_alloc_count, *uuid ? uuid : "none"); in pvdisplay_colons()
377 if (!id_write_format(&pv->id, uuid, sizeof(uuid))) { in pvdisplay_full()
427 log_print("PV UUID %s", *uuid ? uuid : "none"); in pvdisplay_full()
443 if (!id_write_format(&pv->id, uuid, sizeof(uuid))) in pvdisplay_short()
448 log_print("PV UUID %s", *uuid ? uuid : "none"); in pvdisplay_short()
489 if (!id_write_format(&lv->lvid.id[1], uuid, sizeof(uuid))) in lvdisplay_full()
727 if (!id_write_format(&vg->id, uuid, sizeof(uuid))) { in vgdisplay_full()
760 if (!id_write_format(&vg->id, uuid, sizeof(uuid))) { in vgdisplay_colons()
[all …]
/dragonfly/contrib/lvm2/dist/daemons/dmeventd/
H A Dlibdevmapper-event.c42 char *uuid; member
54 if (dmevh->uuid) in _dm_event_handler_clear_dev_info()
55 dm_free(dmevh->uuid); in _dm_event_handler_clear_dev_info()
112 if (!uuid) in dm_event_handler_set_uuid()
117 dmevh->uuid = dm_strdup(uuid); in dm_event_handler_set_uuid()
166 return dmevh->uuid; in dm_event_handler_get_uuid()
520 if (dmevh->uuid) in _get_device_info()
584 const char *uuid; in dm_event_register_handler() local
614 const char *uuid; in dm_event_unregister_handler() local
686 const char *uuid = NULL; in dm_event_get_registered_device() local
[all …]
/dragonfly/sbin/hammer2/
H A Dprint_inode.c65 uuid_t uuid; in print_inode() local
90 uuid = meta->uid; in print_inode()
91 printf("uid = %s\n", hammer2_uuid_to_str(&uuid, &str)); in print_inode()
92 uuid = meta->gid; in print_inode()
93 printf("gid = %s\n", hammer2_uuid_to_str(&uuid, &str)); in print_inode()
113 uuid = meta->pfs_clid; in print_inode()
114 printf("pfs_clid = %s\n", hammer2_uuid_to_str(&uuid, &str)); in print_inode()
115 uuid = meta->pfs_fsid; in print_inode()
116 printf("pfs_fsid = %s\n", hammer2_uuid_to_str(&uuid, &str)); in print_inode()
/dragonfly/contrib/wpa_supplicant/src/wps/
H A Dwps_er.c44 ev->uuid = sta->uuid; in wps_er_sta_event()
67 os_memcmp(uuid, sta->uuid, WPS_UUID_LEN) == 0)) in wps_er_sta_get()
137 evap->uuid = ap->uuid; in wps_er_ap_event()
664 os_memcpy(ap->uuid, uuid, WPS_UUID_LEN); in wps_er_ap_add()
1401 data.set_sel_reg.uuid = ap->uuid; in wps_er_http_set_sel_reg_cb()
1408 data.set_sel_reg.uuid = ap->uuid; in wps_er_http_set_sel_reg_cb()
1550 data.set_sel_reg.uuid = ap->uuid; in wps_er_set_sel_reg()
1583 uuid = ap->uuid; in wps_er_pbc()
1620 data.ap_settings.uuid = ap->uuid; in wps_er_ap_settings_cb()
1926 uuid = ap->uuid; in wps_er_learn()
[all …]
/dragonfly/sys/platform/pc64/include/
H A Defi.h43 struct uuid;
46 int efi_get_table(struct uuid *uuid, void **ptr);
52 int efi_var_get(uint16_t *name, struct uuid *vendor, uint32_t *attrib,
54 int efi_var_nextname(size_t *namesize, uint16_t *name, struct uuid *vendor);
55 int efi_var_set(uint16_t *name, struct uuid *vendor, uint32_t attrib,
/dragonfly/contrib/lvm2/dist/lib/format_pool/
H A Ddisk_rep.c63 char uuid[ID_LEN + 7] __attribute((aligned(8))); in _add_pl_to_list() local
65 id_write_format(&pl->pv_uuid, uuid, ID_LEN + 7); in _add_pl_to_list()
69 "%s", uuid, in _add_pl_to_list()
74 uuid, dev_subsystem_name(data->dev), in _add_pl_to_list()
89 char uuid[ID_LEN + 7] __attribute((aligned(8))); in read_pool_label() local
95 id_write_format(&pvid, uuid, ID_LEN + 7); in read_pool_label()
99 id_write_format(&vgid, uuid, ID_LEN + 7); in read_pool_label()
215 memset(uuid, 0, ID_LEN); in get_pool_uuid()
216 strcat(uuid, "POOL0000000000"); in get_pool_uuid()
226 uuid[i] = _calc_char((unsigned) (spid & shifter)); in get_pool_uuid()
[all …]
/dragonfly/contrib/lvm2/dist/daemons/clvmd/
H A Dlvm-functions.c684 char uuid[65]; in get_initial_state() local
702 memcpy(&uuid[0], &vg[0], 6); in get_initial_state()
703 memcpy(&uuid[6], &vg[7], 4); in get_initial_state()
704 memcpy(&uuid[10], &vg[12], 4); in get_initial_state()
705 memcpy(&uuid[14], &vg[17], 4); in get_initial_state()
706 memcpy(&uuid[18], &vg[22], 4); in get_initial_state()
707 memcpy(&uuid[22], &vg[27], 4); in get_initial_state()
708 memcpy(&uuid[26], &vg[32], 6); in get_initial_state()
709 memcpy(&uuid[32], &lv[0], 6); in get_initial_state()
710 memcpy(&uuid[38], &lv[7], 4); in get_initial_state()
[all …]
/dragonfly/usr.bin/sdpquery/
H A Dsearch.c153 int128_t uuid; in print_service_class_id_list() local
155 SDP_GET_UUID128(&uuid, start); in print_service_class_id_list()
157 ntohl(*(uint32_t *)&uuid.b[0]), in print_service_class_id_list()
158 ntohs(*(uint16_t *)&uuid.b[4]), in print_service_class_id_list()
159 ntohs(*(uint16_t *)&uuid.b[6]), in print_service_class_id_list()
160 ntohs(*(uint16_t *)&uuid.b[8]), in print_service_class_id_list()
161 ntohs(*(uint16_t *)&uuid.b[10]), in print_service_class_id_list()
489 int128_t uuid; in print_bluetooth_profile_descriptor_list() local
491 SDP_GET_UUID128(&uuid, start); in print_bluetooth_profile_descriptor_list()
493 ntohl(*(uint32_t *)&uuid.b[0]), in print_bluetooth_profile_descriptor_list()
[all …]

123456789