KEXT Programming Interfaces

The KPIs provide sustainable interfaces for writing network kernel extensions (NKEs), file systems, and other non-I/O Kit KEXTs.

Framework
/System/Library/Frameworks/Kernel.framework
Header file directories
/System/Library/Frameworks/Kernel.framework/Headers

Data Types

BPF
  kev_d_vectors
bpf_packet_func
  kev_msg
bpf_tap_mode
  kev_request
ctl_connect_func
  kev_vendor_code
ctl_disconnect_func
  mbuf_csum_performed_flags_t
ctl_event_data
  mbuf_csum_request_flags_t
ctl_getopt_func
  mbuf_flags_t
ctl_info
  mbuf_how_t
ctl_send_func
  mbuf_stat
ctl_setopt_func
  mbuf_type_t
iff_detached_func
  net_init_func_ptr
iff_event_func
  opaque_ipfilter
iff_filter
  protocol_family_t
iff_input_func
  proto_media_detached
iff_ioctl_func
  proto_media_event
iff_output_func
  proto_media_input
ifnet_add_proto_func
  proto_media_ioctl
ifnet_attach_proto_param
  proto_media_preout
ifnet_check_multi
  proto_media_resolve_multi
ifnet_del_proto_func
  proto_media_send_arp
ifnet_demux_desc
  proto_plumb_handler
ifnet_demux_func
  proto_unplumb_handler
ifnet_detached_func
  sflt_data_flag_t
ifnet_event_func
  sflt_event_t
ifnet_family_t
  sflt_filter
ifnet_framer_func
  sflt_flags
ifnet_init_params
  sflt_handle
ifnet_ioctl_func
  sf_attach_func
ifnet_offload_t
  sf_bind_func
ifnet_output_func
  sf_connect_in_func
ifnet_set_bpf_tap
  sf_connect_out_func
ifnet_stats_param
  sf_data_in_func
ifnet_stat_increment_param
  sf_data_out_func
if_del_proto_func
  sf_detach_func
Interface
  sf_getoption_func
Interface
  sf_getpeername_func
ipfilter_t
  sf_getsockname_func
ipf_detach_func
  sf_ioctl_func
ipf_filter
  sf_listen_func
ipf_filter
  sf_notify_func
ipf_input_func
  sf_setoption_func
ipf_output_func
  sf_unregistered_func
kern_ctl_ref
  sockaddr_ctl
kern_ctl_reg
  sock_upcall
kern_event_msg
 

Other References

Header Index
Functions Index

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.