iPXE
stddef.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define NULL   ( ( void * ) 0 )
 EFI headers also define NULL.
#define offsetof(type, field)
 Get offset of a field within a structure.
#define container_of(ptr, type, field)
 Get containing structure.
#define __WCHAR_TYPE__   uint16_t
#define __WINT_TYPE__   int

Typedefs

typedef __WCHAR_TYPE__ wchar_t
typedef __WINT_TYPE__ wint_t

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)

Macro Definition Documentation

◆ NULL

#define NULL   ( ( void * ) 0 )

EFI headers also define NULL.

Null pointer

Definition at line 13 of file stddef.h.

◆ offsetof

#define offsetof ( type,
field )
Value:
( ( size_t ) &( ( ( type * ) NULL )->field ) )
#define NULL
NULL pointer (VOID *)
Definition Base.h:322
__SIZE_TYPE__ size_t
Definition stdint.h:6
uint32_t type
Operating system type.
Definition ena.h:1

Get offset of a field within a structure.

Parameters
typeStructure type
fieldField within structure
Return values
offsetOffset within structure

Definition at line 25 of file stddef.h.

Referenced by __setting(), __setting(), arbel_create_recv_wq(), arbel_fill_mlx_send_wqe(), arbel_fill_rc_send_wqe(), arbel_fill_ud_send_wqe(), asn1_enter_bits(), dhcppkt_init(), dhcppkt_len(), dhcpv6_iaaddr(), dhcpv6_rx(), dns_question(), dns_resolv(), dns_xfer_deliver(), draw_setting_row(), ecam_find(), efi_ifr_package(), efi_ifr_string(), efi_nullify_pxe(), efi_nullify_snp(), efi_path_uri(), efisig_asn1(), exanic_transmit(), fcoe_deliver(), fcoe_fip_rx_els_response(), gve_describe(), hash_df(), heap_realloc(), hermon_fill_eth_send_wqe(), hermon_fill_mlx_send_wqe(), hermon_fill_rc_send_wqe(), hermon_fill_ud_send_wqe(), hv_wait_for_message(), ib_sbft_install(), ibft_install(), int13_extended_rw(), int13_get_extended_parameters(), int13_load_eltorito(), int13_load_mbr(), interrupt_dump(), ipv6conf_rx_router_advertisement(), md4_final(), md5_final(), meme820(), natsemi_create_ring(), ncm_in_complete(), ncm_out_transmit(), ndp_rx_neighbour(), ndp_rx_neighbour_advertisement_ll_target(), ndp_rx_neighbour_solicitation_ll_source(), ndp_rx_router_advertisement(), ndp_rx_router_advertisement_ll_source(), ntlm_response(), peerblk_parse_block(), peerblk_parse_useless(), peerblk_retrieval_open(), peerdist_info_v1_block(), pxebs_list(), select_setting_row(), sha1_final(), sha256_final(), sha512_final(), spcr_console(), usb_describe(), usb_get_mtu(), virtio_pci_find_capability(), virtio_pci_map_capability(), virtnet_probe_legacy(), virtnet_probe_modern(), and vpm_find_vqs().

◆ container_of

#define container_of ( ptr,
type,
field )
Value:
( { \
type *__container; \
const volatile typeof ( __container->field ) *__field = (ptr); \
__container = ( ( ( void * ) __field ) - \
offsetof ( type, field ) ); \
__container; } )
typeof(acpi_finder=acpi_find)
ACPI table finder.
Definition acpi.c:48
#define offsetof(type, field)
Get offset of a field within a structure.
Definition stddef.h:25

Get containing structure.

Parameters
ptrPointer to contained field
typeContaining structure type
fieldField within containing structure
Return values
containerPointer to containing structure

Definition at line 36 of file stddef.h.

36#define container_of( ptr, type, field ) ( { \
37 type *__container; \
38 const volatile typeof ( __container->field ) *__field = (ptr); \
39 __container = ( ( ( void * ) __field ) - \
40 offsetof ( type, field ) ); \
41 __container; } )

Referenced by __attribute__(), _printw_handler(), a3c90x_internal_ReadEeprom(), acm_in_complete(), acm_intr_complete(), acm_out_complete(), acpi_extract(), acpi_poweroff(), acpi_timer_probe(), aes_entry_column(), aoecmd_expired(), aoecmd_free(), aoedev_free(), asn1_built(), atacmd_free(), autovivified_settings_free(), axge_in_complete(), axge_intr_complete(), axge_out_complete(), bnxt_er_task_timer(), bnxt_er_wait_timer(), cgem_expired(), cgem_mii_read(), cgem_mii_write(), cmdline_image_free(), cms_free(), dhcp_free(), dhcp_timer_expired(), dhcppkt_settings_applies(), dhcppkt_settings_fetch(), dhcppkt_settings_store(), dhcpv6_fetch(), dhcpv6_free(), dhcpv6_timer_expired(), dm96xx_in_complete(), dm96xx_intr_complete(), dm96xx_out_complete(), dns_timer_expired(), downloader_free(), draw_editbox(), dt_parent(), eap_rx_mschapv2_request(), eap_rx_mschapv2_success(), eapol_eap_tx(), eapol_expired(), ecam_find(), ecm_in_complete(), ecm_intr_complete(), ecm_out_complete(), edit_editbox(), efi_apple_get_bsdp_response(), efi_apple_get_dhcp_response(), efi_block_io_flush(), efi_block_io_read(), efi_block_io_reset(), efi_block_io_write(), efi_cmdline_free(), efi_file_close(), efi_file_delete(), efi_file_flush(), efi_file_free(), efi_file_get_info(), efi_file_get_position(), efi_file_load(), efi_file_open(), efi_file_read(), efi_file_set_info(), efi_file_set_position(), efi_file_write(), efi_ib_srp_path(), efi_local_free(), efi_local_open_path(), efi_path_fetch(), efi_path_fetch_dns(), efi_path_guid(), efi_path_mac(), efi_path_uri(), efi_path_vlan(), efi_printf_sputc(), efi_pxe_arp(), efi_pxe_dhcp(), efi_pxe_discover(), efi_pxe_fake(), efi_pxe_free(), efi_pxe_ip_filter(), efi_pxe_ip_sockaddr(), efi_pxe_mtftp(), efi_pxe_set_ip_filter(), efi_pxe_set_packets(), efi_pxe_set_parameters(), efi_pxe_set_station_ip(), efi_pxe_start(), efi_pxe_stop(), efi_pxe_udp_read(), efi_pxe_udp_write(), efi_snp_get_controller_name(), efi_snp_get_driver_name(), efi_snp_get_status(), efi_snp_hii_callback(), efi_snp_hii_extract_config(), efi_snp_hii_route_config(), efi_snp_initialize(), efi_snp_load_file(), efi_snp_mcast_ip_to_mac(), efi_snp_nvdata(), efi_snp_receive(), efi_snp_receive_filters(), efi_snp_reset(), efi_snp_shutdown(), efi_snp_start(), efi_snp_station_address(), efi_snp_statistics(), efi_snp_stop(), efi_snp_transmit(), efi_usb_async_complete(), efi_usb_async_interrupt_transfer(), efi_usb_async_isochronous_transfer(), efi_usb_bulk_transfer(), efi_usb_control_transfer(), efi_usb_get_config_descriptor(), efi_usb_get_device_descriptor(), efi_usb_get_endpoint_descriptor(), efi_usb_get_interface_descriptor(), efi_usb_get_string_descriptor(), efi_usb_get_supported_languages(), efi_usb_isochronous_transfer(), efi_usb_port_reset(), efi_usb_sync_complete(), efi_usb_sync_interrupt_transfer(), efi_vlan_find(), efi_vlan_remove(), efi_vlan_set(), efipci_dma_alloc(), efipci_dma_free(), efipci_dma_map(), efipci_dma_set_mask(), efipci_dma_unmap(), efx_probe(), eoib_join_complete(), exanic_expired(), exanic_i2c_read_bit(), exanic_i2c_write_bit(), falcon_i2c_bit_read(), falcon_i2c_bit_write(), falcon_spi_rw(), fbcon_handle_cup(), fbcon_handle_dectcem_reset(), fbcon_handle_dectcem_set(), fbcon_handle_ed(), fbcon_handle_sgr(), fc_els_free(), fc_fill_sockaddr(), fc_link_expired(), fc_ns_query_free(), fc_peer_examine(), fc_port_examine(), fc_ulp_examine(), fc_ulp_free(), fc_xchg_expired(), fc_xchg_free(), fcoe_expired(), fcpcmd_free(), fcpdev_examine(), fragment_expired(), free_image(), free_netdev(), free_parameters(), free_pixbuf(), free_tls(), free_tls_session(), ftp_free(), generic_settings_clear(), generic_settings_fetch(), generic_settings_store(), gve_watchdog(), heap_realloc(), hermon_bofm_harvest(), hermon_bofm_update(), http_conn_expired(), http_conn_free(), http_free(), http_retry_expired(), http_watchdog_expired(), hub_complete(), i2c_bit_read(), i2c_bit_write(), ib_mi_timer_expired(), ib_srp_free(), ibft_complete(), ice_admin_command_buffer(), ice_admin_command_descriptor(), ice_admin_event(), icplus_mii_read_bit(), icplus_mii_write_bit(), icplus_read_eeprom(), icplus_write_eeprom(), ifec_spi_read_bit(), ifec_spi_write_bit(), imux_in_complete(), imux_out_complete(), imux_rx_log(), intel_read_eeprom(), intel_write_eeprom(), intelxlvf_admin_command(), intelxlvf_admin_command_buffer(), intelxlvf_admin_command_descriptor(), intelxlvf_admin_event(), ipair_expired(), ipair_free(), iphone_expired(), iphone_in_complete(), iphone_out_complete(), ipoib_join_complete(), ipv6_fetch(), ipv6conf_expired(), ipv6conf_free(), iscsi_free(), linda_i2c_read_bit(), linda_i2c_write_bit(), lldp_fetch(), mii_bit_read(), mii_bit_write(), myri10ge_nvs_read(), myri10ge_nvs_write(), myri10ge_pcidev(), natsemi_spi_read_bit(), natsemi_spi_write_bit(), ncm_in_complete(), ncm_intr_complete(), ncm_out_complete(), ndp_fetch(), ndp_prefix_fetch_gateway6(), ndp_prefix_fetch_ip6(), ndp_prefix_fetch_len6(), neighbour_expired(), neighbour_free(), netdev_fetch(), netdev_link_block_expired(), netdev_store(), netvsc_buffer_copy(), nfs_free(), ntp_expired(), nvo_fetch(), nvo_realloc_dhcpopt(), nvo_store(), nvs_vpd_read(), nvs_vpd_resize(), nvs_vpd_write(), ocsp_free(), oncrpc_iob_add_cred(), peerblk_discovered(), peerblk_expired(), peerblk_free(), peerdisc_expired(), peerdisc_free(), peerdist_discovery_reply(), peermux_free(), phantom_fetch_setting(), phantom_setting_applies(), phantom_store_setting(), pinger_expired(), pool_expired(), posix_file_free(), printf_sputc(), privkey_free(), qib7322_i2c_read_bit(), qib7322_i2c_write_bit(), rdc_mii_read(), rdc_mii_write(), realtek_mii_read(), realtek_mii_write(), realtek_spi_close_bit(), realtek_spi_open_bit(), realtek_spi_read_bit(), realtek_spi_write_bit(), return(), rhine_mii_read(), rhine_mii_write(), rtl818x_spi_read_bit(), rtl818x_spi_write_bit(), sandev_command_expired(), sandev_free(), scsicmd_free(), sis190_get_mac_addr_from_apc(), slam_free(), slam_master_timer_expired(), slam_slave_timer_expired(), slirp_expired(), smsc75xx_in_complete(), smsc95xx_in_complete(), smsc95xx_vm3_fetch_mac(), smscusb_intr_complete(), smscusb_mii_read(), smscusb_mii_write(), smscusb_out_complete(), spcr_console(), spi_bit_rw(), srpcmd_free(), tcp_expired(), tcp_keepalive_expired(), tcp_wait_expired(), tftp_free(), tftp_timer_expired(), uri_free(), usb_endpoint_companion_descriptor(), usbblk_in_complete(), usbblk_out_complete(), usbkbd_complete(), validator_free(), velocity_mii_read(), velocity_mii_write(), vmbus_xfer_page_iobufs(), x25519_step(), x509_free(), x509_free_chain(), xcm_free(), xcm_keepalive(), xcm_reopen(), xsigo_discover(), xsigo_free(), xsigo_ib_open(), xsigo_xcm_complete(), and xsigo_xds_complete().

◆ __WCHAR_TYPE__

#define __WCHAR_TYPE__   uint16_t

Definition at line 45 of file stddef.h.

◆ __WINT_TYPE__

#define __WINT_TYPE__   int

Definition at line 48 of file stddef.h.

Typedef Documentation

◆ wchar_t

Definition at line 50 of file stddef.h.

◆ wint_t

Definition at line 51 of file stddef.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )