Home
last modified time | relevance | path

Searched +full:uuid +full:- +full:dev (Results 1 – 25 of 146) sorted by relevance

123456

/freebsd/libexec/rc/rc.d/
H A Dhostid45 uuid=$1
46 # Generate hostid based on hostuuid - take first four bytes from md5(uuid).
47 id=`echo -n $uuid | /sbin/md5`
52 startmsg "Setting hostuuid: ${uuid}."
53 ${SYSCTL} kern.hostuuid="${uuid}" >/dev/null
55 ${SYSCTL} kern.hostid=${id} >/dev/null
60 uuid=$1
62 x="[0-9a-f]"
66 # accepting the UUID.
67 case "${uuid}" in
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dwps_hostapd.c3 * Copyright (c) 2008-2016, Jouni Malinen <j@w1.fi>
13 #include "utils/uuid.h"
60 for (j = 0; j < iface->num_bss; j++) { in wps_for_each()
61 struct hostapd_data *hapd = iface->bss[j]; in wps_for_each()
64 if (hapd != data->calling_hapd && in wps_for_each()
65 (hapd->conf->wps_independent || in wps_for_each()
66 data->calling_hapd->conf->wps_independent)) in wps_for_each()
69 ret = data->func(hapd, data->ctx); in wps_for_each()
82 struct hostapd_iface *iface = hapd->iface; in hostapd_wps_for_each()
87 if (iface->interfaces == NULL || in hostapd_wps_for_each()
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_acpi.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
37 #include <contrib/dev/acpica/include/acpi.h>
38 #include <dev/acpica/acpivar.h>
74 acpi_check_dsm(ACPI_HANDLE handle, const char *uuid, int rev, uint64_t funcs) in acpi_check_dsm() argument
83 * than function 0 for the specified UUID and Revision ID. If set to in acpi_check_dsm()
85 * specified UUID and Revision ID. in acpi_check_dsm()
89 return ((acpi_DSMQuery(handle, uuid, rev) & funcs) == funcs); in acpi_check_dsm()
93 acpi_evaluate_dsm_typed(ACPI_HANDLE handle, const char *uuid, int rev, in acpi_evaluate_dsm_typed() argument
98 return (ACPI_SUCCESS(acpi_EvaluateDSMTyped(handle, uuid, rev, func, in acpi_evaluate_dsm_typed()
[all …]
/freebsd/contrib/wpa/wpa_supplicant/
H A Dwps_supplicant.c3 * Copyright (c) 2008-2014, Jouni Malinen <j@w1.fi>
13 #include "uuid.h"
56 os_free(wpa_s->wps_ap); in wpas_wps_clear_ap_info()
57 wpa_s->wps_ap = NULL; in wpas_wps_clear_ap_info()
58 wpa_s->num_wps_ap = 0; in wpas_wps_clear_ap_info()
59 wpa_s->wps_ap_iter = 0; in wpas_wps_clear_ap_info()
87 if (bss->beacon_newer) in wpas_wps_get_wps_ie()
99 if (!wpa_s->wps_success && in wpas_wps_eapol_cb()
100 wpa_s->current_ssid && in wpas_wps_eapol_cb()
101 eap_is_wps_pin_enrollee(&wpa_s->current_ssid->eap)) { in wpas_wps_eapol_cb()
[all …]
/freebsd/sys/arm64/coresight/
H A Dcoresight_acpi.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
8 * Technology) under DARPA contract HR0011-18-C-0016 ("ECATS"), as part of the
41 #include <sys/uuid.h>
44 #include <contrib/dev/acpica/include/acpi.h>
45 #include <dev/acpica/acpivar.h>
52 static const struct uuid acpi_graph_uuid = {
57 static const struct uuid coresight_graph_uuid = {
69 if (graph->Package.Count < 2) in cs_acpi_validate_dsd_graph()
72 rev = &graph->Package.Elements[0]; in cs_acpi_validate_dsd_graph()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Ddevname2devid.c1 // SPDX-License-Identifier: CDDL-1.0
10 * or https://opensource.org/licenses/CDDL-1.0.
46 #define DEV_BYID_PATH "/dev/disk/by-id/"
49 udev_device_get_devid(struct udev_device *dev, char *bufptr, size_t buflen) in udev_device_get_devid() argument
55 /* The bus based by-id path is preferred */ in udev_device_get_devid()
56 bus = udev_device_get_property_value(dev, "ID_BUS"); in udev_device_get_devid()
62 * For multipath nodes use the persistent uuid based identifier in udev_device_get_devid()
64 * Example: 'dm-uuid-mpath-35000c5006304de3f' in udev_device_get_devid()
66 dm_uuid = udev_device_get_property_value(dev, "DM_UUID"); in udev_device_get_devid()
68 (void) snprintf(bufptr, buflen, "dm-uuid-%s", dm_uuid); in udev_device_get_devid()
[all …]
/freebsd/usr.sbin/efitable/
H A Defitable.c1 /*-
39 #include <uuid.h>
52 struct uuid uuid; member
57 .uuid = EFI_TABLE_ESRT },
59 .uuid = EFI_PROPERTIES_TABLE }
70 int efi_fd, ch, rc = 1, efi_idx = -1; in main()
75 { "uuid", required_argument, NULL, 'u' }, in main()
84 while ((ch = getopt_long(argc, argv, "u:t:", longopts, NULL)) != -1) { in main()
89 struct uuid uuid; in main() local
94 uuid_from_string(uuid_str, &uuid, &status); in main()
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dwps_registrar.c2 * Wi-Fi Protected Setup - Registrar
3 * Copyright (c) 2008-2016, Jouni Malinen <j@w1.fi>
14 #include "utils/uuid.h"
45 dl_list_del(&token->list); in wps_remove_nfc_pw_token()
55 if (pw_id == 0 || pw_id == token->pw_id) in wps_free_nfc_pw_tokens()
66 if (pw_id == token->pw_id) in wps_get_nfc_pw_token()
81 u8 uuid[WPS_UUID_LEN]; member
95 bin_clear_free(pin->pin, pin->pin_len); in wps_free_pin()
102 dl_list_del(&pin->list); in wps_remove_pin()
129 pbc = pbc->next; in wps_free_pbc_sessions()
[all …]
H A Dwps.c2 * Wi-Fi Protected Setup
3 * Copyright (c) 2007-2009, Jouni Malinen <j@w1.fi>
30 * wps_init - Initialize WPS Registration protocol data
44 data->wps = cfg->wps; in wps_init()
45 data->registrar = cfg->registrar; in wps_init()
46 if (cfg->registrar) { in wps_init()
47 os_memcpy(data->uuid_r, cfg->wps->uuid, WPS_UUID_LEN); in wps_init()
49 os_memcpy(data->mac_addr_e, cfg->wps->dev.mac_addr, ETH_ALEN); in wps_init()
50 os_memcpy(data->uuid_e, cfg->wps->uuid, WPS_UUID_LEN); in wps_init()
52 if (cfg->pin) { in wps_init()
[all …]
H A Dwps.h2 * Wi-Fi Protected Setup
3 * Copyright (c) 2007-2016, Jouni Malinen <j@w1.fi>
16 * enum wsc_op_code - EAP-WSC OP-Code values
34 * struct wps_credential - WPS Credential
71 * struct wps_device_data - WPS Device Data
73 * @device_name: Device Name (0..32 octets encoded in UTF-8)
74 * @manufacturer: Manufacturer (0..64 octets encoded in UTF-8)
75 * @model_name: Model Name (0..32 octets encoded in UTF-8)
76 * @model_number: Model Number (0..32 octets encoded in UTF-8)
77 * @serial_number: Serial Number (0..32 octets encoded in UTF-8)
[all …]
H A Dwps_common.c2 * Wi-Fi Protected Setup - common functionality
3 * Copyright (c) 2008-2012, Jouni Malinen <j@w1.fi>
45 iter = (res_len + SHA256_MAC_LEN - 1) / SHA256_MAC_LEN; in wps_kdf()
55 left -= SHA256_MAC_LEN; in wps_kdf()
70 if (wps->dh_privkey == NULL) { in wps_derive_keys()
72 return -1; in wps_derive_keys()
75 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r; in wps_derive_keys()
78 return -1; in wps_derive_keys()
81 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); in wps_derive_keys()
83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); in wps_derive_keys()
[all …]
H A Dwps_upnp_web.c2 * UPnP WPS Device - Web connections
3 * Copyright (c) 2000-2003 Intel Corporation
4 * Copyright (c) 2006-2007 Sony Corporation
5 * Copyright (c) 2008-2009 Atheros Communications
15 #include "uuid.h"
34 "urn:schemas-wifialliance-org:service:WFAWLANConfig:1";
47 "<scpd xmlns=\"urn:schemas-upnp-org:service-1-0\">\n"
154 "<root xmlns=\"urn:schemas-upnp-org:device-1-0\">\n"
160 "<deviceType>urn:schemas-wifialliance-org:device:WFADevice:1"
166 "<serviceType>urn:schemas-wifialliance-org:service:WFAWLANConfig:1"
[all …]
/freebsd/sys/dev/nvdimm/
H A Dnvdimm_var.h1 /*-
53 struct uuid uuid; member
65 struct uuid type_guid;
66 struct uuid address_abstraction_guid;
127 struct nvdimm_spa_dev *dev; member
140 struct nvdimm_spa_dev dev; member
147 struct nvdimm_spa_dev dev; member
168 enum SPA_mapping_type nvdimm_spa_type_from_uuid(struct uuid *);
174 int nvdimm_spa_dev_init(struct nvdimm_spa_dev *dev, const char *name, int unit);
175 void nvdimm_spa_dev_fini(struct nvdimm_spa_dev *dev);
H A Dnvdimm_spa.c1 /*-
52 #include <sys/uuid.h>
60 #include <contrib/dev/acpica/include/acpi.h>
61 #include <contrib/dev/acpica/include/accommon.h>
62 #include <contrib/dev/acpica/include/acuuid.h>
63 #include <dev/acpica/acpivar.h>
64 #include <dev/nvdimm/nvdimm_var.h>
85 struct uuid u_id;
144 nvdimm_spa_type_from_uuid(struct uuid *uuid) in nvdimm_spa_type_from_uuid() argument
149 if (uuidcmp(uuid, &nvdimm_SPA_uuid_list[j].u_id) != 0) in nvdimm_spa_type_from_uuid()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/
H A Dauto_replace_001_pos.ksh1 #!/bin/ksh -p
2 # SPDX-License-Identifier: CDDL-1.0
11 # or https://opensource.org/licenses/CDDL-1.0.
32 # Testing Fault Management Agent ZED Logic - Automated Auto-Replace Test.
37 # 2. Create a pool and set autoreplace=on (auto-replace is opt-in)
41 # 6. Re-online the wiped scsi_debug disk
43 # 8. Verify that the scsi_debug disk was re-partitioned
45 # Creates a raidz1 zpool using persistent /dev/disk/by-vdev path names
46 # (ie not /dev/sdc)
48 # Auto-replace is opt in, and matches by phys_path.
[all …]
H A Dauto_replace_002_pos.ksh1 #!/bin/ksh -p
2 # SPDX-License-Identifier: CDDL-1.0
11 # or https://opensource.org/licenses/CDDL-1.0.
33 # Testing Fault Management Agent ZED Logic - Automated Auto-Replace Test.
34 # Verifys that auto-replace works with by-id paths.
39 # 2. Create a pool and set autoreplace=on (auto-replace is opt-in)
43 # 6. Re-online the wiped scsi_debug disk with a new serial number
45 # 8. Verify that the scsi_debug disk was re-partitioned
47 # Creates a raidz1 zpool using persistent /dev/disk/by-id path names
49 # Auto-replace is opt in, and matches by phys_path.
[all …]
/freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_import_os.c1 // SPDX-License-Identifier: CDDL-1.0
10 * or https://opensource.org/licenses/CDDL-1.0.
41 * pool guid -> toplevel vdev guid -> label txg
79 #define DEV_BYID_PATH "/dev/disk/by-id/"
85 * hpet - High Precision Event Timer
86 * watchdog[N] - Watchdog must be closed in a special way.
89 should_skip_dev(const char *dev) in should_skip_dev() argument
91 return ((strcmp(dev, "watchdog") == 0) || in should_skip_dev()
92 (strncmp(dev, "watchdog", 8) == 0 && isdigit(dev[8])) || in should_skip_dev()
93 (strcmp(dev, "hpet") == 0)); in should_skip_dev()
[all …]
H A Dzutil_device_path_os.c1 // SPDX-License-Identifier: CDDL-1.0
10 * or https://opensource.org/licenses/CDDL-1.0.
55 return (-1); in zfs_append_partition()
57 (void) strcat(path, "-part1"); in zfs_append_partition()
61 return (-1); in zfs_append_partition()
63 if (isdigit(path[len-1])) { in zfs_append_partition()
77 * forms: "-partX", "pX", or "X", where X is a string of digits. The second
80 * expression "^([hsv]|xv)d[a-z]+", i.e. a scsi, ide, virtio or xen disk.
92 if ((part = strstr(tmp, "-part")) && part != tmp) { in zfs_strip_partition()
95 part > tmp + 1 && isdigit(*(part-1))) { in zfs_strip_partition()
[all …]
/freebsd/share/man/man4/
H A Defidev.41 .\"-
2 .\" SPDX-License-Identifier: BSD-2-Clause
33 .Nd user-mode access to UEFI runtime services
37 .Bd -ragged -offset indent
44 .Bd -literal -offset indent
57 device provides user-mode access to UEFI runtime services.
59 also includes a driver to provide a time-of-day clock using the UEFI
62 If the RTC is not available, it will not be registered as a time-of-day clock
70 .Bl -tag -width indent
73 .Va uuid
[all …]
/freebsd/sys/contrib/dev/acpica/components/utilities/
H A Dutuuid.c3 * Module Name: utuuid -- UUID support functions
11 * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
108 * any of its subsidiaries will export/re-export any technical data, process,
130 * 3. Neither the names of the above-listed copyright holders nor the names
152 #include <contrib/dev/acpica/include/acpi.h>
153 #include <contrib/dev/acpica/include/accommon.h>
161 * UUID support functions.
[all …]
/freebsd/sys/contrib/openzfs/lib/libefi/
H A Drdwr_efi.c1 // SPDX-License-Identifier: CDDL-1.0
10 * or https://opensource.org/licenses/CDDL-1.0.
34 #include <uuid/uuid.h>
49 struct uuid uuid; member
147 * Return a 32-bit CRC of the contents of the buffer. Pre-and-post
167 return (-1); in read_disk_info()
170 return (-1); in read_disk_info()
207 * to parse it out of the /dev/<disk><partition> block device name. in efi_get_info()
209 * populates /dev/ so it may be trusted. The tricky bit here is in efi_get_info()
219 if ((strncmp(dev_path, "/dev/sd", 7) == 0)) { in efi_get_info()
[all …]
/freebsd/stand/common/
H A Dpart.c1 /*-
40 #include <uuid.h>
113 uuid_letoh(uuid_t *uuid) in uuid_letoh() argument
116 uuid->time_low = le32toh(uuid->time_low); in uuid_letoh()
117 uuid->time_mid = le16toh(uuid->time_mid); in uuid_letoh()
118 uuid->time_hi_and_version = le16toh(uuid->time_hi_and_version); in uuid_letoh()
152 if (memcmp(hdr->hdr_sig, GPT_HDR_SIG, sizeof(hdr->hdr_sig)) != 0) { in gpt_checkhdr()
156 sz = le32toh(hdr->hdr_size); in gpt_checkhdr()
161 crc = le32toh(hdr->hdr_crc_self); in gpt_checkhdr()
162 hdr->hdr_crc_self = crc32(0, Z_NULL, 0); in gpt_checkhdr()
[all …]
/freebsd/usr.sbin/adduser/
H A Dadduser.sh3 # SPDX-License-Identifier: BSD-2-Clause
5 # Copyright (c) 2002-2004 Michael Telahun Makonnen. All rights reserved.
35 if [ -z "$quietflag" ]; then
44 if [ -z "$quietflag" ]; then
58 if [ -z "$_uid" ]; then
59 _nextuid="$(${PWCMD} usernext | cut -f1 -d:)"
62 if ! ${PWCMD} usershow $_uid > /dev/null 2>&1; then
78 echo " -C save to the configuration file only"
79 echo " -D do not attempt to create the home directory"
80 echo " -E disable this account after creation"
[all …]
/freebsd/sys/contrib/dev/acpica/components/resources/
H A Drsxface.c3 * Module Name: rsxface - Public interfaces to the resource manager
11 * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
108 * any of its subsidiaries will export/re-export any technical data, process,
130 * 3. Neither the names of the above-listed copyright holders nor the names
154 #include <contrib/dev/acpica/include/acpi.h>
155 #include <contrib/dev/acpica/include/accommon.h>
156 #include <contrib/dev/acpica/include/acresrc.h>
[all …]
/freebsd/usr.sbin/bluetooth/bthidcontrol/
H A Dsdp.c1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
38 #include <dev/usb/usb.h>
39 #include <dev/usb/usbhid.h>
101 return (((e) == 0)? 0 : -1); \
120 int32_t i, control_psm = -1, interrupt_psm = - in hid_sdp_query()
253 int32_t type, len, uuid, psm; hid_sdp_parse_protocol_descriptor_list() local
[all...]

123456