gnrc_netreg_entry Struct Reference

Entry to the Network protocol registry. More...

Detailed Description

Entry to the Network protocol registry.

Definition at line 167 of file netreg.h.

#include <net/gnrc/netreg.h>

Data Fields

struct gnrc_netreg_entrynext
 next element in list
 
uint32_t demux_ctx
 The demultiplexing context for the registering thread. More...
 
gnrc_netreg_type_t type
 Type of the registry entry. More...
 
union {
   kernel_pid_t   pid
 The PID of the registering thread.
 
   mbox_t *   mbox
 Target mailbox for the registry entry. More...
 
   gnrc_netreg_entry_cbd_t *   cbd
 Target callback for the registry entry. More...
 
target
 Target for the registry entry.
 

Field Documentation

◆ cbd

gnrc_netreg_entry_cbd_t* gnrc_netreg_entry::cbd

Target callback for the registry entry.

Note
Only available with Callback extension.

Definition at line 210 of file netreg.h.

◆ demux_ctx

uint32_t gnrc_netreg_entry::demux_ctx

The demultiplexing context for the registering thread.

This can be defined by the network protocol themselves. E. g. protocol numbers / next header numbers in IPv4/IPv6, ports in UDP/TCP, or similar.

Definition at line 182 of file netreg.h.

◆ mbox

mbox_t* gnrc_netreg_entry::mbox

Target mailbox for the registry entry.

Note
Only available with Mailbox IPC extension.

Definition at line 201 of file netreg.h.

◆ type

gnrc_netreg_type_t gnrc_netreg_entry::type

Type of the registry entry.

Note
Only available with Mailbox IPC extension or Callback extension.

Definition at line 191 of file netreg.h.


The documentation for this struct was generated from the following file: