iPXE
Functions
string.h File Reference

String functions. More...

#include <stddef.h>
#include <bits/string.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
void * generic_memset (void *dest, int character, size_t len) __nonnull
 Fill memory region. More...
 
void * generic_memcpy (void *dest, const void *src, size_t len) __nonnull
 Copy memory region (forwards) More...
 
void * generic_memcpy_reverse (void *dest, const void *src, size_t len) __nonnull
 Copy memory region (backwards) More...
 
void * generic_memmove (void *dest, const void *src, size_t len) __nonnull
 Copy (possibly overlapping) memory region. More...
 
void * memset (void *dest, int character, size_t len) __nonnull
 
void * memcpy (void *dest, const void *src, size_t len) __nonnull
 
void * memmove (void *dest, const void *src, size_t len) __nonnull
 
int __pure memcmp (const void *first, const void *second, size_t len) __nonnull
 Compare memory regions. More...
 
void *__pure memchr (const void *src, int character, size_t len) __nonnull
 Find character within a memory region. More...
 
void * memswap (void *dest, void *src, size_t len) __nonnull
 Swap memory regions. More...
 
int __pure strcmp (const char *first, const char *second) __nonnull
 Compare strings. More...
 
int __pure strncmp (const char *first, const char *second, size_t max) __nonnull
 Compare strings. More...
 
size_t __pure strlen (const char *src) __nonnull
 Get length of string. More...
 
size_t __pure strnlen (const char *src, size_t max) __nonnull
 Get length of string. More...
 
char *__pure strchr (const char *src, int character) __nonnull
 Find character within a string. More...
 
char *__pure strrchr (const char *src, int character) __nonnull
 Find rightmost character within a string. More...
 
char *__pure strstr (const char *haystack, const char *needle) __nonnull
 Find substring. More...
 
char * stpcpy (char *dest, const char *src) __nonnull
 Copy string. More...
 
char * strcpy (char *dest, const char *src) __nonnull
 Copy string. More...
 
char * strncpy (char *dest, const char *src, size_t max) __nonnull
 Copy string. More...
 
char * strcat (char *dest, const char *src) __nonnull
 Concatenate string. More...
 
char *__malloc strdup (const char *src) __nonnull
 Duplicate string. More...
 
char *__malloc strndup (const char *src, size_t max) __nonnull
 Duplicate string. More...
 
char *__pure strpbrk (const char *string, const char *delim) __nonnull
 strpbrk - Find the first occurrence of a set of characters @cs: The string to be searched @ct: The characters to search for More...
 
char * strsep (char **string, const char *delim) __nonnull
 strsep - Split a string into tokens @s: The string to be searched @ct: The characters to search for More...
 
char *__pure strerror (int errno)
 Retrieve string representation of error number. More...
 

Detailed Description

String functions.

Definition in file string.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ generic_memset()

void* generic_memset ( void *  dest,
int  character,
size_t  len 
)

Fill memory region.

Parameters
destDestination region
characterFill character
lenLength
Return values
destDestination region

Definition at line 47 of file string.c.

47  {
48  uint8_t *dest_bytes = dest;
49 
50  while ( len-- )
51  *(dest_bytes++) = character;
52  return dest;
53 }
unsigned char uint8_t
Definition: stdint.h:10
if(len >=6 *4) __asm__ __volatile__("movsl" if(len >=5 *4) __asm__ __volatile__("movsl" if(len >=4 *4) __asm__ __volatile__("movsl" if(len >=3 *4) __asm__ __volatile__("movsl" if(len >=2 *4) __asm__ __volatile__("movsl" if(len >=1 *4) __asm__ __volatile__("movsl" if((len % 4) >=2) __asm__ __volatile__("movsw" if((len % 2) >=1) __asm__ __volatile__("movsb" return dest
Definition: string.h:150
uint32_t len
Length.
Definition: ena.h:14

References dest, and len.

◆ generic_memcpy()

void* generic_memcpy ( void *  dest,
const void *  src,
size_t  len 
)

Copy memory region (forwards)

Parameters
destDestination region
srcSource region
lenLength
Return values
destDestination region

Definition at line 63 of file string.c.

63  {
64  const uint8_t *src_bytes = src;
65  uint8_t *dest_bytes = dest;
66 
67  while ( len-- )
68  *(dest_bytes++) = *(src_bytes++);
69  return dest;
70 }
static const void * src
Definition: string.h:47
unsigned char uint8_t
Definition: stdint.h:10
if(len >=6 *4) __asm__ __volatile__("movsl" if(len >=5 *4) __asm__ __volatile__("movsl" if(len >=4 *4) __asm__ __volatile__("movsl" if(len >=3 *4) __asm__ __volatile__("movsl" if(len >=2 *4) __asm__ __volatile__("movsl" if(len >=1 *4) __asm__ __volatile__("movsl" if((len % 4) >=2) __asm__ __volatile__("movsw" if((len % 2) >=1) __asm__ __volatile__("movsb" return dest
Definition: string.h:150
uint32_t len
Length.
Definition: ena.h:14

References dest, len, and src.

Referenced by generic_memmove().

◆ generic_memcpy_reverse()

void* generic_memcpy_reverse ( void *  dest,
const void *  src,
size_t  len 
)

Copy memory region (backwards)

Parameters
destDestination region
srcSource region
lenLength
Return values
destDestination region

Definition at line 80 of file string.c.

80  {
81  const uint8_t *src_bytes = ( src + len );
82  uint8_t *dest_bytes = ( dest + len );
83 
84  while ( len-- )
85  *(--dest_bytes) = *(--src_bytes);
86  return dest;
87 }
static const void * src
Definition: string.h:47
unsigned char uint8_t
Definition: stdint.h:10
if(len >=6 *4) __asm__ __volatile__("movsl" if(len >=5 *4) __asm__ __volatile__("movsl" if(len >=4 *4) __asm__ __volatile__("movsl" if(len >=3 *4) __asm__ __volatile__("movsl" if(len >=2 *4) __asm__ __volatile__("movsl" if(len >=1 *4) __asm__ __volatile__("movsl" if((len % 4) >=2) __asm__ __volatile__("movsw" if((len % 2) >=1) __asm__ __volatile__("movsb" return dest
Definition: string.h:150
uint32_t len
Length.
Definition: ena.h:14

References dest, len, and src.

Referenced by generic_memmove().

◆ generic_memmove()

void* generic_memmove ( void *  dest,
const void *  src,
size_t  len 
)

Copy (possibly overlapping) memory region.

Parameters
destDestination region
srcSource region
lenLength
Return values
destDestination region

Definition at line 97 of file string.c.

97  {
98 
99  if ( dest < src ) {
100  return generic_memcpy ( dest, src, len );
101  } else {
102  return generic_memcpy_reverse ( dest, src, len );
103  }
104 }
static const void * src
Definition: string.h:47
void * generic_memcpy(void *dest, const void *src, size_t len)
Copy memory region (forwards)
Definition: string.c:63
void * generic_memcpy_reverse(void *dest, const void *src, size_t len)
Copy memory region (backwards)
Definition: string.c:80
if(len >=6 *4) __asm__ __volatile__("movsl" if(len >=5 *4) __asm__ __volatile__("movsl" if(len >=4 *4) __asm__ __volatile__("movsl" if(len >=3 *4) __asm__ __volatile__("movsl" if(len >=2 *4) __asm__ __volatile__("movsl" if(len >=1 *4) __asm__ __volatile__("movsl" if((len % 4) >=2) __asm__ __volatile__("movsw" if((len % 2) >=1) __asm__ __volatile__("movsb" return dest
Definition: string.h:150
uint32_t len
Length.
Definition: ena.h:14

References dest, generic_memcpy(), generic_memcpy_reverse(), len, and src.

◆ memset()

void* memset ( void *  dest,
int  character,
size_t  len 
)

Referenced by __vxge_hw_fifo_create(), __vxge_hw_vp_initialize(), __vxge_hw_vp_terminate(), _print_label(), a3c90x_probe(), a3c90x_setup_tx_ring(), abft_install(), add_tls(), aes_setkey(), aes_wrap(), alloc_iob_okx(), alloc_iob_raw(), amd8111e_probe(), amd8111e_transmit(), ansiesc_process(), aoecmd_ata_cmd(), aoecmd_cfg_cmd(), aoecmd_tx(), apply_dns_search(), ar5008_hw_spur_mitigate(), ar9002_hw_spur_mitigate(), ar9003_hw_proc_txdesc(), ar9003_hw_tx_iqcal_load_avg_2_passes(), arbel_alloc_icm(), arbel_cmd(), arbel_complete(), arbel_create_cq(), arbel_create_eq(), arbel_create_qp(), arbel_create_recv_wq(), arbel_create_send_wq(), arbel_destroy_eq(), arbel_dump_cqctx(), arbel_dump_qpctx(), arbel_free_icm(), arbel_ib_open(), arbel_map_vpm(), arbel_mcast_detach(), arbel_modify_qp(), arbel_post_send(), arbel_setup_mpt(), arbel_start(), arp_tx_request(), asn1_generalized_time(), atadev_command(), ath5k_attach(), ath5k_config(), ath5k_desc_alloc(), ath5k_handle_rx(), ath5k_hw_attach(), ath5k_hw_setup_2word_tx_desc(), ath5k_hw_setup_4word_tx_desc(), ath5k_hw_setup_rx_desc(), ath5k_hw_setup_tx_queue(), ath5k_hw_txpower(), ath5k_tx_processq(), ath9k_config(), ath9k_config_bss(), ath9k_hw_4k_set_txpower(), ath9k_hw_ar9287_set_txpower(), ath9k_hw_def_set_txpower(), ath9k_hw_get_gain_boundaries_pdadcs(), ath9k_hw_reset(), ath9k_hw_reset_txstatus_ring(), ath9k_hw_setuprxdesc(), ath9k_hw_setuptxqueue(), ath9k_tx(), ath_buf_set_rate(), ath_descdma_cleanup(), ath_descdma_setup(), ath_draintxq(), ath_get_next_rx_buf(), ath_hw_get_listen_time(), ath_rx_tasklet(), ath_tx_processq(), ath_txq_setup(), ath_update_survey_stats(), atl1e_clean_rx_ring(), atl1e_clean_tx_ring(), atl1e_get_tpd(), atl1e_setup_ring_resources(), atl_probe(), atl_ring_alloc(), atl_transmit(), axge_probe(), b44_init_rx_ring(), b44_init_tx_ring(), b44_probe(), base64_decode(), bigint_mod_invert_raw(), bigint_multiply_raw(), bitops_test_exec(), bnx2_alloc_mem(), bnx2_init_rx_ring(), bnx2_probe(), bnx2_transmit(), bnxt_hwrm_cfa_l2_filter_alloc(), bnxt_hwrm_run(), bnxt_init_one(), bnxt_mm_init(), bnxt_mm_nic(), bofm_test_init(), bzimage_parse_header(), ccmp_cbc_mac(), chap_finish(), cipher_cost(), colour_exec(), cpair_exec(), cpio_header(), deflate_alphabet(), deflate_inflate(), deflate_init(), dhcp_create_packet(), dhcppkt_store(), digest_cost(), dm96xx_probe(), dns_copy_fail_okx(), dns_copy_okx(), dns_encode_okx(), dns_send_packet(), draw_editbox(), draw_menu_item(), draw_setting_row(), drbg_uninstantiate(), eapol_key_rx(), ecam_read(), ecm_probe(), editstring_okx(), efab_alloc_resources(), efab_free_resources(), efab_probe(), efi_aoe_path(), efi_file_get_info(), efi_file_info(), efi_file_read_chunk(), efi_get_time(), efi_getchar(), efi_ifr_free(), efi_ifr_init(), efi_ifr_op(), efi_install_multiple_protocol_interfaces_wrapper(), efi_local_open_path(), efi_pxe_ip(), efi_pxe_ip_sockaddr(), efi_pxe_start(), efi_pxe_udp_write(), efi_snp_statistics(), efi_undi_get_init_info(), efi_undi_get_status(), efi_undi_receive(), efi_undi_station_address(), efi_uninstall_multiple_protocol_interfaces_wrapper(), efi_usb_get_string_descriptor(), efi_veto_find(), efifb_glyphs(), efipci_discover(), efipci_dma_alloc(), efx_hunt_ev_init(), ehci_bus_open(), ehci_ring_alloc(), eisabus_probe(), ena_admin_req(), ena_create_admin(), ena_create_async(), ena_create_cq(), ena_create_sq(), ena_probe(), enable_multicast(), eth_probe(), eth_slow_lacp_rx(), exanic_probe(), exanic_probe_port(), fbcon_init(), fc_els_echo_tx(), fc_els_flogi_tx(), fc_els_logo_tx(), fc_els_logo_tx_response(), fc_els_plogi_tx(), fc_els_prli_tx(), fc_els_rtv_tx_response(), fc_els_tx(), fc_els_unknown_tx_response(), fc_fill_sockaddr(), fc_ns_query_step(), fc_port_logout(), fc_xchg_rx(), fc_xchg_tx(), fcoe_deliver(), fcoe_fip_parse(), fcoe_fip_tx_keepalive(), fcoe_fip_tx_solicitation(), fcoe_fip_tx_vlan(), fcp_prli_tx(), fcpcmd_recv_rsp(), fcpcmd_send_cmnd(), fcpcmd_send_wrdata(), fdt_traverse(), fetch_next_server_and_filename(), fetch_setting(), fetch_string_setting(), fiber_autoneg(), flexboot_nodnic_complete(), flexboot_nodnic_get_factory_mac(), flexboot_nodnic_is_supported(), fnrec_reset(), format_string_setting(), ftp_open(), gcc_implicit_memset(), gcm_setiv(), gcm_setkey(), gdbudp_send(), get_entropy_input(), get_entropy_input_tmp(), golan_complete(), golan_create_qp_aux(), golan_post_recv(), golan_post_send(), gve_admin_command(), gve_alloc_queue(), gve_probe(), gve_transmit(), hermon_alloc_mtt(), hermon_bofm_update(), hermon_cmd(), hermon_complete(), hermon_create_cq(), hermon_create_eq(), hermon_create_qp(), hermon_destroy_eq(), hermon_dump_cqctx(), hermon_dump_eqctx(), hermon_dump_eqes(), hermon_dump_qpctx(), hermon_eth_open(), hermon_ib_open(), hermon_map_icm(), hermon_map_vpm(), hermon_mcast_detach(), hermon_mod_stat_cfg(), hermon_modify_qp(), hermon_post_send(), hermon_setup_mpt(), hermon_start(), hermon_unmap_icm(), hmac_drbg_instantiate(), hmac_final(), hmac_init(), http_connect(), http_open(), http_tx_request(), hunt_clear_udp_tunnel_ports(), hunt_probe(), hunt_rx_filter_insert(), hv_alloc_pages(), hv_map_synic(), hv_post_message(), hv_signal_event(), hv_wait_for_message(), hwrm_init(), ib_cached_path_complete(), ib_cm_path_complete(), ib_cm_send_drep(), ib_cm_send_rtu(), ib_create_conn(), ib_create_path(), ib_create_service_madx(), ib_mcast_mad(), ib_pull(), ib_resolve_path(), ib_sma_guid_info(), ib_sma_node_desc(), ib_sma_node_info(), ib_sma_pkey_table(), ib_sma_port_info(), ib_smc_mad(), ib_srp_open_uri(), ibft_alloc_string(), ibft_set_ipaddr(), ice_context_rx(), ice_probe(), icert_free(), icplus_create_ring(), icplus_probe(), ifec_pci_probe(), igbvf_probe(), igbvf_process_rx_packets(), igbvf_process_tx_packets(), igbvf_rar_set_vf(), igbvf_setup_rx_resources(), igbvf_setup_tx_resources(), imux_deliver(), imux_tx_syn(), imux_tx_version(), inet6_aton(), int13_cdrom_status_terminate(), int13_describe(), int13_extended_rw(), int13_get_extended_parameters(), int13con_find(), int13con_putchar(), intel_create_ring(), intel_open(), intel_probe(), intelvf_mbox_reset(), intelvf_mbox_set_mac(), intelvf_mbox_set_mtu(), intelx_open(), intelx_probe(), intelxl_admin_command_buffer(), intelxl_admin_command_descriptor(), intelxl_alloc_ring(), intelxl_context_rx(), intelxl_context_tx(), intelxl_enable_admin(), intelxl_probe(), intelxlvf_probe(), intelxvf_mbox_queues(), intelxvf_mbox_version(), intelxvf_probe(), iob_pad(), ipair_tx(), iphone_probe(), ipoib_link_state_changed(), ipoib_probe(), ipoib_translate_rx_arp(), ipoib_translate_tx_arp(), ipoib_transmit(), ipv4_rx(), ipv4_tx(), ipv6_fetch(), ipv6_pshdr_chksum(), ipv6_rx(), ipv6_tx(), isabus_probe(), isapnp_try_isolate(), isapnpbus_probe(), iscsi_open_connection(), iscsi_rx_scsi_response(), iscsi_start_tx(), iscsi_tx_data_out(), iscsi_tx_login_request(), jme_alloc_rx_resources(), jme_alloc_tx_resources(), jme_free_tx_resources(), jme_init_tx_ring(), job_progress(), lan78xx_probe(), legacy_probe(), linda_complete_recv(), linda_create_recv_wq(), linda_fini_send(), linda_ib_epb_read(), linda_ib_epb_release(), linda_ib_epb_request(), linda_ib_epb_write(), linda_init_ib_serdes(), linda_init_recv(), linda_init_send(), linda_poll_eq(), linda_poll_recv_wq(), linda_post_recv(), linda_post_send(), linebuf_init_okx(), main_loop(), mcabus_probe(), memcpy_test_speed(), meme820(), memset_var(), memset_zero_0(), memset_zero_1(), memset_zero_10(), memset_zero_11(), memset_zero_12(), memset_zero_13(), memset_zero_14(), memset_zero_15(), memset_zero_16(), memset_zero_17(), memset_zero_18(), memset_zero_19(), memset_zero_2(), memset_zero_20(), memset_zero_21(), memset_zero_22(), memset_zero_23(), memset_zero_24(), memset_zero_25(), memset_zero_26(), memset_zero_27(), memset_zero_28(), memset_zero_29(), memset_zero_3(), memset_zero_30(), memset_zero_31(), memset_zero_4(), memset_zero_5(), memset_zero_6(), memset_zero_7(), memset_zero_8(), memset_zero_9(), mlx_memory_alloc_dma_priv(), mlx_memory_set_priv(), mschapv2_password_hash(), mschapv2_response(), multiboot_build_memmap(), multiboot_exec(), myri10ge_net_close(), myri10ge_net_open(), myson_create_ring(), myson_open(), myson_probe(), natsemi_create_ring(), natsemi_probe(), ncm_open(), ncm_out_transmit(), ncm_probe(), ndp_rx_neighbour_solicitation_ll_source(), ndp_tx_request(), ndp_tx_router_solicitation(), net80211_ll_push(), netboot(), netvsc_establish_buffer(), netvsc_initialise(), netvsc_ndis_version(), netvsc_revoke_buffer(), netvsc_transmit(), nfs_connect(), nii_initialise_flags(), nii_issue_cpb_db(), nii_poll(), nii_poll_rx(), nii_set_station_address(), nii_start_undi(), nii_transmit(), ntlm_authenticate(), ntlm_response(), ntp_request(), nv_process_rx_packets(), nv_process_tx_packets(), nvo_load(), oncrpc_iob_add_array(), parse_options(), parse_setting_name(), pbkdf2_sha1_f(), pci_find_next(), pci_settings_fetch(), pcnet32_process_rx_packets(), pcnet32_process_tx_packets(), pcnet32_setup_rx_resources(), pcnet32_setup_tx_resources(), peerblk_raw_open(), peerblk_retrieval_open(), peerdisc_socket_tx(), peerdist_info(), peerdist_info_block(), peerdist_info_segment(), phantom_clp_cmd(), phantom_create_rx_ctx(), phantom_create_tx_ctx(), phantom_open(), phantom_poll(), phantom_probe(), phantom_refill_rx_ring(), phantom_transmit(), phantom_update_macaddr(), ping_deliver(), ping_exec(), ping_rx(), pinger_expired(), prism2_probe(), prism2_transmit(), profile_okx(), pxe_fake_cached_info(), pxe_menu_parse(), pxe_tftp_open(), pxenv_udp_write(), pxenv_undi_clear_statistics(), pxenv_undi_get_iface_info(), pxenv_undi_get_nic_type(), qib7322_ahb_read(), qib7322_ahb_release(), qib7322_ahb_request(), qib7322_ahb_write(), qib7322_complete_recv(), qib7322_create_recv_wq(), qib7322_fini_send(), qib7322_init_ib_serdes(), qib7322_init_recv(), qib7322_init_send(), qib7322_poll_recv_wq(), qib7322_post_recv(), qib7322_post_send(), qib7322_reset(), rdc_create_ring(), rdc_probe(), readline_history(), realtek_create_ring(), realtek_probe(), reparse_options(), resize_dhcp_option(), resolv_setting(), rhine_create_ring(), rhine_probe(), rndis_tx_data(), rndis_tx_halt(), rndis_tx_initialise(), rndis_tx_oid(), rsa_encode_digest(), rsa_init(), rtl818x_init_rx_ring(), rtl818x_init_tx_ring(), sanboot_core_exec(), scsi_parse_lun(), scsi_parse_sense(), scsicmd_command(), select_setting_row(), set_rx_mode(), shell(), shomron_fill_eth_send_wqe(), short_hwrm_cmd_req(), show_menu(), sis190_init_board(), sis190_init_ring(), sis630e_get_mac_addr(), skeleton_probe(), skge_up(), sky2_probe(), sky2_reset(), sky2_rx_clean(), sky2_set_multicast(), sky2_up(), slam_mc_socket_deliver(), slam_open(), slam_pull_header(), smsc75xx_probe(), smsc95xx_probe(), smsc95xx_vm3_fetch_mac(), smscusb_set_address(), smscusb_set_filter(), srp_cmd(), srp_login(), srp_rsp(), start_dhcpv6(), start_ntp(), string_test_exec(), t509bus_probe(), tcp_open_uri(), tcp_rx_opts(), tcp_sack(), tcp_xmit_reset(), tcp_xmit_sack(), tcpip_random_okx(), tftp_reopen(), tftp_rx_data(), tftp_timer_expired(), tftp_uri(), tg3_abort_hw(), tg3_alloc_consistent(), tg3_init_rings(), tg3_rings_reset(), tls_clear_cipher(), tls_client_hello(), tls_parse_chain(), tls_send_client_key_exchange_pubkey(), tls_send_finished(), tls_send_plaintext(), trivial_memset_user(), txnic_send(), ucode_exec(), ucode_update_all(), udp_open_uri(), udp_rx(), uhci_bus_open(), uhci_enqueue(), uhci_ring_alloc(), undi_load(), undi_unload(), undinet_open(), undinet_probe(), undinet_remove(), undinet_transmit(), undipci_probe(), usb_control(), usb_describe(), usb_get_string_descriptor(), usb_message(), usb_probe_all(), usb_score(), usbblk_out_command(), usbblk_start(), usbblk_stop(), usbio_supported(), utf8_accumulate_okx(), velocity_alloc_rings(), vmbus_close(), vmbus_establish_gpadl(), vmbus_gpadl_teardown(), vmbus_initiate_contact(), vmbus_open(), vmbus_reset(), vmxnet3_open(), vmxnet3_probe(), vmxnet3_set_ll_addr(), vp_alloc_vq(), vxge_device_register(), vxge_hw_device_hw_info_get(), vxge_xmit_compl(), wpa_alloc_frame(), wpa_send_eapol(), wpa_send_final(), write_cmd(), x25519_multiply(), x86_features(), x86_get_memmap(), xhci_context(), xhci_dcbaa_alloc(), xhci_device_open(), xhci_disable_slot(), xhci_enable_slot(), xhci_endpoint_message(), xhci_endpoint_stream(), xhci_event_alloc(), xhci_fail(), xhci_nop(), xhci_reset_endpoint(), xhci_ring_alloc(), xhci_ring_reset(), xhci_set_tr_dequeue_pointer(), xhci_stop_endpoint(), xsigo_xds_complete(), xsmp_rx_xve_modify(), xsmp_tx_session(), xsmp_tx_xve_notify(), xve_create(), and zalloc().

◆ memcpy()

void* memcpy ( void *  dest,
const void *  src,
size_t  len 
)

Referenced by __attribute__(), abft_install(), acpimac_decode_raw(), aes_decrypt(), aes_encrypt(), aes_setkey(), aes_unwrap(), aes_wrap(), amd8111e_poll(), amd8111e_transmit(), aoecmd_cfg_rsp(), aoedev_ata_command(), aoedev_open(), apply_dns_settings(), apply_syslog_settings(), ar5008_hw_attach_phy_ops(), ar5008_hw_process_ini(), ar9003_hw_attach_phy_ops(), ar9300_compress_decision(), ar9300_eeprom_restore_internal(), ar9300_uncompress_block(), arbel_cmd(), arbel_complete(), arbel_fill_ud_send_wqe(), arbel_mad(), arbel_mcast_attach(), arbel_modify_qp(), arp_rx(), arp_tx_request(), asn1_algorithm(), asn1_bit_string(), asn1_boolean(), asn1_generalized_time(), asn1_integer(), asn1_prepend(), asn1_prepend_raw(), asn1_shrink(), asn1_wrap(), ath5k_config(), ath5k_eeprom_read_mac(), ath5k_hw_get_lladdr(), ath5k_hw_set_bssid_mask(), ath5k_hw_set_lladdr(), ath5k_hw_set_tx_queueprops(), ath9k_bss_iter(), ath9k_hw_ar9300_set_txpower(), ath9k_init_channels_rates(), ath9k_init_misc(), ath9k_init_softc(), atl1e_clean_rx_irq(), atl1e_get_permanent_address(), atl1e_probe(), atl1e_read_mac_addr(), atl1e_up(), atl2_hw_get_mac(), atl_hw_get_mac(), autovivify_child_settings(), axge_in_complete(), bigint_mod_exp_raw(), bnx2_poll(), bnx2_probe(), bnx2_transmit(), bnxt_get_device_address(), bnxt_hwrm_cfa_l2_filter_alloc(), bnxt_hwrm_func_qcaps_req(), bnxt_hwrm_func_qcfg_req(), bnxt_hwrm_set_async_event(), bofm_en(), cachedhcp_apply(), cbc_decrypt(), cbc_encrypt(), cbc_setiv(), ccmp_cbc_mac(), ccmp_ctr_xor(), ccmp_decrypt(), ccmp_encrypt(), ccmp_kie_mic(), check_bios_interrupts(), cipher_decrypt_okx(), cipher_encrypt_okx(), cipher_null_decrypt(), cipher_null_encrypt(), cms_decrypt(), cms_parse(), cms_parse_certificates(), cms_parse_content_type(), cms_parse_encrypted(), cms_parse_enveloped(), cms_parse_identifier(), cms_parse_mac(), cms_parse_participant(), cms_parse_participants(), cms_parse_signed(), cms_parse_value(), cpio_header(), cpio_set_field(), cpuid_settings_fetch(), cs89x0_probe(), davicom_poll(), davicom_transmit(), denumerate_int_setting(), dhcp_create_packet(), dhcp_create_request(), dhcp_deliver(), dhcpopt_fetch(), dhcppkt_fetch(), dhcppkt_store(), dhcpv6_fetch(), dhcpv6_fetch_gateway6(), dhcpv6_fetch_ip6(), dhcpv6_iaaddr(), dhcpv6_register(), dhcpv6_rx(), dhcpv6_tx(), dhcpv6_user_class(), dmfe_poll(), dmfe_transmit(), dns_copy(), dns_copy_okx(), dns_decode(), dns_list_okx(), dns_resolv(), dns_send_packet(), dns_xfer_deliver(), draw_editbox(), draw_menu_item(), eap_rx_md5(), eap_rx_mschapv2_request(), eap_tx_response(), eapol_key_rx(), eapol_tx(), ecam_find(), ecm_fetch_mac(), efab_probe(), efi_apple_get_response(), efi_block_exec(), efi_fcp_path(), efi_file_open_image(), efi_file_varlen(), efi_guid_ntoa(), efi_ib_srp_path(), efi_ifr_form_set_op(), efi_ifr_guid_class_op(), efi_ifr_guid_subclass_op(), efi_ifr_package(), efi_ifr_varstore_name_value_op(), efi_image_path(), efi_init(), efi_iscsi_path(), efi_locate_device(), efi_netdev_path(), efi_nullify_apple(), efi_nullify_block(), efi_nullify_hii(), efi_nullify_name2(), efi_nullify_pxe(), efi_nullify_snp(), efi_nullify_usbio(), efi_nullify_vlan(), efi_path_fetch_dns(), efi_path_fetch_fixed(), efi_path_guid(), efi_path_uri(), efi_paths(), efi_pci_info(), efi_pxe_buf_write(), efi_pxe_install(), efi_pxe_ip(), efi_pxe_ip_sockaddr(), efi_pxe_set_ip_filter(), efi_pxe_set_packets(), efi_pxe_set_station_ip(), efi_pxe_udp_deliver(), efi_pxe_udp_read(), efi_pxe_udp_write(), efi_snp_hii_install(), efi_snp_hii_store(), efi_snp_probe(), efi_snp_receive(), efi_snp_set_mode(), efi_snp_station_address(), efi_snp_statistics(), efi_snp_transmit(), efi_undi_receive(), efi_undi_station_address(), efi_usb_get_config_descriptor(), efi_usb_get_device_descriptor(), efi_usb_get_endpoint_descriptor(), efi_usb_get_interface_descriptor(), efi_usb_install(), efi_usb_path(), efi_usb_probe(), efi_usb_sync_transfer(), efi_wrap(), efi_wrap_bs(), efidev_alloc(), efivars_fetch(), ena_get_device_attributes(), eoib_create(), eoib_create_peer(), eoib_duplicate(), eoib_rx_av(), eoib_set_gateway(), epic100_poll(), epic100_transmit(), errno_fetch(), eth_eth_addr(), eth_eui64(), eth_init_addr(), eth_mc_hash(), eth_push(), eth_slow_lacp_rx(), exanic_probe_port(), exanic_try_init_eeprom(), falcon_spi_rw(), fc_els_create(), fc_els_flogi_rx(), fc_els_flogi_tx(), fc_els_logo_tx(), fc_els_plogi_tx(), fc_els_prli_tx(), fc_els_rx(), fc_fill_sockaddr(), fc_ns_query_step(), fc_peer_create(), fc_peer_login(), fc_port_login(), fc_port_open(), fc_ulp_login(), fc_xchg_create(), fc_xchg_tx(), fcoe_deliver(), fcoe_fip_rx_advertisement(), fcoe_fip_rx_els_response(), fcoe_fip_tx_keepalive(), fcoe_fip_tx_solicitation(), fcoe_fip_tx_vlan(), fcoe_probe(), fcoe_reset(), fcoe_rx(), fcpcmd_send_cmnd(), fcpdev_edd_describe(), fcpdev_open(), fcpdev_scsi_command(), fdt_mac(), fetch_setting(), flexboot_nodnic_mcast_attach(), flexboot_nodnic_mcast_detach(), flexboot_nodnic_register_netdev(), format_string_setting(), format_uuid_setting(), fragment_reassemble(), gcc_implicit_memcpy(), gcm_multiply_key(), gcm_setiv(), gcm_tag(), gdbudp_recv(), gdbudp_send(), generic_settings_fetch(), generic_settings_store(), golan_complete(), golan_mcast_attach(), golan_mcast_detach(), golan_post_send(), golan_qry_hca_cap(), golan_query_vport_gid(), golan_set_hca_cap(), gve_describe(), hash_df(), hermon_bofm_harvest(), hermon_bofm_update(), hermon_cmd(), hermon_complete(), hermon_fill_ud_send_wqe(), hermon_mad(), hermon_mcast_attach(), hermon_modify_qp(), hermon_register_ibdev(), hermon_register_netdev(), hmac_drbg_generate(), hmac_drbg_reseed(), hmac_init(), http_open(), http_rx_chunk_data(), http_tx_request(), hunt_get_mac(), hunt_mac_addr(), hunt_mcdi_copyin(), hunt_mcdi_copyout(), hunt_mcdi_request_poll(), hunt_rx_filter_insert(), hunt_set_mac(), hv_post_message(), hv_wait_for_message(), ib_cm_path_complete(), ib_cm_send_drep(), ib_cm_send_rtu(), ib_cmrc_open(), ib_create_conn(), ib_create_madx(), ib_create_path(), ib_mcast_attach(), ib_mcast_mad(), ib_mi_send(), ib_post_send(), ib_pull(), ib_push(), ib_sbft_install(), ib_sma_guid_info(), ib_sma_node_info(), ib_sma_port_info(), ib_sma_set_port_info(), ib_smc_get(), ib_srp_open(), ib_srp_parse_initiator_hca_guid(), ib_srp_parse_sgid(), ibft_fill_target(), ibft_install(), ice_admin_mac_read(), ice_admin_mac_write(), ice_admin_rules(), if(), ifec_net_open(), igbvf_open(), igbvf_probe(), igbvf_rar_set_vf(), igbvf_reset(), igbvf_reset_hw_vf(), imgdownload(), int13_install(), int13con_find(), intel_fetch_mac(), intel_open(), intelvf_mbox_reset(), intelvf_mbox_set_mac(), intelx_open(), intelx_try_fetch_mac(), intelxl_admin_mac_read(), intelxl_admin_mac_write(), intelxlvf_admin_event(), intelxlvf_admin_get_resources(), iob_concatenate(), iob_split(), ipoib_complete_recv(), ipoib_link_state_changed(), ipoib_map_remac(), ipoib_probe(), ipoib_translate_rx_arp(), ipoib_translate_tx_arp(), ipoib_transmit(), ipv6_add_miniroute(), ipv6_fetch(), ipv6_pshdr_chksum(), ipv6_route_okx(), ipv6_rx(), ipv6_sock_aton(), ipv6_solicited_node(), ipv6_tx(), iscsi_rx_bhs(), iscsi_rx_buffered_data(), iscsi_scsi_command(), iscsi_start_command(), iscsi_vredirect(), jme_load_macaddr(), linda_probe(), line_buffer(), lldp_fetch(), lldp_rx(), loopback_test(), mac_address_from_string_specs(), md4_final(), md5_final(), memcpy_0(), memcpy_1(), memcpy_10(), memcpy_11(), memcpy_12(), memcpy_13(), memcpy_14(), memcpy_15(), memcpy_16(), memcpy_17(), memcpy_18(), memcpy_19(), memcpy_2(), memcpy_20(), memcpy_21(), memcpy_22(), memcpy_23(), memcpy_24(), memcpy_25(), memcpy_26(), memcpy_27(), memcpy_28(), memcpy_29(), memcpy_3(), memcpy_30(), memcpy_31(), memcpy_4(), memcpy_5(), memcpy_6(), memcpy_7(), memcpy_8(), memcpy_9(), memcpy_test_speed(), memcpy_var(), memmap_settings_fetch(), mlx_memory_cpy_priv(), mnpnet_poll_rx(), mnpnet_start(), mschapv2_response(), myson_open(), myson_probe(), ncm_in_complete(), ndp_fetch(), ndp_prefix_fetch_gateway6(), ndp_prefix_fetch_ip6(), ndp_register_settings(), ndp_tx_ll_addr(), ndp_tx_request(), ne_poll(), neighbour_create(), neighbour_discover(), neighbour_discovered(), net80211_accum_frags(), net80211_handle_assoc_reply(), net80211_handle_auth(), net80211_ll_push(), net80211_marshal_request_info(), net80211_prepare_assoc(), net80211_probe_step(), net80211_process_ie(), net80211_register(), net80211_tx_mgmt(), netdev_fetch_busid(), netdev_fetch_busloc(), netdev_fetch_hwaddr(), netdev_fetch_mac(), netdev_store_mac(), nfs_iob_add_fh(), nfs_iob_get_fh(), nii_get_station_address(), nii_set_station_address(), nii_sync(), ns8390_poll(), ns8390_transmit(), ntlm_authenticate(), ntlm_response(), numeric_resolv(), ocsp_compare_responder_key_hash(), ocsp_parse_basic_response(), ocsp_parse_cert_id(), ocsp_parse_certs(), ocsp_parse_responder_id(), ocsp_parse_response(), ocsp_parse_response_bytes(), ocsp_parse_response_status(), ocsp_parse_response_type(), ocsp_parse_responses(), ocsp_parse_tbs_response_data(), ocsp_response(), ocsp_uri_string(), oncrpc_iob_add_array(), parse_eeprom(), parse_ipv4_setting(), parse_ipv6_setting(), parse_setting_name(), parse_string_setting(), parse_uri(), parse_uuid_setting(), pbkdf2_sha1(), pbkdf2_sha1_f(), pcnet32_setup_mac_addr(), peerblk_deliver(), peerblk_open(), peerblk_retrieval_open(), peerdisc_create(), peerdisc_socket_tx(), peerdist_info_segment_hash(), peerdist_info_v2_block(), phantom_clp_cmd(), phantom_post_cds(), phantom_post_rds(), ping_open(), prf_sha1(), prism2_transmit(), privkey_apply_settings(), pubkey_sign_okx(), pxe_menu_parse(), pxenv_undi_get_information(), pxenv_undi_isr(), pxenv_undi_set_station_address(), qib7322_probe(), rdc_probe(), realloc(), realtek_legacy_poll_rx(), register_netdev(), resolv(), resolve_uri(), rndis_rx_query_oid(), rndis_tx_oid(), rsa_decrypt(), rsa_encode_digest(), rsa_encrypt(), rsa_parse_integer(), rsa_parse_mod_exp(), rtl818x_probe(), sandev_command_capacity(), scsi_open(), scsi_parse_sense(), scsicmd_command(), sec80211_install(), send_test_pkt(), set_autoboot_ll_addr(), set_dhcp_option(), settings_name(), setup_sipi(), sha1_final(), sha256_family_init(), sha256_final(), sha512_family_init(), sha512_final(), shomron_fill_eth_send_wqe(), sis900_poll(), sis900_transmit(), skge_devinit(), sky2_init_netdev(), slam_open(), slam_pull_header(), smbios_fetch(), smscusb_set_address(), smscusb_set_filter(), snpnet_start(), srp_cmd(), srp_login(), start_dhcpv6(), string_copy(), string_test_exec(), strndup(), sundance_poll(), sundance_transmit(), sysmac_fetch(), tcp_open(), tcp_process_tx_queue(), tcp_sack(), tftp_rx(), tg3_get_device_address(), tkip_decrypt(), tkip_encrypt(), tkip_init(), tkip_kie_decrypt(), tkip_kie_mic(), tkip_michael(), tkip_mix_1(), tkip_mix_2(), tlan_poll(), tlan_transmit(), tls_cipherstream_deliver(), tls_client_hello(), tls_generate_keys(), tls_new_ciphertext(), tls_new_finished(), tls_new_server_hello(), tls_new_server_key_exchange(), tls_new_session_ticket(), tls_p_hash_va(), tls_send_certificate(), tls_send_certificate_verify(), tls_send_finished(), tls_send_plaintext(), tls_tx_step(), tls_validator_done(), tls_verify_handshake(), trivial_memcpy_user(), tulip_poll(), tulip_probe(), tulip_transmit(), txnic_lmac_probe(), ucode_describe(), ucode_vendor_name(), udp_open_common(), undinet_call(), undinet_open(), undinet_probe(), undinet_transmit(), undipci_probe(), unixtime_fetch(), uri_copy_fields(), usb_control(), usb_describe(), usbblk_out_command(), usbblk_start(), usbio_interrupt_callback(), usbio_interrupt_poll(), usbio_path(), usbkbd_report(), vlan_auto(), vlan_create(), vlan_rx(), vlan_transmit(), vmbus_consume(), vmbus_probe_channels(), vmbus_produce(), vmxnet3_get_hw_addr(), vmxnet3_set_ll_addr(), vxge_device_register(), vxge_hw_vpath_poll_rx(), vxge_probe(), w89c840_poll(), w89c840_transmit(), wep_decrypt(), wep_encrypt(), wep_init(), wpa_derive_ptk(), wpa_handle_1_of_2(), wpa_handle_1_of_4(), wpa_maybe_install_gtk(), wpa_send_2_of_4(), wpa_send_final(), wpa_start(), x25519_key(), x25519_key_okx(), x509_certificate(), x509_check_alt_name(), x509_check_name(), x509_name(), x509_parse(), x509_parse_access_description(), x509_parse_authority_info_access(), x509_parse_basic_constraints(), x509_parse_common_name(), x509_parse_extended_key_usage(), x509_parse_extension(), x509_parse_extensions(), x509_parse_issuer(), x509_parse_key_purpose(), x509_parse_ocsp(), x509_parse_public_key(), x509_parse_serial(), x509_parse_subject(), x509_parse_subject_alt_name(), x509_parse_tbscertificate(), x509_parse_validity(), x509_parse_version(), xcm_create(), xcm_reopen(), xfer_deliver_raw_meta(), xfer_open_named_socket(), xferbuf_malloc_read(), xferbuf_malloc_write(), xhci_complete(), xhci_endpoint_message(), xsigo_xds_complete(), xsmp_chassis_name(), xsmp_rx_xve_install(), xsmp_session_name(), xsmp_tx_session(), xsmp_tx_xve(), xsmp_tx_xve_notify(), and xve_create().

◆ memmove()

void* memmove ( void *  dest,
const void *  src,
size_t  len 
)

◆ memcmp()

int __pure memcmp ( const void *  first,
const void *  second,
size_t  len 
)

Compare memory regions.

Parameters
firstFirst region
secondSecond region
lenLength
Return values
diffDifference

Definition at line 114 of file string.c.

114  {
115  const uint8_t *first_bytes = first;
116  const uint8_t *second_bytes = second;
117  int diff;
118 
119  while ( len-- ) {
120  diff = ( *(first_bytes++) - *(second_bytes++) );
121  if ( diff )
122  return diff;
123  }
124  return 0;
125 }
uint32_t first
First block in range.
Definition: pccrr.h:14
unsigned char uint8_t
Definition: stdint.h:10
uint32_t len
Length.
Definition: ena.h:14
static __always_inline int off_t userptr_t second
Definition: librm.h:166

References first, len, and second.

Referenced by acpimac_extract(), apply_syslog_settings(), asn1_compare(), asn1_okx(), base16_decode_okx(), base64_decode_okx(), bofm_en(), cachedhcp_apply(), cachedhcp_record(), ccmp_decrypt(), check_bios_interrupts(), cipher_decrypt_okx(), cipher_encrypt_okx(), cms_decrypt(), com32_identify(), deflate_okx(), dhcp_deliver(), dhcpv6_check_duid(), dhe_key_okx(), digest_frag_okx(), dns_copy_okx(), dns_encode_okx(), eapol_key_rx(), efi_block_match(), efi_file_get_info(), efi_find_table(), efi_guid_ntoa(), efi_path_net_probe(), efi_pxe_ip_filter(), efi_pxe_udp_read(), efi_shim_is_sbatlevel(), efi_veto_dhcp6(), efi_veto_hp_xhci(), efi_veto_ip4config(), efi_veto_vmware_uefipxebc(), efivars_find(), elf_load(), elfboot_probe(), eoib_find(), eoib_find_peer(), eoib_rx_av(), eth_probe(), eth_slow_lacp_rx(), fc_els_logo_logout(), fc_peer_examine(), fc_peer_get_port_id(), fc_peer_get_wwn(), fc_peer_login(), fc_port_deliver(), fc_port_login(), fc_ulp_login(), fcels_exec(), fcoe_fip_rx(), fcoe_fip_rx_advertisement(), fcoe_rx(), find_ibdev(), hmac_okx(), hvm_cpuid_base(), ib_find_path_cache_entry(), ib_find_qp_mgid(), ib_mcast_detach(), ib_mi_handle(), ib_path_complete(), inet6_aton_okx(), int13_parse_eltorito(), int13con_find(), ipair_key(), ipoib_find_remac(), ipoib_map_remac(), ipv6_has_addr(), ipv6_is_fragment(), ipv6_route_okx(), ipv6_table_okx(), is_autoboot_ll_addr(), iscsi_handle_chap_r_value(), linda_verify_uc_ram(), lldp_fetch(), loopback_wait(), mac_address_from_string_specs(), memcpy_test_speed(), mlx_memory_cmp_priv(), mschapv2_okx(), ne_probe(), neighbour_find(), net80211_rx(), netfront_net_probe(), ntlm_authenticate_okx(), ntlm_data_okx(), ntlm_key_okx(), nvs_verify(), ocsp_compare_responder_key_hash(), pcnet32_setup_mac_addr(), peerblk_done(), peerblk_parse_block(), peerdist_discovery_reply(), peerdist_info_block_okx(), peerdist_info_passphrase_okx(), peerdist_info_segment_okx(), pem_marker(), png_probe(), pubkey_okx(), pubkey_sign_okx(), rsa_verify(), rsdp_find_rsdt_range(), sandev_parse_iso9660(), script_probe(), slam_pull_header(), string_test_exec(), strstr(), tftp_rx(), tkip_decrypt(), tkip_mix_1(), tls_new_ciphertext(), tls_new_finished(), tls_new_server_hello(), trivial_memcmp_user(), typeof(), ucode_exec(), udp_demux(), uuid_aton_okx(), vlan_probe(), vmbus_find_driver(), wpa_derive_ptk(), wpa_handle_3_of_4(), x25519_invert_okx(), x25519_key_okx(), x25519_multiply_okx(), x509_chain_okx(), x509_check_ipaddress(), x509_check_root(), x509_fingerprint_okx(), xcm_find(), and xve_find().

◆ memchr()

void* __pure memchr ( const void *  src,
int  character,
size_t  len 
)

Find character within a memory region.

Parameters
srcSource region
characterCharacter to find
lenLength
Return values
foundFound character, or NULL if not found

Definition at line 135 of file string.c.

135  {
136  const uint8_t *src_bytes = src;
137 
138  for ( ; len-- ; src_bytes++ ) {
139  if ( *src_bytes == character )
140  return ( ( void * ) src_bytes );
141  }
142  return NULL;
143 }
static const void * src
Definition: string.h:47
unsigned char uint8_t
Definition: stdint.h:10
uint32_t len
Length.
Definition: ena.h:14
#define NULL
NULL pointer (VOID *)
Definition: Base.h:321

References len, NULL, and src.

Referenced by line_buffer(), rsa_decrypt(), string_test_exec(), and trivial_memchr_user().

◆ memswap()

void* memswap ( void *  first,
void *  second,
size_t  len 
)

Swap memory regions.

Parameters
firstFirst region
secondSecond region
lenLength
Return values
firstFirst region

Definition at line 153 of file string.c.

153  {
154  uint8_t *first_bytes = first;
155  uint8_t *second_bytes = second;
156  uint8_t temp;
157 
158  for ( ; len-- ; first_bytes++, second_bytes++ ) {
159  temp = *first_bytes;
160  *first_bytes = *second_bytes;
161  *second_bytes = temp;
162  }
163  return first;
164 }
uint32_t first
First block in range.
Definition: pccrr.h:14
unsigned char uint8_t
Definition: stdint.h:10
uint32_t len
Length.
Definition: ena.h:14
static __always_inline int off_t userptr_t second
Definition: librm.h:166

References first, len, and second.

Referenced by arp_rx(), gdbudp_recv(), string_test_exec(), and tls_change_cipher().

◆ strcmp()

int __pure strcmp ( const char *  first,
const char *  second 
)

Compare strings.

Parameters
firstFirst string
secondSecond string
Return values
diffDifference

Definition at line 173 of file string.c.

173  {
174 
175  return strncmp ( first, second, ~( ( size_t ) 0 ) );
176 }
uint32_t first
First block in range.
Definition: pccrr.h:14
int strncmp(const char *first, const char *second, size_t max)
Compare strings.
Definition: string.c:186
static __always_inline int off_t userptr_t second
Definition: librm.h:166

References first, second, and strncmp().

Referenced by apply_syslogs_settings(), base16_encode_okx(), base64_encode_okx(), bzimage_parse_cmdline(), command_terminator(), dns_decode_okx(), dns_list_okx(), editstring_okx(), efi_veto_hp_xhci(), efi_veto_ip4config(), efi_veto_vmware_uefipxebc(), execv(), fc_port_find(), fdt_child(), fdt_property(), find_child_settings(), find_dynui(), find_gdb_transport(), find_image(), find_netdev(), find_netdev_configurator(), find_parameters(), find_setting(), find_setting_type(), goto_find_label(), gzip_okx(), have_pxe_menu(), http_connect(), inet6_ntoa_okx(), inet_ntoa_okx(), ipair_rx_pair_error(), ipair_rx_session_error(), iscsi_handle_authmethod_value(), iscsi_handle_chap_a_value(), iscsi_handle_chap_n_value(), iscsi_handle_string(), iseq_exec(), keymap_find(), linebuf_accumulated_okx(), linebuf_consume_okx(), list_check_contents(), net80211_check_settings_update(), net80211_probe_step(), nfs_mount_deliver(), peerdisc_discovered(), peerdisc_find(), setting_cmp(), show_menu(), smsc95xx_vm3_fetch_mac(), snprintf_okx(), string_test_exec(), tls_session(), uri_churi_okx(), uri_format_okx(), uri_params_list_okx(), uri_pxe_okx(), uri_resolve_okx(), uri_resolve_path_okx(), uristrcmp(), usbblk_find(), uuid_ntoa_okx(), xenbus_find_driver(), and zlib_okx().

◆ strncmp()

int __pure strncmp ( const char *  first,
const char *  second,
size_t  max 
)

Compare strings.

Parameters
firstFirst string
secondSecond string
maxMaximum length to compare
Return values
diffDifference

Definition at line 186 of file string.c.

186  {
187  const uint8_t *first_bytes = ( ( const uint8_t * ) first );
188  const uint8_t *second_bytes = ( ( const uint8_t * ) second );
189  int diff;
190 
191  for ( ; max-- ; first_bytes++, second_bytes++ ) {
192  diff = ( *first_bytes - *second_bytes );
193  if ( diff )
194  return diff;
195  if ( ! *first_bytes )
196  return 0;
197  }
198  return 0;
199 }
#define max(x, y)
Definition: ath.h:39
uint32_t first
First block in range.
Definition: pccrr.h:14
unsigned char uint8_t
Definition: stdint.h:10
static __always_inline int off_t userptr_t second
Definition: librm.h:166

References first, max, and second.

Referenced by dhcp_discovery_rx(), http_parse_status(), iscsi_handle_string(), match_long_option(), nfs_uri_symlink(), parse_uri(), peerdist_discovery_reply_tag(), strcmp(), string_test_exec(), and undinet_probe().

◆ strlen()

size_t __pure strlen ( const char *  src)

Get length of string.

Parameters
srcString
Return values
lenLength

Definition at line 243 of file string.c.

243  {
244 
245  return strnlen ( src, ~( ( size_t ) 0 ) );
246 }
static const void * src
Definition: string.h:47
size_t strnlen(const char *src, size_t max)
Get length of string.
Definition: string.c:255

References src, and strnlen().

Referenced by __attribute__(), _print_label(), acpimac_extract(), add_dynui_item(), add_parameter(), alloc_form(), autovivify_child_settings(), base16_decoded_max_len(), base16_encode_okx(), base64_decoded_max_len(), base64_encode_okx(), bzimage_set_cmdline(), cmdline_init(), comboot_copy_cmdline(), concat_args(), cpio_name_len(), create_dynui(), create_parameters(), cwuri_fetch_uri(), dns_decode_okx(), dns_list_okx(), draw_editbox(), draw_menu_item(), edit_string(), editstring_okx(), efi_block_exec(), efi_block_filename(), efi_cmdline_init(), efi_file_varlen(), efi_ifr_package(), efi_image_path(), efi_iscsi_path(), efi_local_open_resolved(), efi_snp_hii_append(), efi_snp_hii_store(), efivars_fetch(), generic_settings_store(), guestinfo_fetch_type(), guestrpc_command(), http_digest_update(), http_format_basic_auth(), http_parse_headers(), http_parse_ntlm_auth(), ib_srp_parse_byte_string(), ibft_set_string(), image_argument(), init_editbox(), ipair_tag(), ipv6_sock_aton(), iscsi_handle_chap_c_value(), iscsi_handle_chap_i_value(), iscsi_handle_chap_r_value(), iwlist(), linebuf_accumulated_okx(), match_long_option(), mschapv2_challenge_hash(), net80211_marshal_request_info(), netdev_fetch_bustype(), netdev_fetch_chip(), netdev_fetch_ifname(), netdev_fetch_linktype(), nfs_uri_symlink(), parse_net_args(), parse_string_setting(), parse_uri(), peerblk_retrieval_uri(), peerdisc_create(), peerdisc_discovered(), peerdisc_socket_rx(), peerdisc_socket_tx(), peerdist_discovery_reply(), peerdist_discovery_reply_tag(), peerdist_discovery_reply_values(), pem_marker(), prf_sha1(), pxenv_file_cmdline(), resolv(), resolv_setting(), resolve_path(), show_menu(), snprintf_okx(), strcat(), string_copy(), string_test_exec(), strstr(), sync_console(), tftp_send_error(), tftp_send_rrq(), tls_client_hello(), tls_session(), trivial_strlen_user(), uri_copy_fields(), uri_decode_inplace(), uri_encode_string(), uri_format_okx(), uri_pxe_okx(), validator_start_download(), version_fetch(), wpa_psk_start(), x509_check_dnsname(), xenbus_probe(), xenbus_probe_device(), xenbus_probe_type(), xenstore_dump(), xenstore_request(), xenstore_response(), and xenstore_send_string().

◆ strnlen()

size_t __pure strnlen ( const char *  src,
size_t  max 
)

Get length of string.

Parameters
srcString
maxMaximum length
Return values
lenLength

Definition at line 255 of file string.c.

255  {
256  const uint8_t *src_bytes = ( ( const uint8_t * ) src );
257  size_t len = 0;
258 
259  while ( max-- && *(src_bytes++) )
260  len++;
261  return len;
262 }
static const void * src
Definition: string.h:47
#define max(x, y)
Definition: ath.h:39
unsigned char uint8_t
Definition: stdint.h:10
uint32_t len
Length.
Definition: ena.h:14

References len, max, and src.

Referenced by efi_pecoff_debug_name(), fdt_string(), fdt_traverse(), iscsi_handle_strings(), string_test_exec(), strlen(), strndup(), tftp_rx_oack(), and used_len_string().

◆ strchr()

char* __pure strchr ( const char *  src,
int  character 
)

Find character within a string.

Parameters
srcString
characterCharacter to find
Return values
foundFound character, or NULL if not found

Definition at line 271 of file string.c.

271  {
272  const uint8_t *src_bytes = ( ( const uint8_t * ) src );
273 
274  for ( ; ; src_bytes++ ) {
275  if ( *src_bytes == character )
276  return ( ( char * ) src_bytes );
277  if ( ! *src_bytes )
278  return NULL;
279  }
280 }
static const void * src
Definition: string.h:47
unsigned char uint8_t
Definition: stdint.h:10
#define NULL
NULL pointer (VOID *)
Definition: Base.h:321

References NULL, and src.

Referenced by base64_decode(), bzimage_parse_cmdline(), cmdline_strip(), comboot_fetch_kernel(), cpio_name_len(), dns_resolv(), efi_pecoff_debug_name(), fdt_path(), http_parse_header(), ipv6_sock_aton(), iscsi_handle_string(), iscsi_handle_targetaddress_value(), netbios_domain(), nfs_uri_init(), parse_setting_name(), parse_settings_name(), parse_uri(), slam_parse_multicast_address(), string_test_exec(), tftp_process_multicast(), uri_character_escaped(), and x509_check_dnsname().

◆ strrchr()

char* __pure strrchr ( const char *  src,
int  character 
)

Find rightmost character within a string.

Parameters
srcString
characterCharacter to find
Return values
foundFound character, or NULL if not found

Definition at line 289 of file string.c.

289  {
290  const uint8_t *src_bytes = ( ( const uint8_t * ) src );
291  const uint8_t *start = src_bytes;
292 
293  while ( *src_bytes )
294  src_bytes++;
295  for ( src_bytes-- ; src_bytes >= start ; src_bytes-- ) {
296  if ( *src_bytes == character )
297  return ( ( char * ) src_bytes );
298  }
299  return NULL;
300 }
static const void * src
Definition: string.h:47
uint32_t start
Starting offset.
Definition: netvsc.h:12
unsigned char uint8_t
Definition: stdint.h:10
#define NULL
NULL pointer (VOID *)
Definition: Base.h:321

References NULL, src, and start.

Referenced by basename(), com32_identify(), comboot_identify(), dirname(), efi_file_open(), efi_pecoff_debug_name(), image_strip_suffix(), nfs_uri_next_mountpoint(), parse_uri(), and string_test_exec().

◆ strstr()

char* __pure strstr ( const char *  haystack,
const char *  needle 
)

Find substring.

Parameters
haystackString
needleSubstring
Return values
foundFound substring, or NULL if not found

Definition at line 309 of file string.c.

309  {
310  size_t len = strlen ( needle );
311 
312  for ( ; *haystack ; haystack++ ) {
313  if ( memcmp ( haystack, needle, len ) == 0 )
314  return ( ( char * ) haystack );
315  }
316  return NULL;
317 }
size_t strlen(const char *src)
Get length of string.
Definition: string.c:243
int memcmp(const void *first, const void *second, size_t len)
Compare memory regions.
Definition: string.c:114
uint32_t len
Length.
Definition: ena.h:14
#define NULL
NULL pointer (VOID *)
Definition: Base.h:321

References len, memcmp(), NULL, and strlen().

Referenced by cmdline_strip(), comboot_fetch_kernel(), image_argument(), ipair_tag(), parse_uri(), string_test_exec(), and ucode_exec().

◆ stpcpy()

char* stpcpy ( char *  dest,
const char *  src 
)

Copy string.

Parameters
destDestination string
srcSource string
Return values
dnulTerminating NUL of destination string

Definition at line 326 of file string.c.

326  {
327  const uint8_t *src_bytes = ( ( const uint8_t * ) src );
328  uint8_t *dest_bytes = ( ( uint8_t * ) dest );
329 
330  /* We cannot use strncpy(), since that would pad the destination */
331  for ( ; ; src_bytes++, dest_bytes++ ) {
332  *dest_bytes = *src_bytes;
333  if ( ! *dest_bytes )
334  break;
335  }
336  return ( ( char * ) dest_bytes );
337 }
static const void * src
Definition: string.h:47
unsigned char uint8_t
Definition: stdint.h:10
if(len >=6 *4) __asm__ __volatile__("movsl" if(len >=5 *4) __asm__ __volatile__("movsl" if(len >=4 *4) __asm__ __volatile__("movsl" if(len >=3 *4) __asm__ __volatile__("movsl" if(len >=2 *4) __asm__ __volatile__("movsl" if(len >=1 *4) __asm__ __volatile__("movsl" if((len % 4) >=2) __asm__ __volatile__("movsw" if((len % 2) >=1) __asm__ __volatile__("movsb" return dest
Definition: string.h:150

References dest, and src.

Referenced by alloc_form(), strcpy(), and string_test_exec().

◆ strcpy()

char* strcpy ( char *  dest,
const char *  src 
)

Copy string.

Parameters
destDestination string
srcSource string
Return values
destDestination string

Definition at line 346 of file string.c.

346  {
347 
348  stpcpy ( dest, src );
349  return dest;
350 }
static const void * src
Definition: string.h:47
char * stpcpy(char *dest, const char *src)
Copy string.
Definition: string.c:326
if(len >=6 *4) __asm__ __volatile__("movsl" if(len >=5 *4) __asm__ __volatile__("movsl" if(len >=4 *4) __asm__ __volatile__("movsl" if(len >=3 *4) __asm__ __volatile__("movsl" if(len >=2 *4) __asm__ __volatile__("movsl" if(len >=1 *4) __asm__ __volatile__("movsl" if((len % 4) >=2) __asm__ __volatile__("movsw" if((len % 2) >=1) __asm__ __volatile__("movsb" return dest
Definition: string.h:150

References dest, src, and stpcpy().

Referenced by add_dynui_item(), add_parameter(), cmdline_strip(), create_dynui(), create_parameters(), efi_ifr_package(), ibft_set_string(), icert_encode(), inet6_ntoa(), net80211_prepare_assoc(), net80211_probe_start(), net80211_probe_step(), nfs_uri_symlink(), parse_uri(), peerdisc_discovered(), peerdist_discovery_reply(), resolv_setting(), strcat(), string_test_exec(), tftp_send_error(), and tls_session().

◆ strncpy()

char* strncpy ( char *  dest,
const char *  src,
size_t  max 
)

Copy string.

Parameters
destDestination string
srcSource string
maxMaximum length
Return values
destDestination string

Definition at line 360 of file string.c.

360  {
361  const uint8_t *src_bytes = ( ( const uint8_t * ) src );
362  uint8_t *dest_bytes = ( ( uint8_t * ) dest );
363 
364  for ( ; max ; max--, src_bytes++, dest_bytes++ ) {
365  *dest_bytes = *src_bytes;
366  if ( ! *dest_bytes )
367  break;
368  }
369  while ( max-- )
370  *(dest_bytes++) = '\0';
371  return dest;
372 }
static const void * src
Definition: string.h:47
#define max(x, y)
Definition: ath.h:39
unsigned char uint8_t
Definition: stdint.h:10
if(len >=6 *4) __asm__ __volatile__("movsl" if(len >=5 *4) __asm__ __volatile__("movsl" if(len >=4 *4) __asm__ __volatile__("movsl" if(len >=3 *4) __asm__ __volatile__("movsl" if(len >=2 *4) __asm__ __volatile__("movsl" if(len >=1 *4) __asm__ __volatile__("movsl" if((len % 4) >=2) __asm__ __volatile__("movsw" if((len % 2) >=1) __asm__ __volatile__("movsb" return dest
Definition: string.h:150

References dest, max, and src.

Referenced by buildarch_fetch(), cwuri_fetch_uri(), efi_block_install(), int13_install(), netdev_fetch_bustype(), netdev_fetch_chip(), netdev_fetch_ifname(), netdev_fetch_linktype(), platform_fetch(), slk_set(), string_test_exec(), and version_fetch().

◆ strcat()

char* strcat ( char *  dest,
const char *  src 
)

Concatenate string.

Parameters
destDestination string
srcSource string
Return values
destDestination string

Definition at line 381 of file string.c.

381  {
382 
383  strcpy ( ( dest + strlen ( dest ) ), src );
384  return dest;
385 }
static const void * src
Definition: string.h:47
char * strcpy(char *dest, const char *src)
Copy string.
Definition: string.c:346
size_t strlen(const char *src)
Get length of string.
Definition: string.c:243
if(len >=6 *4) __asm__ __volatile__("movsl" if(len >=5 *4) __asm__ __volatile__("movsl" if(len >=4 *4) __asm__ __volatile__("movsl" if(len >=3 *4) __asm__ __volatile__("movsl" if(len >=2 *4) __asm__ __volatile__("movsl" if(len >=1 *4) __asm__ __volatile__("movsl" if((len % 4) >=2) __asm__ __volatile__("movsw" if((len % 2) >=1) __asm__ __volatile__("movsb" return dest
Definition: string.h:150

References dest, src, strcpy(), and strlen().

Referenced by _print_label(), and string_test_exec().

◆ strdup()

char* __malloc strdup ( const char *  src)

Duplicate string.

Parameters
srcSource string
Return values
dupDuplicated string, or NULL if allocation failed

Definition at line 393 of file string.c.

393  {
394 
395  return strndup ( src, ~( ( size_t ) 0 ) );
396 }
static const void * src
Definition: string.h:47
char * strndup(const char *src, size_t max)
Duplicate string.
Definition: string.c:405

References src, and strndup().

Referenced by expand_settings(), history_append(), history_store(), http_parse_ntlm_auth(), ib_srp_parse_root_path(), image_set_cmdline(), image_set_name(), ipv6_sock_aton(), iscsi_handle_targetaddress_value(), iscsi_parse_root_path(), nfs_parse_uri(), nfs_uri_init(), nfs_uri_next_mountpoint(), oncrpc_init_cred_sys(), parse_settings_name(), peerdisc_discovered(), resolve_path(), resolve_uri(), slam_parse_multicast_address(), string_test_exec(), and system().

◆ strndup()

char* __malloc strndup ( const char *  src,
size_t  max 
)

Duplicate string.

Parameters
srcSource string
maxMaximum length
Return values
dupDuplicated string, or NULL if allocation failed

Definition at line 405 of file string.c.

405  {
406  size_t len = strnlen ( src, max );
407  char *dup;
408 
409  dup = malloc ( len + 1 /* NUL */ );
410  if ( dup ) {
411  memcpy ( dup, src, len );
412  dup[len] = '\0';
413  }
414  return dup;
415 }
static const void * src
Definition: string.h:47
#define max(x, y)
Definition: ath.h:39
void * memcpy(void *dest, const void *src, size_t len) __nonnull
size_t strnlen(const char *src, size_t max)
Get length of string.
Definition: string.c:255
void * malloc(size_t size)
Allocate memory.
Definition: malloc.c:583
uint32_t len
Length.
Definition: ena.h:14

References len, malloc(), max, memcpy(), src, and strnlen().

Referenced by nfs_deliver(), strdup(), and string_test_exec().

◆ strpbrk()

char* __pure strpbrk ( const char *  string,
const char *  delim 
)

strpbrk - Find the first occurrence of a set of characters @cs: The string to be searched @ct: The characters to search for

Definition at line 47 of file stringextra.c.

48 {
49  const char *sc1,*sc2;
50 
51  for( sc1 = cs; *sc1 != '\0'; ++sc1) {
52  for( sc2 = ct; *sc2 != '\0'; ++sc2) {
53  if (*sc1 == *sc2)
54  return (char *) sc1;
55  }
56  }
57  return NULL;
58 }
#define NULL
NULL pointer (VOID *)
Definition: Base.h:321
uint32_t cs
Definition: librm.h:263

References cs, and NULL.

Referenced by strsep().

◆ strsep()

char* strsep ( char **  s,
const char *  ct 
)

strsep - Split a string into tokens @s: The string to be searched @ct: The characters to search for

strsep() updates @s to point after the token, ready for the next call.

It returns empty tokens, too, behaving exactly like the libc function of that name. In fact, it was stolen from glibc2 and de-fancy-fied. Same semantics, slimmer shape. ;)

Definition at line 73 of file stringextra.c.

74 {
75  char *sbegin = *s, *end;
76 
77  if (sbegin == NULL)
78  return NULL;
79 
80  end = strpbrk(sbegin, ct);
81  if (end)
82  *end++ = '\0';
83  *s = end;
84 
85  return sbegin;
86 }
char * strpbrk(const char *cs, const char *ct)
strpbrk - Find the first occurrence of a set of characters @cs: The string to be searched @ct: The ch...
Definition: stringextra.c:47
uint32_t end
Ending offset.
Definition: netvsc.h:18
#define NULL
NULL pointer (VOID *)
Definition: Base.h:321

References end, NULL, and strpbrk().

Referenced by parse_kv(), and parse_net_args().

◆ strerror()

char* __pure strerror ( int  errno)

Retrieve string representation of error number.

Parameters
errno/rcError number or return status code
Return values
strerrorPointer to error text

If the error is not found in the linked-in error tables, generates a generic "Error 0x<errno>" message.

The pointer returned by strerror() is valid only until the next call to strerror().

Definition at line 78 of file strerror.c.

78  {
79  static char errbuf[64];
80  struct errortab *errortab;
81 
82  /* Allow for strerror(rc) as well as strerror(errno) */
83  if ( errno < 0 )
84  errno = -errno;
85 
86  /* Find the error description, if one exists */
88 
89  /* Construct the error message */
90  if ( errortab ) {
91  snprintf ( errbuf, sizeof ( errbuf ),
92  "%s (" PRODUCT_ERROR_URI ")",
93  errortab->text, errno );
94  } else {
95  snprintf ( errbuf, sizeof ( errbuf ),
96  "Error %#08x (" PRODUCT_ERROR_URI ")",
97  errno, errno );
98  }
99 
100  return errbuf;
101 }
int errno
Global "last error" number.
Definition: errno.c:20
const char * text
Definition: errortab.h:16
#define PRODUCT_ERROR_URI
Definition: branding.h:83
int snprintf(char *buf, size_t size, const char *fmt,...)
Write a formatted string to a buffer.
Definition: vsprintf.c:382
static struct errortab * find_closest_error(int errno)
Find closest error description.
Definition: strerror.c:49

References errno, find_closest_error(), PRODUCT_ERROR_URI, snprintf(), and errortab::text.

Referenced by __stack_chk_fail(), _hunt_mcdi(), abft_install(), acm_control_receive(), acm_control_transmit(), acm_in_complete(), acm_intr_complete(), acm_probe(), acpi_poweroff(), acpi_settings_init(), acpimac_decode_base16(), aoecmd_tx(), aoedev_open(), apply_netdev_settings(), apply_settings(), apply_syslog_settings(), apply_syslogs_settings(), arbel_alloc_icm(), arbel_configure_special_qps(), arbel_create_cq(), arbel_create_eq(), arbel_create_qp(), arbel_destroy_cq(), arbel_destroy_eq(), arbel_destroy_qp(), arbel_dump_cqctx(), arbel_dump_qpctx(), arbel_get_limits(), arbel_ib_close(), arbel_ib_open(), arbel_mad(), arbel_map_vpm(), arbel_mcast_attach(), arbel_mcast_detach(), arbel_modify_qp(), arbel_poll_cq(), arbel_probe(), arbel_setup_mpt(), arbel_start(), arbel_start_firmware(), arbel_stop_firmware(), arp_rx(), arp_tx_request(), asn1_algorithm(), atacmd_close(), atadev_command(), ath5k_handle_rx(), ath5k_hw_channel(), ath5k_reset(), ath5k_tx_processq(), axge_check_link(), axge_in_complete(), axge_intr_complete(), axge_open(), axge_probe(), bios_poweroff(), blktrans_deliver(), bofm_en(), bofm_probe(), bofm_test_init(), builtin_init(), bzimage_check_initrds(), bzimage_exec(), cachedhcp_apply(), cachedhcp_init(), cert_exec(), certstore_apply_settings(), certstore_init(), chained_locate(), choose_exec(), cmdline_init(), cms_cipher_key(), cms_message(), cms_parse_certificates(), cms_parse_cipher_algorithm(), cms_parse_digest_algorithm(), cms_parse_identifier(), cms_parse_mac(), cms_parse_pubkey_algorithm(), cms_verify_digest(), cms_verify_signer(), colour_exec(), com32_load_image(), com32_prepare_bounce_buffer(), comboot_fetch_kernel(), comboot_prepare_segment(), config_exec(), console_exec(), cpair_exec(), cpuid_settings_fetch(), cpuid_settings_init(), create_fakedhcpack(), create_fakedhcpdiscover(), create_fakepxebsack(), create_pinger(), dbg_efi_openers(), dbg_efi_protocol(), dbg_efi_protocols(), der_probe(), dhcp_create_request(), dhcp_proxy_rx(), dhcp_pxebs_rx(), dhcp_request_rx(), dhcp_tx(), dhcpv6_rx(), dhcpv6_tx(), dm96xx_check_link(), dm96xx_in_complete(), dm96xx_intr_complete(), dm96xx_open(), dm96xx_probe(), dm96xx_read_mac(), dm96xx_reset(), dm96xx_rx_mode(), dm96xx_write_mac(), dns_resolv(), dns_xfer_deliver(), downloader_finished(), draw_errors(), drbg_generate(), drbg_instantiate(), drbg_reseed(), dummy_san_hook(), eap_rx_md5(), eap_rx_mschapv2_request(), eap_tx_response(), eapol_eap_rx(), eapol_key_rx(), eapol_tx(), ecam_access(), ecm_fetch_mac(), ecm_in_complete(), ecm_intr_complete(), ecm_open(), ecm_probe(), efab_init_mac(), efi_autoexec_load(), efi_autoexec_network(), efi_block_boot(), efi_block_connect(), efi_block_describe(), efi_block_exec(), efi_block_filename(), efi_block_hook(), efi_block_install(), efi_block_label(), efi_block_local(), efi_block_match(), efi_block_root(), efi_block_rw(), efi_block_scan(), efi_block_unhook(), efi_bofm_start(), efi_bofm_supported(), efi_cachedhcp_record(), efi_child_add(), efi_cmdline_init(), efi_console_init(), efi_download_install(), efi_driver_connect(), efi_driver_handles(), efi_driver_install(), efi_driver_start(), efi_dump_image(), efi_entropy_enable(), efi_entropy_tick(), efi_fdt_init(), efi_file_install(), efi_file_path_claim(), efi_file_path_install(), efi_file_path_uninstall(), efi_file_uninstall(), efi_get_time(), efi_getchar(), efi_image_exec(), efi_image_probe(), efi_init(), efi_local_check_volume_name(), efi_local_len(), efi_local_open_resolved(), efi_local_open_root(), efi_local_open_volume(), efi_local_step(), efi_locate_device(), efi_mp_start_all(), efi_path_net_probe(), efi_pci_info(), efi_pxe_dhcp(), efi_pxe_fake(), efi_pxe_install(), efi_pxe_mtftp(), efi_pxe_tftp_open(), efi_pxe_udp_open(), efi_pxe_udp_write(), efi_pxe_uninstall(), efi_service_add(), efi_service_del(), efi_set_autoboot_ll_addr(), efi_shim_cmdline(), efi_shim_inhibit_pxe(), efi_snp_hii_fetch(), efi_snp_hii_install(), efi_snp_hii_store(), efi_snp_hii_uninstall(), efi_snp_initialize(), efi_snp_mcast_ip_to_mac(), efi_snp_probe(), efi_snp_receive(), efi_snp_remove(), efi_snp_reset(), efi_snp_transmit(), efi_tick_shutdown(), efi_tick_startup(), efi_udelay(), efi_urealloc(), efi_usb_async_start(), efi_usb_control_transfer(), efi_usb_get_string_descriptor(), efi_usb_install(), efi_usb_open(), efi_usb_probe(), efi_usb_sync_transfer(), efi_usb_uninstall(), efi_veto(), efi_veto_close(), efi_veto_close_handle(), efi_veto_close_protocol(), efi_veto_disconnect(), efi_veto_find(), efi_veto_uninstall(), efi_veto_unload(), efi_vlan_set(), efi_watchdog_expired(), efi_watchdog_shutdown(), efidev_alloc(), efifb_draw(), efifb_init(), efifb_restore(), efifb_select_mode(), efipci_discover_any(), efipci_discover_one(), efipci_dma_alloc(), efipci_dma_map(), efipci_dma_set_mask(), efipci_ioremap(), efipci_open(), efipci_read(), efipci_root_open(), efipci_start(), efipci_write(), efirng_get_noise(), efivars_fetch(), efivars_find(), efivars_init(), ehci_device_address(), ehci_endpoint_close(), ehci_endpoint_poll(), elf_load_segment(), elfboot_exec(), embedded_init(), entropy_enable(), entropy_enable_working(), eoib_duplicate(), eoib_join_broadcast_group(), eoib_link_state_changed(), eoib_open(), exanic_fetch_mac(), exanic_poll_rx(), fc_els_close(), fc_els_flogi_rx(), fc_els_plogi_rx(), fc_els_prli_rx(), fc_els_rx(), fc_els_step(), fc_els_tx(), fc_ns_query_step(), fc_peer_close(), fc_peer_examine(), fc_peer_logout(), fc_peer_plogi(), fc_port_examine(), fc_port_login(), fc_port_logout(), fc_port_ns_plogi_done(), fc_ulp_close(), fc_ulp_examine(), fc_ulp_logout(), fc_xchg_close(), fc_xchg_respond(), fc_xchg_rx(), fc_xchg_tx(), fcels(), fcoe_deliver(), fcoe_expired(), fcoe_fip_rx_els_response(), fcoe_fip_rx_vlan(), fcoe_fip_tx_keepalive(), fcoe_fip_tx_solicitation(), fcoe_fip_tx_vlan(), fcoe_rx(), fcpcmd_close(), fcpcmd_send_cmnd(), fcpcmd_send_wrdata(), fcpdev_close(), fcpdev_examine(), fcpdev_open(), fcpdev_scsi_command(), fcpeerstat(), fcportstat(), fdt_child(), fdt_property(), flexboot_nodnic_eth_close(), flexboot_nodnic_eth_transmit(), flexboot_nodnic_poll_cq(), flexboot_nodnic_register_netdev(), ftp_data_closed(), ftp_done(), ftp_open(), goto_exec(), guestinfo_fetch_type(), guestinfo_init(), guestinfo_net_probe(), gve_admin(), gve_setup(), gve_startup(), gzip_extract(), hermon_alloc_mtt(), hermon_bofm_harvest(), hermon_bofm_probe(), hermon_bofm_update(), hermon_configure_special_qps(), hermon_create_cq(), hermon_create_eq(), hermon_create_qp(), hermon_destroy_cq(), hermon_destroy_eq(), hermon_destroy_qp(), hermon_dump_cqctx(), hermon_dump_eqctx(), hermon_dump_eqes(), hermon_dump_qpctx(), hermon_eth_close(), hermon_eth_open(), hermon_eth_transmit(), hermon_get_cap(), hermon_ib_close(), hermon_ib_open(), hermon_mad(), hermon_map_icm(), hermon_map_vpm(), hermon_mcast_attach(), hermon_mcast_detach(), hermon_modify_qp(), hermon_poll_cq(), hermon_register_ibdev(), hermon_register_netdev(), hermon_sense_port_type(), hermon_set_port_type(), hermon_setup_mpt(), hermon_start(), hermon_start_firmware(), hermon_stop_firmware(), hermon_unmap_mpt(), http_block_read(), http_block_read_capacity(), http_conn_close(), http_connect(), http_open(), http_parse_ntlm_auth(), http_parse_www_authenticate(), http_redirect(), http_reopen(), http_rx_headers(), http_rx_linebuf(), http_transfer_complete(), http_tx_request(), hub_clear_changes(), hub_clear_tt(), hub_complete(), hub_disable(), hub_enable(), hub_open(), hub_probe(), hub_refill(), hub_speed(), hunt_open(), hv_post_message(), hv_signal_event(), hv_unquiesce(), hvm_ioremap(), hvm_iounmap(), hvm_map_grant(), hvm_map_hypercall(), hvm_map_xenstore(), hvm_probe(), ib_cm_path_complete(), ib_cm_req_complete(), ib_cm_send_drep(), ib_cm_send_rtu(), ib_cmrc_changed(), ib_cmrc_complete_recv(), ib_cmrc_complete_send(), ib_cmrc_open(), ib_cmrc_xfer_deliver(), ib_create_cq(), ib_create_mi(), ib_create_qp(), ib_mcast_complete(), ib_mcast_join(), ib_mcast_leave(), ib_mi_complete_recv(), ib_mi_send(), ib_modify_qp(), ib_open(), ib_path_complete(), ib_post_recv(), ib_post_send(), ib_refill_recv(), ib_sbft_install(), ib_set_pkey_table(), ib_set_port_info(), ib_sma_guid_info(), ib_sma_node_desc(), ib_sma_node_info(), ib_sma_pkey_table(), ib_sma_port_info(), ib_sma_set_pkey_table(), ib_sma_set_port_info(), ib_smc_get_guid_info(), ib_smc_get_node_info(), ib_smc_get_pkey_table(), ib_smc_get_port_info(), ib_srp_open(), ib_srp_parse_root_path(), ibft_fill_nic(), ibft_install(), icert_cert(), icert_certs(), icmpv6_rx(), icplus_init_phy(), icplus_probe(), ifconf(), ifopen(), ifstat(), ifstat_errors(), image_asn1(), image_exec(), image_extract(), image_pixbuf(), image_probe(), image_replace(), imgdecrypt(), imgdecrypt_exec(), imgdownload(), imgextract(), imgsingle_exec(), imgtrust_exec(), imgverify(), imgverify_exec(), imux_close(), imux_in_complete(), imux_out_complete(), imux_probe(), inc_exec(), init_i2c_bit_basher(), int13_boot(), int13_cdrom_read_boot_catalog(), int13_describe(), int13_device_path_info(), int13_extended_rw(), int13_get_extended_parameters(), int13_guess_geometry_hdd(), int13_hook(), int13_parse_eltorito(), int13_rw_sectors(), int13con_find(), intel_fetch_mac_eeprom(), intelvf_mbox_reset(), intelvf_mbox_set_mac(), intelvf_mbox_set_mtu(), intelxl_msix_enable(), intelxvf_mbox_queues(), intelxvf_mbox_version(), intelxvf_open(), intelxvf_probe(), intf_close(), intf_shutdown(), ipair_rx_session(), iphone_check_link(), iphone_in_complete(), iphone_open(), iphone_probe(), ipoib_join_broadcast_group(), ipoib_link_state_changed(), ipoib_open(), ipoib_translate_rx_arp(), ipoib_transmit(), ipv4_gratuitous_arp(), ipv4_rx(), ipv4_tx(), ipv6_create_routes(), ipv6_rx(), ipv6_tx(), ipv6conf_rx_router_advertisement(), iscsi_close(), iscsi_handle_chap_c_value(), iscsi_handle_chap_i_value(), iscsi_handle_chap_r_value(), iscsi_handle_string(), iscsi_open(), iscsi_open_connection(), iscsi_rx_login_response(), iscsi_rx_scsi_response(), iscsi_socket_deliver(), iscsi_tx_step(), iwlist(), lan78xx_open(), lan78xx_probe(), linda_complete_recv(), linda_init_i2c(), linda_probe(), linda_program_uc_ram(), linda_read_eeprom(), linda_verify_uc_ram(), linebuf_consume_okx(), lldp_probe(), login_exec(), loopback_test(), lotest_exec(), main_loop(), memmap_settings_init(), mii_reset(), mii_restart(), mnpnet_open(), mnpnet_refill_rx(), mnpnet_start(), mnpnet_transmit(), mnptemp_create(), monojob_wait(), multiboot_add_modules(), multiboot_load_elf(), multiboot_load_raw(), myri10ge_net_open(), myri10ge_pci_probe(), named_resolv_done(), natsemi_hwaddr(), nbi_prepare_segment(), ncm_in_complete(), ncm_intr_complete(), ncm_open(), ncm_probe(), ndp_prefix_fetch_ip6(), ndp_rx_neighbour_advertisement_ll_target(), ndp_rx_neighbour_solicitation_ll_source(), ndp_rx_router_advertisement_ll_source(), ndp_tx_ll_addr(), neighbour_destroy(), neighbour_discovered(), neighbour_expired(), net80211_probe_step(), net80211_step_associate(), netboot(), netdev_config_close(), netdev_configure(), netdev_link_err(), netdev_redirect_settings_init(), netdev_rx_err(), netdev_tx_err(), netfront_close(), netfront_create_event(), netfront_create_ring(), netfront_open(), netfront_poll_rx(), netfront_poll_tx(), netfront_probe(), netfront_push(), netfront_read_mac(), netfront_reset(), netfront_rm(), netfront_send_event(), netfront_write_num(), netvsc_control(), netvsc_create_buffer(), netvsc_destroy_buffer(), netvsc_establish_buffer(), netvsc_initialise(), netvsc_ndis_version(), netvsc_open(), netvsc_probe(), netvsc_recv_data(), netvsc_reset(), netvsc_revoke_buffer(), netvsc_transmit(), nfs_done(), nii_get_init_info(), nii_get_station_address(), nii_initialise_flags(), nii_io(), nii_map(), nii_open(), nii_pci_open(), nii_poll(), nii_poll_rx(), nii_set_rx_filters(), nii_set_station_address(), nii_shutdown(), nii_start(), nii_start_undi(), nii_stop_undi(), nii_transmit(), nslookup(), ntp_exec(), ntp_request(), nvo_load(), nvo_realloc_dhcpopt(), nvo_save(), nvo_store(), nvs_vpd_init(), nvs_vpd_read(), nvs_vpd_resize(), nvs_vpd_write(), ocsp_check_signature(), ocsp_parse_basic_response(), ocsp_parse_certs(), ocsp_parse_response_status(), ocsp_parse_responses(), ocsp_request(), ocsp_validate(), pci_probe(), pci_settings_init(), pciscan_exec(), peerblk_decrypt(), peerblk_deliver(), peerblk_done(), peerblk_parse_header(), peerblk_raw_open(), peerblk_retrieval_open(), peerblk_retrieval_rx(), peerdisc_socket_open(), peerdisc_socket_rx(), peerdisc_socket_tx(), peerdist_info(), peerdist_info_v1(), peerdist_info_v1_block(), peerdist_info_v1_block_offset(), peerdist_info_v1_segment(), peerdist_info_v2(), peerdist_info_v2_segment(), peerdist_info_v2_segments(), peermux_info_close(), peermux_step(), pem_asn1(), pem_image_asn1(), pem_image_probe(), phantom_create_rx_ctx(), phantom_create_tx_ctx(), phantom_destroy_rx_ctx(), phantom_destroy_tx_ctx(), phantom_fetch_setting(), phantom_issue_cmd(), phantom_probe(), phantom_store_setting(), ping(), ping_callback(), ping_deliver(), ping_open(), pinger_expired(), png_image_data(), poweroff_exec(), pxe_deactivate(), pxe_exec(), pxe_fake_cached_info(), pxe_menu_parse(), pxe_tftp_open(), pxebs_exec(), pxenv_udp_open(), pxenv_udp_write(), pxenv_undi_get_mcast_address(), pxenv_undi_open(), pxenv_undi_reset_adapter(), pxenv_undi_transmit(), qib7322_ahb_request(), qib7322_complete_recv(), qib7322_init_i2c(), qib7322_probe(), qib7322_read_eeprom(), rbg_startup(), rdc_check_link(), rdc_init_phy(), rdtsc_probe(), realtek_init_eeprom(), realtek_phy_reset(), realtek_phy_speed(), realtek_probe(), register_ibdev(), register_netdev(), register_rndis(), register_usb(), register_usb_hub(), resmux_try(), rhine_probe(), rndis_describe(), rndis_filter(), rndis_open(), rndis_tx_message(), rootdev_probe(), rsa_encrypt(), sandev_command_read_capacity(), sandev_command_rw(), sandev_describe(), sandev_parse_iso9660(), sandev_reopen(), sanpath_block_close(), sanpath_open(), scsicmd_close(), scsicmd_command(), scsidev_ready(), serial_init(), set_core_exec(), show_exec(), slam_finished(), slam_open(), slam_pull_header(), smbios_init(), smsc75xx_dump_statistics(), smsc75xx_in_complete(), smsc75xx_open(), smsc75xx_probe(), smsc95xx_dump_statistics(), smsc95xx_in_complete(), smsc95xx_open(), smsc95xx_probe(), smsc95xx_reset(), smsc95xx_vm3_fetch_mac(), smscusb_get_statistics(), smscusb_intr_complete(), smscusb_mii_check_link(), smscusb_mii_open(), smscusb_raw_readl(), smscusb_raw_writel(), snpnet_close(), snpnet_open(), snpnet_poll_rx(), snpnet_poll_tx(), snpnet_rx_filters(), snpnet_start(), snpnet_stop(), snpnet_transmit(), srp_cmd(), srp_login(), srp_open(), srpcmd_close(), srpdev_close(), srpdev_deliver(), start_dhcpv6(), start_ntp(), startup_test(), sync_exec(), syslog_putchar(), syslogs_close(), syslogs_putchar(), tcp_open(), tcp_rx_data(), tcp_xmit_reset(), tcp_xmit_sack(), test_init(), tftp_core_open(), tftp_done(), tftp_presize(), tftp_reopen(), tftp_reopen_mc(), tftp_rx_data(), tg3_get_invariants(), tg3_open(), threewire_detect_address_len(), threewire_read(), threewire_write(), timer_probe(), tls_generate_keys(), tls_generate_random(), tls_new_change_cipher(), tls_new_data(), tls_new_server_hello_done(), tls_parse_chain(), tls_send_certificate_verify(), tls_send_client_key_exchange(), tls_send_client_key_exchange_dhe(), tls_send_client_key_exchange_ecdhe(), tls_send_client_key_exchange_pubkey(), tls_send_plaintext(), tls_tx_step(), tls_validator_done(), txnic_bgx_mac(), ucode_update_all(), udp_open_common(), udp_tx(), uhci_device_address(), undi_load(), undinet_call(), undinet_transmit(), unhide_etherboot(), uriboot(), usb_autoconfigure(), usb_complete_err(), usb_config_descriptor(), usb_control(), usb_endpoint_clear_halt(), usb_endpoint_clear_tt(), usb_endpoint_mtu(), usb_endpoint_open(), usb_endpoint_reset(), usb_get_default_language(), usb_hotplugged(), usb_message(), usb_probe(), usb_settings_init(), usb_stream(), usbblk_in_complete(), usbblk_open(), usbblk_open_uri(), usbblk_out_command(), usbblk_out_complete(), usbblk_out_data(), usbblk_probe(), usbhid_describe(), usbhid_open(), usbio_bulk_in_poll(), usbio_bulk_out_poll(), usbio_config(), usbio_control_poll(), usbio_interfaces(), usbio_interrupt_open(), usbio_open(), usbio_path(), usbio_start(), usbio_supported(), usbkbd_complete(), usbkbd_probe(), usbkbd_set_leds(), usbnet_open(), usbscan_exec(), validator_append(), validator_ocsp_validate(), validator_start_download(), validator_start_ocsp(), validator_step(), validator_xfer_deliver(), vcreate_exec(), vdestroy_exec(), velocity_probe(), vesafb_mode_info(), vesafb_mode_list(), vesafb_set_mode(), vlan_create(), vlan_rx(), vlan_transmit(), vmbus_close(), vmbus_poll(), vmbus_post_message(), vmbus_probe_channels(), vmbus_reset_channels(), vmbus_signal_event(), vmbus_wait_for_any_message(), vmbus_xfer_page_iobufs(), vmconsole_init(), vmconsole_putchar(), vmxnet3_probe(), wpa_handle_1_of_2(), wpa_handle_3_of_4(), x509_check_ipaddress(), x509_check_signature(), x509_parse(), x509_parse_basic_constraints(), x509_parse_extension(), x509_parse_issuer(), x509_parse_key_usage(), x509_parse_public_key(), x509_parse_serial(), x509_parse_subject_alt_name(), x509_parse_tbscertificate(), x509_parse_validity(), x509_parse_version(), xcm_close(), xcm_list(), xcm_reopen(), xcm_step(), xenbus_backend_state(), xenbus_backend_wait(), xenbus_probe(), xenbus_probe_device(), xenbus_probe_type(), xenbus_set_state(), xengrant_init(), xenstore_request(), xfer_deliver(), xfer_open_uri(), xfer_vredirect(), xferbuf_ensure_size(), xhci_address_device(), xhci_command(), xhci_complete(), xhci_configure_endpoint(), xhci_deconfigure_endpoint(), xhci_disable_slot(), xhci_enable_slot(), xhci_evaluate_context(), xhci_host_controller(), xhci_nop(), xhci_reset_endpoint(), xhci_set_tr_dequeue_pointer(), xhci_stop_endpoint(), xhci_transfer(), xsigo_ib_open(), xsigo_xcm_complete(), xsigo_xds_complete(), xsmp_tx_session(), xsmp_tx_xve(), xve_create(), xve_open(), and zlib_deflate().