Changeset View
Changeset View
Standalone View
Standalone View
share/man/man9/ifnet.9
Context not available. | |||||
.Ss "Interface Manipulation Functions" | .Ss "Interface Manipulation Functions" | ||||
.Ft "struct ifnet *" | .Ft "struct ifnet *" | ||||
.Fn if_alloc "u_char type" | .Fn if_alloc "u_char type" | ||||
.Ft "struct ifnet *" | |||||
.Fn if_alloc_dev "u_char type" "device_t dev" | |||||
.Ft "struct ifnet *" | |||||
.Fn if_alloc_domain "u_char type" "int numa_domain" | |||||
.Ft void | .Ft void | ||||
.Fn if_attach "struct ifnet *ifp" | .Fn if_attach "struct ifnet *ifp" | ||||
.Ft void | .Ft void | ||||
Context not available. | |||||
but unlike | but unlike | ||||
.Va if_type , | .Va if_type , | ||||
it would not be changed by drivers. | it would not be changed by drivers. | ||||
.It Va if_numa_domain | |||||
.Pq Vt uint8_t | |||||
The NUMA domain of the hardware device associated with the interface. | |||||
This is filled in with a wildcard value unless the kernel is NUMA | |||||
aware, the system is a NUMA system, and the ifnet is allocated | |||||
using | |||||
.Fn if_alloc_dev | |||||
or | |||||
.Fn if_alloc_domain . | |||||
.El | .El | ||||
.Pp | .Pp | ||||
References to | References to | ||||
Context not available. | |||||
.Fa type | .Fa type | ||||
specific structure in | specific structure in | ||||
.Va if_l2com . | .Va if_l2com . | ||||
.It Fn if_alloc_dev | |||||
Allocate and initialize | |||||
.Vt "struct ifnet" | |||||
as | |||||
.Fn if_alloc | |||||
does, with the addition that the ifnet can be tagged with the | |||||
appropriate NUMA domain derived from the | |||||
.Fa dev | |||||
argument passed by the caller. | |||||
.It Fn if_alloc_domain | |||||
Allocate and initialize | |||||
.Vt "struct ifnet" | |||||
as | |||||
.Fn if_alloc | |||||
does, with the addition that the ifnet will be tagged with the NUMA | |||||
domain via the | |||||
.Fa numa_domain | |||||
argument passed by the caller. | |||||
.It Fn if_attach | .It Fn if_attach | ||||
Link the specified interface | Link the specified interface | ||||
.Fa ifp | .Fa ifp | ||||
Context not available. | |||||
The | The | ||||
.Fa ifp | .Fa ifp | ||||
must have been allocated by | must have been allocated by | ||||
.Fn if_alloc . | .Fn if_alloc , | ||||
.Fn if_alloc_dev | |||||
or | |||||
.Fn if_alloc_domain . | |||||
.It Fn if_detach | .It Fn if_detach | ||||
Shut down and unlink the specified | Shut down and unlink the specified | ||||
.Fa ifp | .Fa ifp | ||||
Context not available. |