iPXE
Defines | Typedefs | Functions
stddef.h File Reference
#include <stdint.h>

Go to the source code of this file.

Defines

#define NULL   ( ( void * ) 0 )
 EFI headers also define NULL.
#define offsetof(type, field)   ( ( size_t ) &( ( ( type * ) NULL )->field ) )
 Get offset of a field within a structure.
#define container_of(ptr, type, field)
 Get containing structure.

Typedefs

typedef __WCHAR_TYPE__ wchar_t
typedef __WINT_TYPE__ wint_t

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)

Define Documentation

#define NULL   ( ( void * ) 0 )

EFI headers also define NULL.

Null pointer

Definition at line 12 of file stddef.h.

#define offsetof (   type,
  field 
)    ( ( size_t ) &( ( ( type * ) NULL )->field ) )

Get offset of a field within a structure.

Parameters:
typeStructure type
fieldField within structure
Return values:
offsetOffset within structure

Definition at line 24 of file stddef.h.

Referenced by acpi_checksum(), acpi_find(), arbel_create_recv_wq(), arbel_fill_mlx_send_wqe(), arbel_fill_rc_send_wqe(), arbel_fill_ud_send_wqe(), asn1_bit_string(), dhcppkt_init(), dhcppkt_len(), dhcpv6_iaaddr(), dhcpv6_rx(), dns_question(), dns_resolv(), dns_xfer_deliver(), draw_setting_row(), efi_ifr_package(), efi_ifr_string(), exanic_poll_rx(), exanic_transmit(), fcoe_deliver(), fcoe_fip_rx_els_response(), hash_df(), 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(), realloc(), select_setting_row(), sha1_final(), sha256_final(), sha512_final(), usb_describe(), usb_get_mtu(), virtio_pci_find_capability(), virtio_pci_map_capability(), virtnet_probe_legacy(), virtnet_probe_modern(), and vpm_find_vqs().

#define container_of (   ptr,
  type,
  field 
)
Value:
( {                             \
        type *__container;                                              \
        const volatile typeof ( __container->field ) *__field = (ptr);  \
        __container = ( ( ( void * ) __field ) -                        \
                        offsetof ( type, field ) );                     \
        __container; } )

Get containing structure.

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

Definition at line 35 of file stddef.h.

Referenced by __attribute__(), _printw_handler(), a3c90x_internal_ReadEeprom(), acm_in_complete(), acm_intr_complete(), acm_out_complete(), aoecmd_expired(), aoecmd_free(), aoedev_free(), asn1_built(), atacmd_free(), autovivified_settings_free(), axge_in_complete(), axge_intr_complete(), axge_out_complete(), blktrans_xferbuf_read(), blktrans_xferbuf_realloc(), blktrans_xferbuf_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(), ecm_in_complete(), ecm_intr_complete(), ecm_out_complete(), 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_file_close(), efi_file_delete(), efi_file_flush(), efi_file_get_info(), efi_file_get_position(), efi_file_open(), efi_file_read(), efi_file_set_info(), efi_file_set_position(), efi_file_write(), efi_local_open_path(), 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(), efidev_parent(), 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(), ftp_free(), generic_settings_clear(), generic_settings_fetch(), generic_settings_store(), hermon_bofm_harvest(), hermon_bofm_update(), http_conn_expired(), http_conn_free(), http_expired(), http_free(), hub_complete(), i2c_bit_read(), i2c_bit_write(), ib_mi_timer_expired(), ib_srp_free(), ibft_complete(), icplus_mii_read_bit(), icplus_mii_write_bit(), icplus_read_eeprom(), icplus_write_eeprom(), ifec_spi_read_bit(), ifec_spi_write_bit(), intel_read_eeprom(), intel_write_eeprom(), ipoib_join_complete(), ipv6_fetch(), ipv6conf_expired(), ipv6conf_free(), iscsi_free(), linda_i2c_read_bit(), linda_i2c_write_bit(), 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(), qib7322_i2c_read_bit(), qib7322_i2c_write_bit(), realloc(), realtek_mii_read(), realtek_mii_write(), realtek_spi_close_bit(), realtek_spi_open_bit(), realtek_spi_read_bit(), realtek_spi_write_bit(), 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(), smsc75xx_in_complete(), smsc95xx_in_complete(), smscusb_intr_complete(), smscusb_mii_read(), smscusb_mii_write(), smscusb_out_complete(), spi_bit_rw(), srpcmd_free(), tcp_expired(), tcp_keepalive_expired(), tcp_wait_expired(), tftp_free(), tftp_timer_expired(), uri_free(), usb_endpoint_companion_descriptor(), usbkbd_complete(), validator_free(), velocity_mii_read(), velocity_mii_write(), vmbus_xfer_page_iobufs(), x509_free_chain(), xcm_free(), xcm_keepalive(), xcm_reopen(), xsigo_discover(), xsigo_free(), xsigo_ib_open(), xsigo_xcm_complete(), and xsigo_xds_complete().


Typedef Documentation

typedef __WCHAR_TYPE__ wchar_t

Definition at line 49 of file stddef.h.

typedef __WINT_TYPE__ wint_t

Definition at line 50 of file stddef.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )